Creating A Custom Test Class Script From Scratch - Extreme Networks Sentriant AG Software User's Manual

Hide thumbs Also See for Sentriant AG:
Table of Contents

Advertisement

System Administration
Figure 178: Example InstallCustomTests Output (continued)
00:22:34 DEBUG Waiting for a response on :TemporaryQueue-{TD{ID:perf-ms1-
40612-1162365754580-1:0}TD}ID:perf-ms1-40612-1162365754580-6:0
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
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
template, the following section contains an example that shows how to create a
test script, which tests an endpoint for specified open ports.
NOTE
This template file is included on the CD at /sampleScripts/testTemplate.py, so you can edit it instead of retyping it.
326
Figure 178
is output from the command that installed the custom scripts and shows the status
179. The comments explain each section of code. Once you are comfortable with the
checkOpenPorts.py
Sentriant AG Software Users Guide, Version 5.3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sentriant ag 5.3

Table of Contents