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

Re:Adding a Key to 200 sets

Status
Not open for further replies.

jaclarke

Technical User
Sep 11, 2007
38
BS
Hey Guys I have a Nortel Merdian system and I have about 200+ people in my bank and I would like to program a button on our 2616 sets so that when the users press it, it would call the helpdesk automatically. Is there a global command in any of the LD's that I can do this in?
 
If you have OTM it can do it for you, or you can use a script if you have procomm. The scripts have been posted on here a few times, but they would need to be tweaked for your system and requirements.

JohnThePhoneGuy

"If I can't fix it, it's not broke!
 
The problem is that we dont have OTM, so how will that affect me using that script on my system. I dont want to do more harm than good.
 
Do you have an emulation package? procom? Reflections? It would be via that you would run a script. Your pick-up and dial will be a hot key

Key xx Hot D ZZ YYYY

xx = key on set

zz = number of digits in the number dialed

YYYY = number you are hot dialing.

IE, key 12 hot d 4 4357



Mato' Was'aka
 
Well I know how to program a hot key, but where will I find the script so that I can run it? We currently use PuTTY which is a free implementation of Telnet and SSH for Win32 and Unix platforms, along with an xterm terminal emulator.
 
I don't know if anyone will have a script for that, most users here use procom and procom scripts, sorry & sorry about the programing ex.

Mato' Was'aka
 
I have worked with OTM in another environment before, but what is the difference between OTM and procom?
 
I don't use Only The Mindless, so I don't know. procom and others come with their own brand of scripting or Visual Basic & marcros (reflections) so their scripts are unique to them. I use reflections with VB & macros, so I can't use procom scripts.

Mato' Was'aka
 
here's a tab delimited script that is set up for a single variable, but can be expanded to several
Code:
Proc main

  
   
   
   string tn
  	;string dn
   
   integer count
   string szline
   fopen 0 "tnb.wud" read

   while not feof 0
   SZLINE = "2"
   fgets 0 szline

    strtok tn szline "t"  1  
  			  ;strtok dn szline ","  1 
   set txpace 60
   transmit "chg^M"
  waitfor "TYPE: "
   transmit "2616^M"
   waitfor "TN   "
   transmit tn
   waitfor "ECHG "
   transmit "yep^M"
   waitfor "ITEM "
   
   transmit "cls cdca dnda tdd^M"
   

 
  
   waitfor "ITEM "
   
   transmit "^M"
   waitfor "REQ: "
   
  
    count += 2
   endwhile
   fclose 0
   fclose 1
   call main
   
   endproc

as you can see the last time i used it was for display cls marks on a 100 or so 2616's... you could make the set type a variable as well or just do one type set at a time... i start with my tn's, usually from ld 81 lst, pull them up in excel them save that as a comma or tab delimited... once i do that i just copy the text and paste it to a wud in acpect editor...

john poole
bellsouth business
columbia,sc
 
it may take a few times to get the 1st one to work, but after you get used to it, it's a great tool...

another possible way is to make one change, record that as a script then use either word mail merge to insert tn's and/or type from an excel or, here's a short loop that does the change based on the tn being in the windows clipboard
Code:
proc main

loop:
   transmit "chg^M"
   waitfor "TYPE: "
   transmit "2616^M"
   waitfor "TN   "
  pastetext
   waitfor "ECHG "
   transmit "yep^M"
   waitfor "ITEM "
   transmit "cls cnda dnda tdd^M"
   waitfor "ITEM "
   transmit "^M"
   waitfor "REQ:  "
pause 1
   goto loop

endproc
[\code]

that ones easy but slower, if i have maybe 20 sets to change i open an excel with the tn's, as the file runs i just arrow down then crtl c while the script runs... note the pause 1, after a few tries you may want to remove that.. 

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

Part and Inventory Search

Sponsor

Back
Top