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!

Changing ERL settings using Scripting

Status
Not open for further replies.

dabble

Technical User
Jun 15, 2005
594
CA
I am implementing ESA on our main PBX (CS1000E at Rls 6)

I have about 700 phones I will need to change the ERL setting on.

Sure, I can do each individually, but was thinking I could do it via a Procomm script?

I did a search on the CS1000 forum for scripts and found some for outing DN's. To me, it all seems greek since I haven't worked with scripts before.So I looked in the help on Procomm for creating scripts.

I did create one (see below) using my set to record what I wanted

;Recorded script. Editing may be required.
proc main
transmit "****"
waitfor ">"
transmit "ld 20^M"
waitfor "REQ: "
transmit "chg^M"
waitfor "TYPE: "
transmit "1140^M"
waitfor "TN "
transmit "152 0 0 6^M"
waitfor "ECHG "
transmit "yes^M"
waitfor "ITEM "
transmit "erl 101^M"
waitfor "ITEM "
transmit "^M"
waitfor "REQ: "
transmit "****"
endproc


So now that I have this, what next? I figure I would need to create a text file, perhaps csv, with the type, TN and ERL settings, but don't know how to do that.

I would really appreciate any guidance from the group.

Thanks very much!


 
Yes, you can create a CSV file with the data for the script to read data from for each phone. I have a few examples on my site that show how to read from either text or Excel files that should get you started. Basically your script needs to get you to the point just before the data is being sent, then have a loop that continues until all data has been read. You would then copy the relevant portions of your script inside that loop and replace the hard-coded data with the variable name(s) that contain the data read from your input file.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top