HP 800 User Manual page 377

Network access controller
Hide thumbs Also See for 800:
Table of Contents

Advertisement

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
Table 13-2.BasicTests API (cont.)
Public Method
getOs(debug=0)
Retrieves the operating system of the
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
System Administration
Adding Custom Tests
targetHost
. Returns one of
13-29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Procurve nac 800

Table of Contents