Pickup Groups maintenance command?

Post Reply
Lampers
Member
Posts: 28
Joined: 16 Jun 2009 11:22

Pickup Groups maintenance command?

Post by Lampers »

Hi,

I was wondering if there is a maintenance command for pickup groups? Something similar to pbxstat for hunting groups?

Thank you,

Lampers
User avatar
Eliott
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 640
Joined: 10 Feb 2010 03:43

Re: Pickup Groups maintenance command?

Post by Eliott »

Can't currently remember such command. What do you expect to see with it?
Lampers
Member
Posts: 28
Joined: 16 Jun 2009 11:22

Re: Pickup Groups maintenance command?

Post by Lampers »

Hopefully, a list of Pickup group names and IDs
User avatar
Eliott
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 640
Joined: 10 Feb 2010 03:43

Re: Pickup Groups maintenance command?

Post by Eliott »

Why you dont use mgr?

This command shows you all pickup groups and the members (copy and paste to shell as one command)

Code: Select all

cdmao; (echo "select pickup_id from pickup;"|cuser|grep "\-\-"|grep -v pickup|cut -c5-11;)|while read pickup_id;do echo -n "Next Group: ";echo "select name_pickup, pickup_id from pickup where pickup_id=$pickup_id;"|cuser |grep "\-\-"|grep -v pickup |cut -c5-;echo "select numan, pickup_id from poste where pickup_id=$pickup_id;"|cuser|grep "\-\-"|grep -v numan |cut -c5-; done 
Lampers
Member
Posts: 28
Joined: 16 Jun 2009 11:22

Re: Pickup Groups maintenance command?

Post by Lampers »

This is excellent, just what i'm after. I'm trying to automate the collection of this data from an external program so mgr doesnt really work in that sense. I'm interested in retreiving more data in this fashion, is the database structure documented anywhere?

Many thanks
User avatar
Eliott
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 640
Joined: 10 Feb 2010 03:43

Re: Pickup Groups maintenance command?

Post by Eliott »

No, it isn't.
Post Reply

Return to “Groups”