• November 17, 2019, 11:17:52 AM
Welcome, Guest. Please login or register. Registration is free.
Did you miss your activation email?

Author Topic: telnet\Expect script for Daylight savings time for USPs  (Read 3869 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeldata

  • Rookie
  • **
  • Posts: 1
telnet\Expect script for Daylight savings time for USPs
« on: February 02, 2011, 08:51:17 PM »
I am trying to write a telnet\Expect script for Daylight savings time for USPs. --- the USP has a unique name uspxxx1 and a unique IP 10.x.x.1, username and password. There are multiple USPs that are on a GUI server --- you may assume any number of USPs greater than 1.

Q: Does anyone have a clue on how to write a telnet\expect script to accomplish this task. This is a Nortel Platform stuffs.

Many thanks in advance

Michael
« Last Edit: August 28, 2011, 08:21:05 PM by Michael McNamara »


Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3840
    • michaelfmcnamara
    • Michael McNamara
Re: telnet\Expect script for Daylight savings time for USPs
« Reply #1 on: February 02, 2011, 10:06:09 PM »
Hi Michael and welcome to the forums!

I'm not familiar with the USP (Universal Signaling Point) myself... can you set the daylight saving time information via telnet?

If you can set the configuration via telnet you can probably use autoexpect to help record the process, then you can clean up the script generated by autoexpect and write an accompanying shell script to call the Expect script with a variable FQDN or IP address of the device you'd like to reconfigure.

You can see an example here;
http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/

You can see that I wrote an Expect script to perform the actual configuration change and a Bash Shell script to call the Expect script for each switch that needed to be reconfigured.

Good Luck!
« Last Edit: August 28, 2011, 08:21:16 PM by Michael McNamara »
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!