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!

script to change cls in meridian opt. 81

Status
Not open for further replies.

Nortellian

Technical User
Jan 31, 2003
1,186
US
Hello,
This is the first time I've posted in this forum and I'm not even sure if what I'm about to ask is something that's is pertanent to this forum

I maintain an opt. 81 nortel switch. About 2000-3000 analog phones need a change in there class prompt. They need to go from cls cdma to cls cdmd. I have never written a script and don't know if this would be an easy one to write or not. Any help or suggestions is appreciated. Thanks.
 
I don't know anything about Nortels, but most likely the easiest way to do this is to have Procomm record you doing these steps for one phone, and then modifying that script to reprogram all phones (very easy if they are in a sequential block). To enable the Script Recorder, select the Tools | Scripts | Start Recorder menu item. Procomm Plus will now monitor all incoming data and your outgoing responses to that data. Start performing the tasks (keyboard-based only!) that you want Procomm Plus to record. Once done, select the Tools | Scripts | Stop Recorder menu item. You will be prompted to save your recorded script; some editing of the script may be necessary. W hen you view your script, you will see that it is composed of waitfor/transmit commands. What you will want to do now is replace the value you sent with a string or integer variable, then place your recorded script inside of a for loop that starts at the lowest extension and goes up to the highest extension. Another option that I have seen people do is read a text file that contains the extension they want to alter. It would look something like this:

fopen 0 "filename.txt" READ TEXT
while not feof 0
fgets 0 sLine
<your recorded script goes here>
endwhile
fclose 0

where your recorded script would be transmitting the value read from the text file (contained in sLine).


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top