//INCBEGIN //INCEND function intToIPString ( nAddress ) { var str = ""; for ( var i = 0; i < 4; i++ ) { str += ( nAddress & ( 255 << ( 3 - i ) * 8 ) ) >>> ( 3 - i ) * 8; str += '.'; } // return string without the trailing '.' return str.substr(0 , str.length - 1 ); } /*! function dbg( s, inScript ) { if ( inScript ) RMAOutput( "/" + "* " + s + " *" + "/\n" ); else RMAOutput( "\n" ); } */ var rows = "" ; function _publisherCallback ( prop, value, curDepth ) { if ( curDepth != 2 ) return ; var ip = intToIPString( prop.rightProp( 2 ).leftProp(1) ); var nStreamCount = value ; nStreamCount = ( nStreamCount ? nStreamCount : "0" ); //prop looks like: //"DistrubtedLicensing.Publishers..StreamCount" rows += "License Publisher" + "" + ip + "" + "" + nStreamCount + "\n" ; var subCount = 0 ; // fetch this publisher's subscribers: function _subscriberCallback ( prop, value, curDepth ) { if ( -1 == prop.search( /StreamCount/i ) ) return ; var ip = intToIPString( prop.rightProp( 2 ).leftProp(1) ); var nStreamCount = value ; nStreamCount = ( nStreamCount ? nStreamCount : "0" ); //prop looks like: //"DistributedLicensing.Publishers..Subscribers..StreamCount" var title = ( subCount ? " " : "Subscribers" ); rows += "" + title + "" + ip + "" + nStreamCount + "\n" ; subCount++; } enumProps( prop.leftProp(-1) + ".Subscribers", _subscriberCallback, 0 ); /*! if ( subCount == 0 ) { rows += " " + "No Subscribers \n" ; } */ // add a spacer row rows += "\n"; } findSubProp( "DistributedLicensing.Publishers", "StreamCount", _publisherCallback ) var nSiteCount = RMAGetPropertyValue( "DistributedLicensing.StreamCount" ); nSiteCount = ( nSiteCount ? nSiteCount : "0" ); Group License Monitor
RMAOutput( rows );
  Current Connections
Total RMAOutput( nSiteCount );