Re: Remotely creating/modifying SNMP traps?



Michael wrote:

I was wondering if it's possible for an NMS/manager/client to create or
modify traps in an SNMP agent's MIB? I've trawled the internet, and
this is the only relevant thing I could find:

"Some more advanced [sic!] SNMP agents, like Bay Networks'
NetworkManagement Module agents, will accept new
circumstances and instructions."

The necessary additional sentence for such mis-called "advanced" agent
operation is the one /right after/ your quote :-)

"These are usually in the form of thresholds..."

If agent code can understand a threshold value for some condition (a
threshold CPU temperature, for example) then it's commonplace for the
agent to send an SNMP trap when the current CPU temp exceeds the
threshold. Now suppose that threshold temp is represented by a SETtable
MIB object rather than a constant in the agent code. Then the NMS can
change the threshold value and thus (in a sense) modify the trap. You
might name the relevant MIB objects as "cpuCurTemp" and "cpuThreshTemp"
and you might tell the NMS that both objects are INTEGERs. And that the
first is read-only and the second read-write.

When you include such SETtable objects in your MIB, then you lend a
dynamic quality to the states they represent, which I believe is what
you're after.

Many other conditions are possible in your MIB: you might want to
enable/disable one trap or all traps, for example, to give the effect
(only the effect) of creating/destroying traps. Or ensure a certain
minimum time between traps. Or even configure one set of varbinds to be
sent under one condition, another set under a second condition.

All this flexibility is pretty straightforward, though often
non-trivial. After you add objects to the MIB, then you need to modify
the trap-handling code in your agent so it understands all your new MIB
objects and cooperates in parsing them according to the conditions
under which that trap code gets control.

There is no such thing as an "advanced" agent in the sense that your
reference wrongly claims.

HTH. Traps are interesting things that some find daunting.

-- Pete Wilson (pete who'sat pwilson dot net)

.



Relevant Pages

  • Enterprise SpecificTrap Varbind??
    ... The MIB has some Groups each having ThreadName, ... I Easily build and send Generic traps, ... But I seem to be stuck, on structure of varbind, in case of specific ... and lets say this is the oid for which i want to generate trap. ...
    (comp.protocols.snmp)
  • SNMPv1 traps in SMIv2 MIB (TRAP-TYPE to NOTIFICATION-TYPE)
    ... I'm trying to make an SMIv2 MIB for an SNMPv1 agent, ... I used the rule in RFC2576: take the SNMPv1 trap's ENTERPRISE OID, ... "Test MIB with SNMPv1 traps converted to SMIv2" ... myTrap8 NOTIFICATION-TYPE ...
    (comp.protocols.snmp)
  • Re: Platform SDK MIB builder?
    ... the OIDs (from your MIB) for your traps. ... What is the relationship between the MIB and the Platform SDK ... when using calls like SnmpSendMsg() or SnmpSetPduData. ...
    (microsoft.public.win32.programmer.networks)
  • EzMgt MIB Browser 1.0.3 beta released
    ... We have released a new version of EzMgt MIB Browser. ... You can install the latest updates from the ... -- New Traps Receiver. ...
    (comp.protocols.snmp)
  • Re: Platform SDK MIB builder?
    ... I want to use the Platform SDK to generate traps -- nothing else. ... What is the relationship between the MIB and the Platform SDK ... >> Is there an SNMP MIB building tool with the Win SDK for NT/XP? ...
    (microsoft.public.win32.programmer.networks)