Creating A Custom Test Class Script From Scratch - Extreme Networks AG200 User Manual

Version 5.0
Table of Contents

Advertisement

Figure 155: Example InstallCustomTests Output (continued)
00:22:36 DEBUG Message received: ACTIVEMQ_TEXT_MESSAGE: id = 0
ActiveMQMessage{ , jmsMessageID = ID:perf-ms1-51331-1162363440379-15:3,
bodyAsBytes = org.activemq.io.util.ByteArray@1362012, readOnlyMessage = true,
jmsClientID = '93baaf5a-b0ed-4fc2-a3ae-ec6460caedc0' , jmsCorrelationID =
'null' , jmsDestination = TemporaryQueue-{TD{ID:perf-ms1-40612-1162365754580-
1:0}TD}ID:perf-ms1-40612-1162365754580-6:0, jmsReplyTo = null, jmsDeliveryMode
= 2, jmsRedelivered = false, jmsType = 'null' , jmsExpiration = 1162365766750,
jmsPriority = 4, jmsTimestamp = 1162365756750, properties = null,
readOnlyProperties = true, entryBrokerName = '172.30.1.50' , entryClusterName
= 'default' , consumerNos = [0], transactionId = 'null' , xaTransacted =
false, consumerIdentifer = 'ID:perf-ms1-40612-1162365754580-1:0.1.1' ,
messageConsumed = false, transientConsumed = false, sequenceNumber = 3,
deliveryCount = 1, dispatchedFromDLQ = false, messageAcknowledge =
org.activemq.ActiveMQSession@73a34b, jmsMessageIdentity = null, producerKey =
ID:perf-ms1-51331-1162363440379-15: }, text =
<NACResponse><resultStatus>true</resultStatus><response class="string">9X</
response><ip>172.30.1.50</ip><id>MNM</id><originalTimeStamp>1162365756707</
originalTimeStamp></NACResponse>
00:22:36 DEBUG Received: <NACResponse><resultStatus>true</
resultStatus><response class="string">9X</response><ip>172.30.1.50</
ip><id>MNM</id><originalTimeStamp>1162365756707</originalTimeStamp></
NACResponse>
Done
NOTE
The output between the "+ Sending XML message to MS to install and distribute custom scripts" message and the
"Done" message in
Figure 155
of the sending the XML JMS request to the MS.

Creating a Custom Test Class Script from Scratch

Creating a custom test script is similar to the previous error message example; however, you must
define a few more things and then add your own test functionality. Examine the test script template
shown in
Figure
156. The comments explain each section of code. Once you are comfortable with the
template, the following section contains an example that shows how to create a
script, which tests an endpoint for specified open ports.
NOTE
This template file is included on the CD at /sampleTests/testTemplate.py, so you can edit it instead of retyping it.
Sentriant AG Users' Guide, Version 5.0
is output from the command that installed the custom scripts and shows the status
System Administration
test
checkOpenPorts.py
309

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag

Table of Contents