Query & List pickup groups in CUCM 7.

Answered Question
Aug 19th, 2010
User Badges:

Hi All,


I have a customer who would like to list all Pickup groups with the assoicated users.

is it possible to Query, List and Extract information from the Publisher.


Regards



Charles

Correct Answer by Aaron Harrison about 6 years 9 months ago

Well.. your subject did say CUCM7....


That said, my syntax was wrong; I wrote that query in McDonalds after too many coffees and without a CCM to test against; sorry!


Try this (tested):

run sql select n.dnorpattern, n.description, pg.name as PickupName from numplan n join  pickupgrouplinemap pglm on n.pkid = pglm.fknumplan_line join pickupgroup pg on pglm.fkpickupgroup = pg.pkid


Regards


Aaron

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Aaron Harrison Fri, 08/20/2010 - 00:21
User Badges:
  • Super Bronze, 10000 points or more
  • Community Spotlight Award,

    Member's Choice, May 2015

Hi Charles


Try this command from an SSH session to the server; log the output to a text file and you can then scrub it in Excel.


I just made this up from the schema, should work but it is untested:


run sql select n.dnorpattern, n.description, pg.name as PickupName from numplan n left join n.pkid = pglm.fknumplan_line on pickupgrouplinemap pglm left join pickupgroup pg on pglm.fkpickupgroup = pg.pkid


Regards


Aaron


Please rate helpful posts...

charles-moore Mon, 08/23/2010 - 08:28
User Badges:

Hi Aaron,


I tried running the CLI from SSH on My Lab CUCM 6 and received the following:


ran the command into Skylab using SSH and it seems to execut, but then it comes back with:-





'A Syntax error has occurred'

It doesn't give any indication of where the syntax error is and I'm not clever enough to fathom out where the error is, so

Unless the command you wrote is only good for version 7, i'm running 6.13

Best regards,

Correct Answer
Aaron Harrison Tue, 08/24/2010 - 00:44
User Badges:
  • Super Bronze, 10000 points or more
  • Community Spotlight Award,

    Member's Choice, May 2015

Well.. your subject did say CUCM7....


That said, my syntax was wrong; I wrote that query in McDonalds after too many coffees and without a CCM to test against; sorry!


Try this (tested):

run sql select n.dnorpattern, n.description, pg.name as PickupName from numplan n join  pickupgrouplinemap pglm on n.pkid = pglm.fknumplan_line join pickupgroup pg on pglm.fkpickupgroup = pg.pkid


Regards


Aaron

charles-moore Tue, 08/24/2010 - 13:11
User Badges:

Hi Aaron,


Thanks alot this works a treat, I'm assuming the SQL Query could be amended to list other tables ?


Cheers Mate


:-)

Aaron Harrison Tue, 08/24/2010 - 13:26
User Badges:
  • Super Bronze, 10000 points or more
  • Community Spotlight Award,

    Member's Choice, May 2015

Hi


Yep; look up the db schema on developer.cisco.com if you are curious and build 'em from there...


Regards


Aaron

Actions

This Discussion