Hi,
Does anyone know how the TC maps port numbers which the NMC uses above - <slot# * 1000 + span#> to the one the arc uses to report back a username in OID 1.3.6.1.4.1.429.4.10.1.1.18? Or is there another OID that might report back a username that uses the same type of numbering scheme?
So the mapping is: --- 8-< -------------- #!/bin/sh RCOMM=<your-read-community> SRV=$1 SLT=$2 MDM=$3 DUM=`expr $SLT \* 256` INST=`expr 1000 + $DUM + $MDM` echo $INST # usrCipUserName 1.3.6.1.4.1.429.4.10.1.1.18 # usrCipDataLinkConn 1.3.6.1.4.1.429.4.10.1.1.20 snmpget $SRV $RCOMM .1.3.6.1.4.1.429.4.10.1.1.18.$INST .1.3.6.1.4.1.429.4.10.1.1.20.$INST --- 8-< -------------- So, a possible output may be: --- 8-< -------------- GetPortInfo.sh srv1.somewhere 1 2 1258 enterprises.429.4.10.1.1.18.1258 = "aolnet/aol.dlp.Elchenc8.10120100100101de2905.0000.prod" enterprises.429.4.10.1.1.20.1258 = 10 --- 8-< -------------- corresponds to: --- 8-< -------------- srv1.somewhere> list conNECTIONS CONNECTIONS Start Start IfName User Name Type DLL Date Time slot:1/mod:2 aolnet/aol.dlp.Elchenc8.10120100100101de2905.0000.prod DIALIN L2TP 30-JUL-2002 20:32:11 --- 8-< -------------- Hope this helps, Oliver. -- Was hat bei uns die geringste PopulariTAET? Oliver.Francke@mediaWays.net fon. +49-5246-80-1389 mob. +49-171-5597734 I used to have a sig, but I've stopped smoking now.