Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a sample script to issue command

Status
Not open for further replies.

atltopgunn

Technical User
Nov 26, 2002
3
CA
I am writing a script to monitor X.25 calls to a port on an SNA PAD. Once the X.25 call to the port comes across the screen (X.25 address 7110000405) it needs to issue a port status command and wait for the correct port state after a period of 20 seconds. If the port state is in an "NR" state after 20 seconds everything is ok and it can just go back to monitoring. If the port state is still in a "WSN" state after 20 seconds, it needs to issue a command to reset the port and go back into a monitoring mode again.

Does anyone have any ideas or have any examples of scripts that do roughly the same thing?

Thanks,

Mike Gunn
 
I don't have any samples that meet your critera, but you will want to look at either the waitfor or when target commands to have your script trigger on the information that comes in from the remote system.
aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top