Page 1 of 1

Trunk Access command

Posted: 24 Apr 2015 08:33
by mgsox
hi all! i was looking at infocollect sub folders and files and i came accross the below outcome for trunk groups.
does any one know if thereis a specific command for that?
thanks for your help

------ TRUNK : 2 ------
typTrunk : (6) => T2
(num_crist - num_cpl - num_term) = (3-24-0)
(num_crist - num_cpl - num_term) = (3-17-1)
(num_crist - num_cpl - num_term) = (3-17-0)

------ TRUNK : 3 ------
typTrunk : (6) => T2
(num_crist - num_cpl - num_term) = (1-11-1)
(num_crist - num_cpl - num_term) = (1-11-0)
(num_crist - num_cpl - num_term) = (4-12-0)
(num_crist - num_cpl - num_term) = (4-10-0)
(num_crist - num_cpl - num_term) = (3-19-0)
(num_crist - num_cpl - num_term) = (3-19-1)

Posted: 24 Apr 2015 09:05
by cavagnaro
Trkvisu?

Re: Trunk Access command

Posted: 24 Apr 2015 09:08
by mgsox
no trkvisu only shows the names and type not the access.
thanks!

Re: Trunk Access command

Posted: 24 Apr 2015 10:55
by cavagnaro
What do you mean by access?

Re: Trunk Access command

Posted: 24 Apr 2015 11:16
by alex
infocollect is a shell script that uses other shell scripts with trkvisu and trkstat output then these are processed by awk script.
So no single command exists to get such output.

Re: Trunk Access command

Posted: 27 Apr 2015 04:34
by mgsox
cavagnaro wrote:What do you mean by access?
i mean the board configured for that tg.
thanks

Posted: 27 Apr 2015 07:45
by cavagnaro
Yeah, trkvisu shows that information.
Don't confuse with trkstat

Trunk Access command

Posted: 27 Apr 2015 09:05
by tgn
trkvisu is the right answer.
but it's formed by sed in the script. a look into "/usr/sbin/feml.d/trunks.mtcl gives you the answer.

Code: Select all

        for i in `${TOOL} trkvisu all | grep local | awk '{print $2}'`
        do
                echo "------ TRUNK : $i ------"
                ${TOOL} trkvisu $i | egrep "typTrunk|num_crist" | sed 's/|//'
                echo
        done > local_trk_access.txt
so this here will give you the output for trunkgroup 15

Code: Select all

trkvisu 15 | egrep "typTrunk|num_crist" | sed 's/|//'
regards...
regards...

Re: Trunk Access command

Posted: 27 Apr 2015 12:46
by cavagnaro
tgn as usual rocking :D

Re: Trunk Access command

Posted: 04 May 2015 09:01
by mgsox
!!!! hard rocking! thank you all