Enterprise SpecificTrap Varbind??
- From: FarhanJan <sco_jan82@xxxxxxxxx>
- Date: Mon, 09 Jul 2007 00:25:25 -0700
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
.
- Prev by Date: Re: add some my own OID to windows XP/vista
- Next by Date: Re: SNMP Discovery over IPv6
- Previous by thread: add some my own OID to windows XP/vista
- Next by thread: Re: SNMP Discovery over IPv6
- Index(es):
Relevant Pages
|