source: branches/samba-3.5.x/swat2/scripting/server/status.esp

Last change on this file was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 663 bytes
Line 
1<%
2
3libinclude("management.js");
4libinclude("server_call.js");
5
6function 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 */
21var call = servCallObj();
22call.add('serverInfo', serverInfo);
23
24/* run the function that was asked for */
25call.run();
26
27%>
Note: See TracBrowser for help on using the repository browser.