Basictests Api; Table 12: Basictests Api - Extreme Networks AG200 User Manual

Version 5.0
Table of Contents

Advertisement

3 Once you have completed your test script modifications, save the script as described in
page
307.
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:
...
try:
self.bt.getregKeyExists( "HKEY_LOCAL_MACHINE\\Software\\America
Online\\AIM")
except:
sys.exc_value
...
The following table describes the BasicTests API.

Table 12: BasicTests API

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
Network API
String
String
Sentriant AG Users' Guide, Version 5.0
step 7 on page
step 8 on page
import sys
returnHash["status_code"] = 0
returnHash["result_code"] = "unknown_error"
returnHash["result_message"] = sys.exc_type,
Public Method
getMacAddresses(debug = 0)
Retrieves the MAC addresses for all interfaces on an endpoint.
Returns a carriage return separated string. Each line is in the
following format:
<IP address> <MAC address> <internal transport name> <true
if configured for DHCP|false if not>
getNetBIOSName(debug=0)
Returns the NetBIOS name of the specified host.
307.
307.
System Administration
step 6 on
319

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag

Table of Contents