Phone Inventory

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

2 Responses to “Phone Inventory”

  1. Dale Noll said:

    Feb 23, 12 at 11:20 am

    Thanks 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 ;-)

  2. "Muro, Sam" said:

    Feb 23, 12 at 11:24 am

    Thank you all

    You are a life saver

    Sam

    Dale Noll wrote: