Novell ZENWORKS NETWORK ACCESS CONTROL 5.0 - 09-22-2008 User Manual page 355

Table of Contents

Advertisement

except:
_____________________________________________________________________________
session="+self.session.id()+"): ", sys.exc_type, sys.exc_value
#
# There are ports open, so set the returnHash values
# to indicate that the endpoint failed the test.
#
if portsOpen != "":
returnHash["status_code"] = 1
returnHash["result_code"] = "fail"
returnHash["result_message"] = "The following ports that are
not allowed open were open: " + portsOpen.rstrip(", ")
_____________________________________________________________________________
except:
#
# Set the return status when exception occurs
#
import sys
returnHash['status_code'] = 0
returnHash['result_code'] = "unknown_error"
returnHash['result_message'] = sys.exc_type, sys.exc_value
return(returnHash)
#
# Always use the doReturn function. This will record test timings as
well as
# encode the result_message into a format compatible with Novell
ZENworks Network Access Control
#
return(self.doReturn(returnHash))
3 Once you have completed your test script modifications, save the script as described in
on page
345.
4 Save any new classes as described in
5 Push the new test out to all ESs as described in
6 For the final test, connect to:
http://<Novell ZENworks Network Access Control ip>:88
and test your Windows endpoint. If you have ports open that are not allowed, this test fails.
if s is not None:
try:
s.close()
except:
pass
import sys
print "checkOpenPorts(host="+self.session.host()+",
if debug:
print "Could not connect to "+hp+". Port not open."
# Good, it wasn't open
Step 7 on page
Step 8 on page
345.
345.
Step 6
System Administration 355

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks network access control 5.0

Table of Contents