|
From: tamanna m. <tam...@gl...> - 2010-05-20 09:42:21
|
Hi All
I have done the following code changes in one of the MIB files
NOTIFICATION-MIB.txt in my application code :
abcStatus OBJECT-TYPE
SYNTAX INTEGER {
Restored(1),
Missing(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates status
Restored(1) - restored .
Missing(2) - missing .
"
::= { GlobalState 4 }
defStatus NOTIFICATION-TYPE
OBJECTS {abcStatus}
STATUS current
DESCRIPTION
"A trap sent "
::= { Traps 11 }
TrapGroup NOTIFICATION-GROUP
NOTIFICATIONS {
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
defStatus
}
STATUS current
DESCRIPTION
"The set of all currently defined traps."
::= { Groups 1 }
I have restarted snmp daemon after doing the above changes .
But while executing the below command :
/usr/bin/snmptrap 10.201.1.135:162 ' ' NOTIFICATION-MIB:defStatus
NOTIFICATION-MIB:abcStatus i 2
I get the following error :
2010-05-20 14:14:01 NEXTONE-NOTIFICATION-MIB:defStatus: Unknown Object
Identifier
Can anyone please let me know what I am missing .
Thanks..
Tamanna
|