Re: mib format command

Cameron Laird (claird@Starbase.NeoSoft.COM)
Wed, 18 Jun 1997 14:11:08 -0500 (CDT)

From owner-tkined@ibr.cs.tu-bs.de Fri May 23 10:51:39 1997
Sorry about the delay. I thought that someone else
had answered this, but apparently not, so I'll step
in.
Date: Fri, 23 May 1997 10:49:14 -0400
From: "SADANANDA PHADKE A." <phadke@cisco.com>
.
.
.
Has anyone knows how to use "mib format _l_a_b_e_l _v_a_l_u_e
command.
I was wondering whether I can use it for integer representation of
the texual information.
For example when I do a getnext operation on
"snmp# getnext ipForwarding"
it returns
{1.3.6.1.2.1.4.1.0 INTEGER forwarding}
rather than returning integer value of the "forwarding".

Can I use "mib format" command for this purpose.
.
.
.
No; but you can use "mib scan ...":

mib scan ipForwarding \
[lindex [lindex [$snmp_session getnext ipForwarding] 0] 2]

Cameron Laird http://starbase.neosoft.com/~bodi/nesi.html
Network Engineered Solutions +1 713 763 8366
claird@NeoSoft.com +1 281 996 8546 FAX
Houston WWW Business Guide: http://starbase.neosoft.com/~bodi/HouGuide.html

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.