Creating A Custom Test Class Script From Scratch - HP 800 User Manual

Network access controller
Hide thumbs Also See for 800:
Table of Contents

Advertisement

System Administration
Adding Custom Tests
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
Figure 13-4. Example InstallCustomTests Output (cont.)
NOTE:
TIP:
13-18
The output between the "+ Sending XML message to MS to install and
distribute custom scripts" message and the "Done" message in figure 13-4 is
output from the command that installed the custom scripts and shows the
status 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 13-5. 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 checkOpenPorts.py test script, which tests an endpoint for specified
open ports.
This template file is included on the CD at /sampleTests/testTemplate.py, so
you can edit it instead of retyping it.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Procurve nac 800

Table of Contents