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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for things to look at

Status
Not open for further replies.

Dphone

IS-IT--Management
Jun 6, 2003
220
US
Does anyone have any scripts that they would shared to run each morning to check for the condition of the switch(Option 81) and also the things we would want to looking at when look at a new switch?
Things like:
LD 60
stat
LD 96
Stat DCH
etc.

I just got Procomm. Looking for Scripts.

Thanks
 
You can use procomm to record scripts. Just hit the record button, issue your commands and stop the recording when finished. Use this to build your own scripts and you can get veey savvy in no time.


--T1PSTN
 
we have posted several on this site for that purpose. they are very simple

Code:
set txpace 50  ;this line slows the script down
transmit "logi xxxx^M"  ;the ^M is a carrage return
waitfor "PASS "
transmit "xxxx^M"
waitfor "> "
transmit "ld 60^M"
waitfor ". "
capture on
transmit "lcnt^M"
waitfor ". "
capture off

endproc

that's a simple stat script that could be changed to stat anything.. scripts that start out simple seldom stay that way... a good way to do that is to build the scripts as small units then use the call proc command to chain them together.. that makes trouble shooting them way more simple.. i'll try to post a sample of that type monday


john poole
bellsouth business
columbia,sc
 
set txpace 50 ;this line slows the script down


Why should you slow the script down it seem to run really slow?
 
you don't always have to slow it down but at 9600 most of my scripts need the set tx to keep from getting ahead of the screen..

john poole
bellsouth business
columbia,sc
 
Here is one that I use if I am checking a site. Mine is a site specific script so I have made a few of them for my various sites. This script does stat each T-1 individually but the nice part is the status message on the lower left of my procomm screen identifies each circuit is as it scrolls by.

I have not set up any triggers to pop a warning for words like "dsbl" or anything like that. I don’t mind watching this scroll. I set some 2 second pauses between each circuit and that is just enough for me to read it comfortlly as the information goes by. The last part of this script does a list disabled TN's in each super loop so it needs to be custom to each site too.

It is a quick process to cut and paste this script and edit it to fit a new site. My co-workers seem to like enough that they now run it whenever they have reason to suspect something might be wrong.

Script
************************

proc main
transmit "****^M"
waitfor ">"
transmit "ld 37^M"
waitfor "."
transmit "stat^M"
waitfor "."
waitquiet 3 FOREVER
transmit "****^M"
waitfor ">"
transmit "ld 137^M"
waitfor "."
transmit "stat^M"
waitfor "."
waitquiet 3 FOREVER
transmit "****^M"
waitfor ">"
transmit "ld 135^M"
waitfor "."
transmit "stat cpu^M"
waitfor "."
waitquiet 3 FOREVER
transmit "****^M"
waitfor ">"
transmit "ld 96^M"
waitfor "."
transmit "stat dch^M"
waitfor "."
waitquiet 3 FOREVER
transmit "****^M"
waitfor ">"

transmit "ld 60^M"
waitfor "."
transmit "ssck 0^M"
waitfor "."
transmit "ssck 1^M"
waitquiet 3 FOREVER
transmit "stat 54^M"
statmsg "Verizon In/Out circuit 1"
waitquiet 2 FOREVER
transmit "lcnt 54^M"
waitquiet 1 FOREVER
transmit "stat 72^M"
statmsg "Verizon In/Out circuit 2"
waitquiet 2 FOREVER
transmit "lcnt 72^M"
waitquiet 1 FOREVER
transmit "stat 79^M"
statmsg "Verizon In/Out circuit 3"
waitquiet 2 FOREVER
transmit "lcnt 79^M"
waitquiet 1 FOREVER
transmit "stat 115^M"
statmsg "Verizon 800 service 1"
waitquiet 2 FOREVER
transmit "lcnt 115^M"
waitquiet 1 FOREVER
transmit "stat 116^M"
statmsg "Verizon 800 service 2"
waitquiet 2 FOREVER
transmit "lcnt 116^M"
waitquiet 1 FOREVER
transmit "stat 117^M"
statmsg "Verizon 800 service 3"
waitquiet 2 FOREVER
transmit "lcnt 117^M"
waitquiet 1 FOREVER
transmit "stat 73^M"
statmsg "Cisco VOIP 3745 router"
waitquiet 1 FOREVER
transmit "stat 114^M"
statmsg "Cisco VOIP 2811 router"
waitquiet 2 FOREVER
transmit "lcnt 73^M"
waitquiet 1 FOREVER
transmit "stat 52^M"
statmsg "Tie Lines to XXX 1"
waitquiet 2 FOREVER
transmit "lcnt 52^M"
waitquiet 1 FOREVER
transmit "stat 53^M"
statmsg "Tie Lines to XXX 2"
waitquiet 2 FOREVER
transmit "lcnt 53^M"
waitquiet 1 FOREVER
transmit "stat 78^M"
statmsg "Tie Lines to XX 3"
waitquiet 2 FOREVER
transmit "lcnt 78^M"
waitquiet 1 FOREVER
transmit "stat 10^M"
statmsg "Tie Lines to XXXXXXXXXX"
waitquiet 2 FOREVER
transmit "lcnt 10^M"
waitquiet 1 FOREVER
transmit "stat 26^M"
statmsg "Tie Lines to XXXXXX"
waitquiet 2 FOREVER
transmit "lcnt 26^M"
waitquiet 1 FOREVER
transmit "stat 37^M"
statmsg "Tie Lines to XXXXXXX"
waitquiet 2 FOREVER
transmit "lcnt 37^M"
waitquiet 1 FOREVER
transmit "****^M"
statclear
waitfor ">"
;;;;;;;;;;;;;;;;;;;;;;
transmit "ld 32^M"
waitquiet 2 FOREVER
transmit "stat 2 0^M" ;Mermail loop
waitquiet 1 FOREVER
transmit "ldis 4 0^M"
waitfor "."
transmit "ldis 4 1^M"
waitfor "."
waitquiet 2 FOREVER
transmit "ldis 16 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 28 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 32 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 48 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 60 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 60 1^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 64 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 68 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 80 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 80 1^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 84 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 88 0^M"
waitfor "."
waitquiet 1 FOREVER
transmit "ldis 100 0^M"
waitfor "."
waitquiet 1 FOREVER

transmit "****^M"
endproc



**************

Ron
 
Thank you. These were a big help. I am still trying to find out how to use an excell file with a list of many analog TNB's that I want to change to the same NCOS's or something in the CLS. I don't know how to get the script to read the excell file. Would someone post an example please? Thank You.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top