Re: scotty/Tnm extension
- From: Mark Janssen <mpc.janssen@xxxxxxxxx>
- Date: 30 May 2007 17:08:30 -0700
On May 30, 11:04 pm, ap <cors...@xxxxxxxxxxxxxx> wrote:
I thought I'd post the specific commands I have tried after
loading the mib files. Note that I get nothing back
from Walk.
What is the proper way to walk the subtree and display
all the objects?
set s [Tnm::snmp generator -address 192.168.4.10]
$s get sysObjectID.0
{1.3.6.1.2.1.1.2.0 {OBJECT IDENTIFIER} XXYY-REGISTRATION-OBJECTS-
MIB::ee4000}
TnmSnmp::Walk $s 1.3.6.1.2.1.1.2.0
[192.168.4.10:161] [Wed May 30 5:01:22 PM Eastern Daylight Time 2007]:
THANKS!!
IIRC you need to specify a callback script for every var that is
returned try:
proc walk { s label } {
$s walk vbl $label {
foreach oid [Tnm::snmp oid $vbl] value [Tnm::snmp value $vbl] {
puts [format "%-31s: %s" [Tnm::mib name $oid] $value]
}
}
}
walk $s 1.3.6.1.2.1.1.2.0
.
- References:
- scotty/Tnm extension
- From: ap
- Re: scotty/Tnm extension
- From: ap
- scotty/Tnm extension
- Prev by Date: Re: PROPOSAL: Tcl equivalent to .NET interop
- Next by Date: Hebrew in starkit
- Previous by thread: Re: scotty/Tnm extension
- Next by thread: Re: scotty/Tnm extension
- Index(es):
Relevant Pages
|