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 help

Status
Not open for further replies.

OpethBWP

MIS
Jan 20, 2006
160
US
Hey Everyone.

I need to create a script where I disable and enable the same 3 loops.

So for example

LD 60
DISL 2
ENLL 2

DISL 5
ENLL 5

DISL 3
ENLL 3

If I just connect to the switch , record these steps then save as a script will that function correctly?
 
Code:
Proc Main

    transmit "****^M"
    mspause 20
    transmit "ld 60^M"
    waitfor ".
    transmit "disl 2^m"
    pause 6
    transmit "enll 2^M"
    pause 6
    transmit "disl 5^m"
    pause 6
    transmit "enll 5^M"
    pause 6
    transmit "disl 3^m"
    pause 6
    transmit "enll 3^M"

endproc

this will work for non pri, i can add ld96 if needed.. logi then run the script, it can start from any load, i made the delay between steps 6 seconds, modify that to your needs and switch


john poole
bellsouth business
columbia,sc
 
Thanks for the response!

Usually we can just disable\enable through 60 and that is good enough.

Do most people just code their scripts or actually record them? Like I said, this is my first attempt at Procom scripting.


 
i started by recording scripts, that one was typed on the fly.. usually i perfer pause on the maint side instead of waitfor.. the screen does not always end back up at the . quick enough, the waitfor times out without a delimiter..

best way to get started is to record a few and edit them..

if you want to type a command during a script,,

waitfor
transmit "4 0 0 0^M"
waitfor "DES "

if i recorded that code but wanted to use it to do add's later on..

those there lines change to

waitfor "DES " forever, that stops the script from timing out, it waits for des while you paste or type the tn.. at times i use an excel, just paste the tn in.. adding mail to 6 phones etc.. script stops lets me paste the tn, stops again for the next tn... tab delimited is faster, and i use that when i have a dozen or more to change


john poole
bellsouth business
columbia,sc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top