snmp trap error : Unknown Object Identifier

"tamanna madaan" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.