Enterprise SpecificTrap Varbind??




Hi , I have developed an Agent, and Its own customized MIB.

The MIB has some Groups ( eg thread Groups) each having ThreadName,
Status, etc.. OIDs.

I Easily build and send Generic traps, since theier VarbindList is
clear.

But I seem to be stuck , on structure of varbind , in case of specific
traps.

I defined notifications like following , in my MIB.

-------------------------------------------------------------------------------------
ThreadStateChanged NOTIFICATION-TYPE
--OBJECTS { smscThreadIndex, ThreadName }
STATUS current
DESCRIPTION
"TODO--"
::= { myNotifications 2}
-------------------------------------------------------------------------------------

and lets say this is the oid for which i want to generate trap.

---------------------------------------------------------------------------
myThreadName OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"OCTET-STRING value for Name of thread"

::= {myRecieverThread 1}

myThreadStatus OBJECT-TYPE
SYNTAX Integer32 (1|2|3|4)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Thread Status
1---Alive
2---Alive/suspended
3---sleep
4---Destroyed"

::= { myRecieverThread 2}

----------------------------------------------------------------------------------
I want that, whenevr vale of 'myThreadStatus' changes, agent shuold
generate 'ThreadStateChanged' Trap to manager.

But I dont Seem to understande How to make Varbind for this, I mean
What is the structure of varbind for sepcific traps.

I can give
varbind.oid ==myThreadName oid
and varbind.value== myThreadName value

since i juat want to tell name of thread whose state has changed,
whatever state maybe!

But where does "ThreadStateChanged" come in, how do i make its object
and varbind??
how do i put my 'ThreadName' in 'ThreadStateChanged' object , and then
make varbind???

what is the structre for the varrbind of notifications for enterprise
specific event!

I seriously need guidence, any help will be highly appreciated!

thanx!

Farhan

.



Relevant Pages

  • Re: new to SNMP
    ... You can search for an OID ... the manager application does not use an MIB but just uses the OIDs ... I am going to contact the maker of the switch. ...
    (microsoft.public.win32.programmer.networks)
  • Re: new to SNMP
    ... the manager application does not use an MIB but just uses the OIDs ... I am going to contact the maker of the switch. ... this MIB and get the OID for it from the MIB. ...
    (microsoft.public.win32.programmer.networks)
  • Re: new to SNMP
    ... I am going to contact the maker of the switch. ... MIB from the switch vendor. ... this MIB and get the OID for it from the MIB. ... managed device. ...
    (microsoft.public.win32.programmer.networks)
  • Re: new to SNMP
    ... will my Network Manager application ... MIB from the switch vendor. ... this MIB and get the OID for it from the MIB. ... managed device. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Problem with hexvalue
    ... My application is just decode the snmp packet ... and show the varbind datatype and result. ... The manager uses the MIB to determine how to format return values. ...
    (comp.protocols.snmp)