Macromedia flash media server 2-managing flash media server ユーザーズマニュアル

ページ / 238
72
Deploying Flash Media Server
For example, the following URL passes a 
ping
 command to the server:
http://myFlashMediaServer:1111/admin/ping?auser=somename&apswd=somepassword
The server sends the results back to the browser in XML format.
<?xml version="1.0" encoding="utf-8" ?>
<result>
   <level>error</level>
   <code>Admin.Server.Disconnect</code>
   <timestamp>10/22/2003 05:31:01 PM</timestamp>
   <description>FMS server down.</description>
</result>
For example, the following URL sends a 
getVhostStats
 command to the server:
http://myFlashMediaServer:1111/admin/
getVhostStats?auser=somename&apswd=somepassword&vhost="_defaultVhost_"
The following is the XML result:
<?xml version="1.0" encoding="utf-8" ?> 
<result> 
<level>status</level> 
<code>NetConnection.Call.Success</code> 
<timestamp>11/17/2003 2:52:29 PM</timestamp> 
<data> 
<bytes_in>0</bytes_in> 
<bytes_out>3284</bytes_out> 
<bw_in>0</bw_in> 
<bw_out>0</bw_out> 
<msg_in>0</msg_in> 
<msg_out>1</msg_out> 
<msg_dropped>0</msg_dropped> 
<total_connects>1</total_connects> 
<total_disconnects>0</total_disconnects> 
<connected>1</connected> 
<accepted>1</accepted> 
<rejected>0</rejected> 
<total_apps>1</total_apps> 
<total_instances_loaded>1</total_instances_loaded> 
<total_instances_unloaded>0</total_instances_unloaded> 
<tunnel_bytes_in>0</tunnel_bytes_in> 
<tunnel_bytes_out>0</tunnel_bytes_out> 
<tunnel_requests>0</tunnel_requests> 
<tunnel_responses>0</tunnel_responses> 
</data> 
</result>
For another example, the following URL sends a 
getMsgCacheStats
 command to the server:
http://myFlashMediaServer:1111/admin/
getMsgCacheStats?auser=somename&apswd=somepassword&vhost="_defaultVhost_
"