Interrogate Cisco Unified IP Phone CP-7942G

Started by Brad McD

Brad McD

Interrogate Cisco Unified IP Phone CP-7942G   14 July 2018, 10:00

Do you have any tricks for interrogating Cisco IP Phones during sweep? TCP Ports 80 & 443 are present.
SoftPerfect Support forum - Andrew avatar image

Re: Interrogate Cisco Unified IP Phone CP-7942G   14 July 2018, 10:02

It depends on what ports the phones are listening and what information cab be retrieved there.

For example, if the phones display a web-page on port 80 and that page contains any useful information such as model or serial number, this information can be extracted with the feature called Remote XML. It can be used to retrieve the page and parse it with regular expressions.

Here is a screenshot of this feature. If you are not sure how to write a regular expression to extract information, please send me a copy of the page (HTML) that the phones respond with:

SoftPerfect support forum
Brad McD

Re: Interrogate Cisco Unified IP Phone CP-7942G   14 July 2018, 16:29

Wow, that would be interesting. The HTML is here.
Show me how to grab one of these, and I'll try the others.
  • Host Name
  • Phone DN
  • Model Number

Thank You.
SoftPerfect Support forum - Andrew avatar image

Re: Interrogate Cisco Unified IP Phone CP-7942G   14 July 2018, 17:10

The following regular expression should do the trick:
.*Host Name</b></td>\s*<td[^>]*>\s*</td>\s*<td[^>]*><b>([^<]*)
.*Phone DN</b></td>\s*<td[^>]*>\s*</td>\s*<td[^>]*><b>([^<]*)
.*Model Number</b></td>\s*<td[^>]*>\s*</td>\s*<td[^>]*><b>([^<]*)
Basically you just add this regular expression under Remote XML like this:

SoftPerfect support forum

Here is how it works with a similar phone:

SoftPerfect support forum

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 **     **        **  ********   **     **   *******  
 **     **        **  **     **  **     **  **     ** 
 **     **        **  **     **  **     **         ** 
 *********        **  ********   *********   *******  
 **     **  **    **  **         **     **         ** 
 **     **  **    **  **         **     **  **     ** 
 **     **   ******   **         **     **   *******  

Message: