Page 1 of 1

auto unregister all DECT handsets

Posted: 22 Jan 2010 09:27
by mgoegel
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