Basictests Api - Novell ZENWORKS NETWORK ACCESS CONTROL 5.0 - 09-22-2008 User Manual

Table of Contents

Advertisement

16.10.5 BasicTests API

Every Novell ZENworks Network Access Control test has a base functionality described as follows:
...
try:
self.bt.getregKeyExists( "HKEY_LOCAL_MACHINE\\Software\\America
Online\\AIM")
sys.exc_value
...
The following table describes the BasicTests API.
Table 16-4
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
Boolean
integer
Dict
Boolean
356 Novell ZENworks Network Access Control Users Guide
except:
BasicTests API
Public Method
checkHotfixSp(nt=0, win2k=0, xp=0, win2003=0, vista=0)
It checks for the servicepack installed.
Returns the following:
true if Service pack installed is lower than argument.
false if Service Pack installed is grater that or equal to argument.
compareVersions(versionValue1, versionValue2)
Returns the following:
-1, if value1 is lesser than value2.
1, if value1 is higher than value2.
0, both are equal.
copyHash(self,fromHash,toHash,debug=0):
Copies the contents of "fromHash" to "toHash".
getBestMacEntry(os, bogusMacList=[], debug=0)
getBizTalkServerExists()
Checks for Biz Talk Server on the machine. Returns the following:
True, if installed
None, if not installed
import sys
returnHash["status_code"] = 0
returnHash["result_code"] = "unknown_error"
returnHash["result_message"] = sys.exc_type,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks network access control 5.0

Table of Contents