Trunk Access command

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

Trunk Access command

Post 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)
cavagnaro

Post by cavagnaro »

Trkvisu?
mgsox

Re: Trunk Access command

Post by mgsox »

no trkvisu only shows the names and type not the access.
thanks!
cavagnaro

Re: Trunk Access command

Post by cavagnaro »

What do you mean by access?
User avatar
alex
Senior Member
Posts: 1498
Joined: 06 Jul 2004 07:27
Contact:

Re: Trunk Access command

Post 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.
If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
mgsox

Re: Trunk Access command

Post by mgsox »

cavagnaro wrote:What do you mean by access?
i mean the board configured for that tg.
thanks
cavagnaro

Post by cavagnaro »

Yeah, trkvisu shows that information.
Don't confuse with trkstat
User avatar
tgn
Member
Posts: 803
Joined: 30 Dec 2009 17:59
Location: Germany

Trunk Access command

Post 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...
cavagnaro

Re: Trunk Access command

Post by cavagnaro »

tgn as usual rocking :D
mgsox

Re: Trunk Access command

Post by mgsox »

!!!! hard rocking! thank you all
Post Reply

Return to “Usefull commands”