On 01/08/2013 03:10 PM, George Niculae wrote:
On Tue, Jan 8, 2013 at 3:00 PM, Jan Fricke <jan.fri...@iant.de <mailto:jan.fri...@iant.de>> wrote:

    Hi,

    until 4.4 I could grep /var/sipxdata/sipdb/registration.xml to get
    information about the phone registrations from a bash script. What
    is the easiest way to do that in 4.6?


You can query it from mongo cli, do:

mongo
use node
db.registrar.find()

Alternatively you could write your own script for this, see http://docs.mongodb.org/manual/tutorial/write-scripts-for-the-mongo-shell/

George

There's also a little mongo "How to" on the wiki: http://wiki.sipfoundry.org/pages/viewpage.action?pageId=11796566 . It's for a different collection, but you can see a few useful mongo queries. (However note that in MongoDB shell version: 2.0.7 regex queries do not work.)


C
_______________________________________________
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Reply via email to