You are here: Helix Administrator > Logging and Monitoring > Advanced Logging > Sample Templates

Sample Templates

This section explains how to use the preconfigured template that comes with Helix Mobile Server. It also provides examples of setting additional templates to log client statistics and changes to Helix Administrator.

For more information: For explanations of reporting properties, see "Registry Properties".

Server Stats Templates

The preconfigured Sever Stats template is an example of an interval template. It is designed to send basic statistics to the output console every hour. To use it, you must enable it and, optionally, customize it by changing the output destination or modifying the reporting variables. The report output looks like this:

Server Stats (06/17/02 10:33:52)
Uptime: 1234274 seconds
CPU Percent Usage: 5
Players Connected: 32
Players Connected in the Last 10 Seconds: 2
Players Connected by Protocol: 22 RTSP, 10 MMS, 0 HTTP (0 Cloaked)
Players Connected by Transport: 0 TCP, 32 UDP, 0 MCast
Total Subscribed Bandwidth Output: 9385984 bps
Total Actual Bandwidth Output: 9244432 bps
Average Bandwidth Output Per Player: 293312 bps
Memory Stats: 14294824 Bytes In Use

Server Configuration Changes

Using a Session template, you can log changes to Helix Mobile Server made through Helix Administrator. Follow the instructions for setting up a Session template as described in "Template Creation", setting any desired output, such as the screen console or a text file. For Watch Type, choose Configuration Change Log [Server.ConfigLog]. For Session Added Output Format, enter the following to capture all configuration changes:

%ConfigLog.*.Entry%

For more information: Click to see an example of this session template defined in Helix Administrator.

The report indicates the IP address and user name of the person who made the change, along with the date, time, and browser version. It then lists the changes made to the Helix Mobile Server registry, which are recorded in the configuration file. The following is a sample report entry:

127.0.0.1 - FBLACK.AdminRealm/fblack [15/Aug/2003:12:26:28 -0700] 
"POST admin/configvar.set.html HTTP/1.0" - - [Mozilla/4.0
(compatible;MSIE 6.0;Windows NT 5.1;.NET CLR 1.0.3705)]
Set config.DiffServ.Control=0 [OK]
Set config.DiffServ.Media=17 [OK]

Tip: The IP address, date, time, and browser fields are the same as those used in the basic access log. For more information, see "Basic Access Log Fields".

Client Statistics Reports

This example illustrates how to use a Client Stats template to log information about each media player request. This sample template generates periodic updates about the session status, such as the current number of lost packets. When the player disconnects, the disconnection report provides information about the entire session, such as the total number of packets lost, the requested URL, the streaming protocol, and so on.

For more information: Click to see an example of this client statistics template defined in Helix Administrator.

Periodic Client Statistics Report

For Periodic Output Format, you define the report information you want to collect for each media player whenever the Output Interval time elapses. You create a report using boilerplate text and variables chosen from the pop-up property list. Note that \n adds a new line to the report. You can also use \t to insert tabs. The following is the sample template definition in Helix Administrator:

\n\n****PERIODIC CLIENT STATISTICS****
Date and Time: %Date%, %Hour%:%Min%.%Sec%
Client GUID: %Client.*.GUID%
Average Bit Rate: %Client.*.Session.*.AvgBitrate%
Bytes Sent: %Client.*.Session.*.BytesSent%
Packets Sent: %Client.*.Session.*.PacketsSent%
Packets Lost: %Client.*.Session.*.PacketsLost%
Failed Resends: %Client.*.Session.*.FailedResends%
Successful Resends: %Client.*.Session.*.SuccessfulResends%

The following text is an example of a report generated from the preceding template:

****PERIODIC CLIENT STATISTICS****
Date and Time: 08/21/03, 15:50.04
Client GUID: 3ab16eb2-9f30-4c1f-acb6-25dfba5ba0da
Average Bit Rate: 225000
Bytes Sent: 1798645
Packets Sent: 588
Packets Lost: 1
Failed Resends: 0
Successful Resends: 1

For more information: For details about how Helix Mobile Server determines the client GUID, see "Client Identifier".

Disconnection Statistics Report

For Disconnect Output Format, you define the report information you want to collect when a client disconnects. Here's the template defined in Helix Administrator:

\n\n****CLIENT DISCONNECT****
Date and Time: %Date%, %Hour%:%Min%.%Sec%
**CLIENT INFORMATION**
Client GUID: %Client.*.GUID%
Client ID: %Client.*.ClientID%
Type: %Client.*.User-Agent%
Address: %Client.*.Addr%
Preferred Language: %Client.*.Language%
**CONNECTION STATUS**
Average Bit Rate: %Client.*.Session.*.AvgBitrate%
Bytes Sent: %Client.*.Session.*.BytesSent%
Packets Sent: %Client.*.Session.*.PacketsSent%
Packets Lost: %Client.*.Session.*.PacketsLost%
Failed Resends: %Client.*.Session.*.FailedResends%
Successful Resends: %Client.*.Session.*.SuccessfulResends%
**CLIP INFORMATION**
Requested URL: %Client.*.Session.*.PlayerRequestedURL%
Start Time: %Client.*.StartTime%
Clip Size in Bytes: %Client.*.Session.*.FileSize%
Playing Duration (seconds): %Client.*.Session.*.DurationSeconds%
Title: %Client.*.Session.*.FileHeader.Title%
Author: %Client.*.Session.*.FileHeader.Author%
Copyright: %Client.*.Session.*.FileHeader.Copyright%
Stream Count: %Client.*.Session.*.FileHeader.StreamCount%
**TRANSPORT INFORMATION**
Protocol: %Client.*.Protocol%
Port: %Client.*.Port%
UDP used (0=no, 1=yes): %Client.*.IsUDP%

The following is output generated from the preceding template. Helix Mobile Server generates this report only when a media player stops playing a presentation:

****CLIENT DISCONNECT****
Date and Time: 08/21/03, 15:51.00
**CLIENT INFORMATION**
Client GUID: 3ab16eb2-9f30-4c1f-acb6-25dfba5ba0da
Client ID: WinNT_5.0_6.0.11.818_RealPlayer_RN10PD_en-us_686
Type: RealMedia Player Version 6.0.9.1753 (win32)
Address: 207.188.7.125
Preferred Language: en-us
**CONNECTION STATUS**
Average Bit Rate: 225000
Bytes Sent: 2478645
Packets Sent: 643
Packets Lost: 1
Failed Resends: 0
Successful Resends: 1
**CLIP INFORMATION**
Requested URL: rtsp://208.147.89.157:554/video1.rm
Start Time: 21/Aug/2003:15:48:50
Clip Size in Bytes: 2479645
Playing Duration (seconds): 130
Title: Introductory Video
Author: RealNetworks, Inc.
Copyright: ©2010 RealNetworks, Inc.
Stream Count: 1
**TRANSPORT INFORMATION**
Protocol: RTSP
Port: 7180
UDP used (0=no, 1=yes): 1

 

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com