[cisco-voip] SQL database dips on v7 (how to get list of phones that are not plugged in)

Lelio Fulgenzi lelio at uoguelph.ca
Mon Apr 25 10:49:37 EDT 2011


Thanks Jason. It doesn't look like there will be an easy way to do this. RIS seems to keep information only about phones that are plugged in. I'd have to some how export data from the phone query off all servers and compare this to data that is available for all phones. 

--- 
Lelio Fulgenzi, B.A. 
Senior Analyst (CCS) * University of Guelph * Guelph, Ontario N1G 2W1 
(519) 824-4120 x56354 (519) 767-1060 FAX (JNHN) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
Cooking with unix is easy. You just sed it and forget it. 
- LFJ (with apologies to Mr. Popeil) 


----- Original Message -----
From: "Jason Burns" <burns.jason at gmail.com> 
To: "Lelio Fulgenzi" <lelio at uoguelph.ca> 
Cc: cisco-voip at puck.nether.net 
Sent: Monday, April 25, 2011 10:41:39 AM 
Subject: Re: [cisco-voip] SQL database dips on v7 (how to get list of phones that are not plugged in) 

Lelio, 

The registration status is not actually stored in the Informix database that I'm aware of. This means any SQL statement against the database wouldn't yield the information you're looking for. 

The information about registration status is stored in a shared memory space that the RIS process has access to. You can peek at the information RIS has from the command line for each server with the CLI command: 

show risdb query phone 

Where I think you need to go next is looking into another interface to access the registration info. It may be possible to query RIS programatically through the RIS web interface (just like RTMT does), or there may be something in the AXL API for this. I don't know the exact how-to for either of those though. 

-Burns 



On Mon, Apr 25, 2011 at 10:23 AM, Lelio Fulgenzi < lelio at uoguelph.ca > wrote: 





I'm hoping to get information from the tables using SQL and will read up on the database library in a while, however, just wondering about this one. From what I recall, IP address information is a different characteristic. Is this store in tables at all? If so/not, how can I access this information to produce a snapshot of phones that are not plugged in? 



--- 
Lelio Fulgenzi, B.A. 
Senior Analyst (CCS) * University of Guelph * Guelph, Ontario N1G 2W1 
(519) 824-4120 x56354 (519) 767-1060 FAX (JNHN) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
Cooking with unix is easy. You just sed it and forget it. 
- LFJ (with apologies to Mr. Popeil) 



_______________________________________________ 
cisco-voip mailing list 
cisco-voip at puck.nether.net 
https://puck.nether.net/mailman/listinfo/cisco-voip 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20110425/27daf9ba/attachment.html>


More information about the cisco-voip mailing list