Basictests Api - Extreme Networks Sentriant AG Software User's Manual

Hide thumbs Also See for Sentriant AG:
Table of Contents

Advertisement

System Administration
Figure 180: checkOpenPorts.py script (continued)
session="+self.session.id()+"): ", sys.exc_type, sys.exc_value
not allowed open were open: " + portsOpen.rstrip(", ")
except:
#
# Always use the doReturn function. This will record test timings as
well as
# encode the result_message into a format compatible with
Sentriant AG
#
return(self.doReturn(returnHash))
3 Once you have completed your test script modifications, save the script as described in
page
324.
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://<Sentriant AG ip>:88
and test your Windows endpoint. If you have ports open that are not allowed, this test fails.

BasicTests API

Every Sentriant AG test has a base functionality described as follows:
334
import sys
print "checkOpenPorts(host="+self.session.host()+",
if debug:
print "Could not connect to "+hp+". Port not open."
# Good, it wasn't open
#
# 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
#
# 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)
...
try:
step 7 on page
324.
step 8 on page
324.
Sentriant AG Software Users Guide, Version 5.3
step 6 on

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag 5.3

Table of Contents