From: "Forums" <[EMAIL PROTECTED]>
Subject: RE: Get Info on RealServer

Hi,
Really good stuff about the getting info from the Real Server!
Using that same Javascript
--- begin page ---
<server language="JavaScript">
RMAOutput( RMAGetPropertyValue("Server.ClientCount") );
</server>
--- end page ----

Can you monitor Encoders.. and which command, if so. And what Encoders are
online, ie the name of the encoder?

Alan Poole
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of RealForum
Sent: Tuesday, March 07, 2000 3:18 PM
Subject: Re: Get Info on RealServer


From: Steve McMillen <[EMAIL PROTECTED]>
Subject: Re: Get Info on RealServer

There are three ways:
- use the command line rssm tool (UNIX only)
- write a monitor plugin in C using RealSystem G2 SDK
- use the RealAdministrator to query the data thru HTML/server side
javascript

Under UNIX you can call a utility called 'rssm' located in the
RealServer bin directory.   Under  windows there is no such command line
utility, however, you can write a plugin to do this using the RealSystem
G2 SDK (http://www.real.com/devzone/tools) or if you don't want to write
a C plugin yourself then you can get the number of simultaneous users
thru custom HTML code if that helps.  For example, the following HTML
page placed in the RealServer 'RealAdministrator' directory would return
the number of currently connected clients:

--- begin page ---
<server language="JavaScript">
RMAOutput( RMAGetPropertyValue("Server.ClientCount") );
</server>
--- end page ----

Thus, you would write a wrapper program that calls this data thru HTML
if you don't want to write C code.  I know that TCL/TL and PERL both
have functions to call and parse the return of an HTML page.

For more details you might check the RealServer Administration Guide
whitepaper at
http://service.real.com/help/library/whitepapers/wpaper.html

p.s If you want to get more info on what properties exist in the
RealServer registry that can be queries, put the following server side
JavaScript function in an HTML page and this will print out all the
names/value pairs.

function DoProps(a)
{

      value = RMAGetPropertyValue(a);
      if (value != null)
      {
          RMAOutput("<br>");
          RMAOutput(a);
          RMAOutput(" = ");
          RMAOutput(value);
          RMAOutput("<br>");
      }
      else
      {
          var x = 0;
          b = RMAGetNthProperty(a, x)
          while (b)
          {
              DoProps(b);
              x++;
              b = RMAGetNthProperty(a, x);
          }
      }
}
//DoProps("client");
DoProps("server");

Steve

RealForum wrote:
  >
  > From: "Sehic, Fedja" <[EMAIL PROTECTED]>
  > Subject: Get Info on RealServer
  >
  >    I would like to be able to call a simple .exe file that will return
number
  > of users currently on my server so I can use this for something else
later.
  >
  >    Did any one ever did this, is there a sample code (C, C++, VB even
Java)
  > to do this.  If not, can someone direct me in right direction.
  >
  >    Thanks ..... Fedja
  >


*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.  Archives of RealForum can
be found at http://realforum.real.com

If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:

    unsubscribe realforum

or from another account, besides the address you subscribed with:

    unsubscribe realforum <[EMAIL PROTECTED]>

Reply via email to