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
Member
Posts: 197
Joined: 31 Aug 2007 05:14

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)
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Post by cavagnaro »

Trkvisu?
mgsox
Member
Posts: 197
Joined: 31 Aug 2007 05:14

Re: Trunk Access command

Post by mgsox »

no trkvisu only shows the names and type not the access.
thanks!
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Trunk Access command

Post by cavagnaro »

What do you mean by access?
Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
User avatar
alex
Senior Member
Posts: 1457
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
Member
Posts: 197
Joined: 31 Aug 2007 05:14

Re: Trunk Access command

Post by mgsox »

cavagnaro wrote:What do you mean by access?
i mean the board configured for that tg.
thanks
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Post by cavagnaro »

Yeah, trkvisu shows that information.
Don't confuse with trkstat
User avatar
tgn
Member
Posts: 802
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...
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Trunk Access command

Post by cavagnaro »

tgn as usual rocking :D
Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
mgsox
Member
Posts: 197
Joined: 31 Aug 2007 05:14

Re: Trunk Access command

Post by mgsox »

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

Return to “Usefull commands”