Re: [tkined] Constructing a Trap PDU

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Sat, 28 Nov 1998 22:54:04 +0100

>>>>> Mullaparthi Chandrashekhar writes:

Mullaparthi> I'm new to Scotty and SNMP! I have a notification defined
Mullaparthi> as follows. commAlarm NOTIFICATION-TYPE OBJECTS {
Mullaparthi> tpAlarmId, tpAlarmCatId, tpAlarmCatName, tpAlarmCatDesc,
Mullaparthi> tpAlarmSet, tpAlarmNotify, tpAlarmSeverity,
Mullaparthi> tpAlarmReported, tpComponentId, tpComponentType,
Mullaparthi> tpComponentName, tpComponentDesc, tpComponentParentId,
Mullaparthi> tpAlarmTime }

[snip]

Mullaparthi> set vblist [list \
Mullaparthi> [list commAlarm.1 1] \
Mullaparthi> [list commAlarm.2 1] \
Mullaparthi> [list commAlarm.3 "Test"] \

[snip]

Mullaparthi> End When I try to execute the above script I get the
Mullaparthi> error: illegal object identifier "Test" while executing
Mullaparthi> "$sn trap commAlarm $vblist" (file "sndtrap.tcl" line 38)

Mullaparthi> I know I'm goofing up while constructing the list, but I
Mullaparthi> dont know where. Help please!

Why do you use things like commAlarm.1 and not tpAlarmId? I guess this
is actually the same, but this is at least confusing. Further, you
need to specify the instance identifier in the variables that go into
the varbind list (see the relevant SNMP RFCs). Finally, the error
message means that the type of commAlarm.3 if OBJECT IDENTIFIER and
that scotty does not know an OBJECT IDENTIFIER under the descriptor
"Test". (In other words, scotty fails to convert the value "Test" into
the type required by commAlarm.2.)
Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3289)
--
!! 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.