r24985: Start to revert us back to the old-style SWAT, while trying not to
[kai/samba.git] / swat / scripting / server / status.esp
1 <%
2
3 libinclude("management.js");
4 libinclude("server_call.js");
5
6 function serverInfo()
7 {
8         var info = new Object();
9         info["NBT Server"]      = server_status("nbt");
10         info["WINS Server"]     = server_status("wins");
11         info["CLDAP Server"]    = server_status("cldap");
12         info["Kerberos Server"] = server_status("kdc");
13         info["SMB Server"]      = stream_server_status("smb");
14         info["LDAP Server"]     = stream_server_status("ldap");
15         info["RPC Server"]      = stream_server_status("rpc");
16
17         return info;
18 }
19
20 /* register a call for clients to make */
21 var call = servCallObj();
22 call.add('serverInfo', serverInfo);
23
24 /* run the function that was asked for */
25 call.run();
26
27 %>