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

Telnet pacing 1

Status
Not open for further replies.

mllewi1

Technical User
Feb 24, 2005
3
US
I have a very simple script to NUL key 0 and key 1 on a 2008. I use mailmerge to build it out to any number of sets, then I run an identical script to insert the new DNs. It works perfectly.... IF I dial in. Should I choose to telnet into the Option 61, the script seems to run too fast and stumbles over itself. How can I slow down the execution of the script?
(I always connect manually before executing the script)
proc main
waitfor "REQ: "
transmit "CHG^M"
waitfor "TYPE: "
transmit "2008^M"
waitfor "TN "
transmit "<<TN>>^M"
waitfor "ECHG "
transmit "YES^M"
waitfor "ITEM "
transmit "KEY 0 NUL^M"
waitfor " KEY "
transmit "1 NUL^M"
waitfor " KEY "
transmit "^M"
waitfor "ITEM "
transmit "^M"
endproc
 
The "txpace" should pace it correctly for you. It will more then likely run fine at 100 but I have seen folks set it as slow as 65. Just be sure to zero it out at the end of your script because it seems to have an affect on the arrow keys sometimes that they will act like an ESC key in certain terminal Emulations.


proc main
set txpace 100

;;;Insert mailmerge data Here

set txpace 0
endproc


Good Luck!!
Ron
 
Thanks, Ron!

I had to bump it up to 200, but it seems to work OK, although when I reach the end of a section, it seems to ignore the 'waitfor "REQ"' and tries to sent the "CHG^M", but it resend the command a second time afer it sees the prompt.

Fortunately, one of my switches has 50+ unused TNs and as long as I keep track of where my fingers go, I can practice in my own virtual office.

Michael
 
That Mailmerge is one of best tricks I have learned!!
I know other people like using the "fopen" command pulling the data from a .csv file or an excel file but I can whip up a script so quick using mailmerge why try anything different.

Ron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top