Extreme Networks AG200 User Manual page 320

Version 5.0
Table of Contents

Advertisement

System Administration
Table 12: BasicTests API (continued)
The BasicTests API accesses these functions with the SABase self.bt member. All methods throw
an exception that should be caught if an unexpected error occurs.
Return Value
String
String
String
Service API
The serviceName parameters can be the registry name or the display name. For example,
TlntSvr or Telnet can be used to identify the Telnet service.
For performance reasons, it is important to use the same case when specifying the same
service name in multiple calls. Even though the windows process table is not case-
sensitive, the test result cache is case-sensitive.
Boolean
Int
320
Public Method
getOs(debug=0)
Retrieves the operating system of the targetHost. Returns
one of the following strings:
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Server 2003
Unknown
dhcpRelease(debug=0)
Forces a DHCP release of the specified host.
dhcpRenew(debug=0)
Forces a DHCP release and renew of the specified host.
getServiceExists(string serviceName, debug=0)
Check to see if a service is installed. Returns the following:
1 if exists
0 if it doesn't exist
getServiceSetting(string serviceName, debug=0)
Check to see if a service is set to auto, manual, or disabled.
Returns one of the following integers:
0 if auto
1 if manual
2 if disabled
Sentriant AG Users' Guide, Version 5.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag

Table of Contents