Re: scotty/Tnm extension



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

.



Relevant Pages

  • Re: newbie question about text boxes
    ... > What is the proper way to set a text box where it would display a few ... It would be textbox, with vertical scroll bar ... > It seems wrong to type so much text into a label object... ... > creating a large block of text to display as I want. ...
    (microsoft.public.dotnet.languages.csharp)
  • Ping Randy Birch?
    ... Recursive File Search for Single or Multiple File Types ... I'm forbidden to display it here by the notice in the code, ... I tried to put a "working" label on the form so I'd know I clicked ...
    (microsoft.public.vb.general.discussion)
  • Label will not display NEW records frm another (bound) form.
    ... When I add the name of a new individual in a, bound form, it will not display ... that person’s name in a label control of a second unbound form. ... try to add NEW entries that I the label control will not work/refresh. ... past Registrations. ...
    (microsoft.public.access.formscoding)
  • RE: Trouble displaying info from access db
    ... Is lblSubName the name or your label? ... not getting the Subject Code to display in the Label? ... Private Sub Form1_Load(ByVal sender As System.Object, ... Dim intRecordCount As Integer ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: vb.net search network drive
    ... files to display what I have above. ... has something to do with how you test a String value... ... Why not just place a Label above your ListBox, ... String.Format("There are also whatever files waiting to be sent", ...
    (microsoft.public.dotnet.languages.vb)