HP 800 User Manual page 378

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

Advertisement

System Administration
Adding Custom Tests
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
Nothing
Nothing
Registry API
Registry key parameters use HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_USER to specify the
subtree of the registry. For example,
HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion.
For performance reasons, it is important to use the same case when specifying the same registry key in
multiple calls. Even though the windows registry is not case-sensitive, the test result cache is case-
sensitive.
Dict
Dict
String
Boolean
13-30
Public Method
getServiceStatus(list serviceNames, debug=0)
Gets the status for a list of services. Returns a hash containing the
result_data
service in the serviceNames. The value of the service hash is one of the
following strings:
Stopped
Running
Paused
Not Installed
startService(serviceName,debug=0)
Starts the service serviceName if it is stopped or paused.
stopService(serviceName,debug=0)
Stops the service serviceName if it is started or paused.
getRegEnumKeys(string key, debug=0
Returns a hash containing the
key is a list of subkeys under key.
getRegEnumValues(string key, debug=0)
Returns a hash containing the
key is a list of values under key.
getRegQueryValue(string key, string value, debug=0)
Returns the data associated with the value as a string.
getRegValueExists(string key, string value, debug=0)
Check to see if a value exists in the registry. Returns the following:
• 1 if exists
• 0 if it does not exist
Table 13-2.BasicTests API (cont.)
key. The value of this key is a hash with a key for each
result_data
result_data
key. The value of this
key. The value of this

Advertisement

Table of Contents
loading

This manual is also suitable for:

Procurve nac 800

Table of Contents