auto unregister all DECT handsets

Did you say hacking ?
Post Reply
mgoegel
Member
Posts: 248
Joined: 12 Feb 2007 12:18
Location: Germany

auto unregister all DECT handsets

Post by mgoegel » 22 Jan 2010 09:27

Don't know, if this is the correct forum...

A while ago i had to change complete numbering plan on customer site - nearly 150 DECT handsets had to be unregistered, before installing the new database.

I used this little script to unregister them.
It was created under R5 chorus, so test it on OXE, before you try this on a productive system!

[PHP]
#!/bin/sh
sets=`tool dectsets|grep "Nbr="|grep -v "?"|awk '{print $2 }'|cut -b 5-`
for i in $sets
do
echo -e "y\ny\n"|tool dectrm "$i"
done
[/PHP]

btw: instead of echo -e "y\ny\n"|tool dectrm "$i" you can use tool dectrm -e "$i"

Mario

Post Reply

Return to “System Hacking”