PBX audit - easy way to find the number devices

All those commands that we don't really use very often, but that we should ! Documented or not, they worth it !
Post Reply
zanex

PBX audit - easy way to find the number devices

Post by zanex »

Here is a handy way to collect some info on a system if you want to do it via command line


edsbr

==========================
enter criteria or command:pos != 255
==========================
1 - name -> Subscriber's Name
2 - dir -> Directory number
3 - typ -> Station type
4 - pos != -1 -> Terminal number ignore if you want to count virtuals
5 - pos != 255 -> Terminal number ignore if you want to count virtuals

type "go"
and a random file is generated starting with mcsed

(107)pbx0> date
Thu Sep 4 15:30:03 CEST 2008
(107)pbx0> cd /usr4/tmp/
(107)pbx0> ll | grep 15:29
-rw-rw-r-- 1 mtcl tel 203 Sep 4 15:29 edsbr.cfg.my
-rw-rw-r-- 1 mtcl tel 13 Sep 4 15:29 edsbr.last
-rw-rw-r-- 1 mtcl tel 20927 Sep 4 15:29 mcsedKzMYa7
(107)pbx0> cat mcsedKzMYa7 | grep 4020 | wc -l
323
(107)pbx0> cat mcsedKzMYa7 | grep 4035 | wc -l
30
(107)pbx0> cat mcsedKzMYa7 | grep ana | wc -l
53
krzysioD

Re: PBX audit - easy way to find the number devices

Post by krzysioD »

edsbr
==========================
enter criteria or command:out FILE
enter criteria or command:go
enter criteria or command:quit

and file is named like /tmpd/edsbr.out
now you could do a werming/gkermit send this file and have very handy printout for recrossing your pabx<>terminal connections.

also, if you put criteria like cry 0-10, output is being _sorted_ by crystal number, order of criteria does mater -> output is sorted in this order.
Gedeon

Re: PBX audit - easy way to find the number devices

Post by Gedeon »

4 - pos != -1 -> Terminal number ignore if you want to count virtuals
-1 is not a valid indication for crystal/coupler/terminal.
It's only used to create a user with an automatic equipment assignation.

In the same way, you can use ednump to obtain in a single file the numbering plan. You can modify the file with Excel.
It's a good and quick solution to find a free prefix in the system.

G.
Post Reply

Return to “Usefull commands”