Phone Inventory
Tags: asterisk, e phone, ip phones, model, phone, phone model, query, support
Hi there
I have just took a support of a customer with hundreds of IP phones,
mostly Polycom with mixed models.
Is there a way to query asterisk or any other command to retrieve the
inventory of all connected phones. i.e. Phone Type and Phone Model, say
Polycom SPIP331 or so
Thanks
Sam
Dale Noll said:
Feb 23, 12 at 11:20 amThanks for the inspiration!!
Here is my version, done with a single loop and gets Useragent and
Contact together with a visual separation between peers.
asterisk -rx “sip show peers”|
cut -f1 -d/ | grep -P ‘dddd’ |
grep -vP ‘(UNKNOWN|Unmonitored)’ |
while read PEER
do
asterisk -rx “sip show peer ${PEER}” |
grep -P “(Useragent|Contact)”
echo “====”
done
I hope others find it useful.
Dale
PS. I by no means claim to be smarter than thou. I just happen to
really like grep and the -P option
"Muro, Sam" said:
Feb 23, 12 at 11:24 amThank you all
You are a life saver
Sam
Dale Noll wrote: