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

Nortel Auto Login and set Time & Date to PC Time & Date

Status
Not open for further replies.

PhonemanSam

Technical User
Dec 4, 2003
70
US
This script will login into the Nortel PBX. Set the time to your PC time and date and logout
You only need to change three things "define Name" ,"define Pswd" and "Waituntil" (Waituntil if you want to run it at a certain time and date.

;Procomm Script to SET TIME LD 2)
;===============================================================
;
#define Name "Logi^M" ;if you use Name login change to "LOGI YOUR_Name_Here^M"
#define Pswd "12345^M" ; Put your password here

;Waituntil "9:26:00" "1/27/05"

proc main
integer iDay, iMonth, iYear, iMin, iHour, iSec
string sSend
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sSend "STAD %02d %02d %d %02d %02d %02d" iDay iMonth iYear iHour iMin iSec

set txpace 75
Transmit "****^M"
pause 1
Transmit "LOGO^M"
pause 1
Transmit Name
Transmit Pswd
waitfor ">"
transmit "ld 2^M"
waitfor "."
transmit "TTAD^M"
waitfor "."
transmit sSend
transmit "^M"
waitfor "."
pause 2
transmit "TTAD^M"
waitfor "."
pause 2
transmit "****"
transmit "LOGO^M"
endproc

 
i have that file in use with a few less refinements, bad thing is the scheduler opens my script when i tell it to and it auto runs, but because procomm is always on, watching for problems in the midnights and other errors, when it auto opens, it runs in a new window, so my com port is busy. i built a master script, that calls my time and date and some minor maint scripts, etc. the problem with that is it needs to run when ever i am not in the switchroom, which can't be scheduled. do you have any scripts that auto complete certain prompts, like ever time you see cust, and things like building a 2616, i built one that does waitfor forever "key" the fires in key 3 through 14, stops and lets me put in key 0 and 1 (usually mcr xxxx).. if the same script could also waif for other common prompts without attention to order, the fexable prompts would go a lot faster....thanks, just don't run into nortel techs that know scripting

john poole
bellsouth business
columbia,sc
 
You can use the when target command to jump to a procedure whenever a particular string of text is received. You can think of it as similar to a waitfor "string" forever command, except your script is free to do other tasks until the when target fires.


 
John:

What type of script are you looking for? I have written quite a few procomm scripts that I don't use to much anymore because I have been using ZOC, because I can change my scripts to work over TCP/IP with the Rlogin protocol. Runs the scripts in about the 1/3 of time when doing a 100 sets at a time.

Also, go to nortel.pbxinfo.com Charles has a script in the download area called MERGUI and its a great Main script for doing various tasks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top