Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Friends,
I have an SNMP trap defined like

CSS
Message  OBJECT-TYPE
            SYNTAX    DisplayString (SIZE (0..256))
            ACCESS    read-only
            STATUS    deprecated
            DESCRIPTION
                      "The text of the alert message."
            ::= { trapInfo 1 }


and used like

CSS
AppCrash  TRAP-TYPE
                 ENTERPRISE  APPNAME
                 VARIABLES   {
                             alertMessage,
                             OtherIOD1,
                             OtherIOD2
                             }
                 DESCRIPTION "My app is just crahshed"
                 ::= 1


Can I generate TRAP which sometimes do not use OID "OtherIOD1" & "OtherIOD2"? will may trap still work?

Note: Assume that OtherIOD1 and OtherIOD2 are defined.

~ Vikram S
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900