Page 1 of 1
Script to reset IP-phones ?
Posted: 10 Feb 2010 06:06
by mothinx
Hello there !
Here is my problem: i have to disable PC-port on +300 Ipphones. Its ok with categories.
But this option is ok after reseting devices.
So, i have to found a way to reset 300ipphones withou shutdown the callserver. Easy ?
I think i will have to use shell-script.
Like:
#!/bin/bash
termstat d xxxxx
5
But i don't know how to use script when we have to use an alcatel menu (like termstat).
Can you advice me ?
Best regards, Julien
Posted: 10 Feb 2010 06:29
by alex
It is already implemented.
Code: Select all
(E)demo_9> downstat h
Wed Feb 10 14:29:13 MSK 2010
Usage : downstat [c|w]
downstat v cr cpl
downstat r HH:MM
downstat p
downstat s
c : to obtain the downloading boards
w : to obtain the boards waiting to be dowloaded
: to get both informations
d : to obtain boards that have to be downloaded
r HH:MM : to program the automatic reset of boards
p : to display the programmed reset
s : to remove a programmed reset
v cr cpl : display binaries' versions for this coupler
Ip Phone download informations
downstat i
i : to obtain ip phones that have to be downloaded
[B][size=134] i r HH:MM : to program the automatic reset of ip phones[/size][/B]
IPTOUCH TDM Phone download informations
downstat t
t : to obtain IPTOUCH TDM phones that have to be downloaded
Posted: 10 Feb 2010 07:33
by mothinx
Thank you alex !
Is it possible to know how to use shell script with alcatel command like ippstat / downstat .... (command with menu) ?
Posted: 10 Feb 2010 07:59
by alex
mothinx wrote:Thank you alex !
Is it possible to know how to use shell script with alcatel command like ippstat / downstat .... (command with menu) ?
No if i need script i just go starightforward -
10 write script
20 test it
30 if errors then
correct it
goto 10
else
endif
50 success
May be some other guys here have an experience with using those in scripts.
"ippstat" and "downstat" were created for maintenance purposes so they are not shellscript-friendly. Actually there is one large executable "tool" which combines these commands.

Posted: 10 Feb 2010 08:02
by mothinx
We are not programmer, we are telephonist !
Ouha !
Posted: 11 Feb 2010 02:20
by tomar
Try using the "expect" command available in linux/unix. With "auto expect" you can imitate any function using script that you have been earlier doing using the menu.
Tomar