Trap enterprise-code vs specific-code

Ovidiu Deac <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello everybody,

I am working on an application that sends SNMP traps when some special
conditions occur. The traps are sent using send_v2trap() like this:

1. create a netsnmp_variable_list
2. add to it the trap oid as a variable of type Object Identifier
3. add whatever other variables the trap needs
4. send the trap using send_v2trap()

But we have the following problem: one of our customer complains that
the Trap Packet is wrong formatted and he asks that the trap should have
the following fields like this:
enterprise-code - should have the oid of the trap EXCEPT the last number in the OID
specific-trap - should have the last number of the trap's OID
He says that this way he can identify the trap via the specific code.

See below the text from our customer:
"In order an application could identify a trap there shall be a unique
set of the enterprise and specific code. enterprise code usually
specifies the device type, agent, etc., while specific - specifies the
particular event on that device and agent.
Therefore, enterprise code in your case shall be in your case always the
same -   .1.3.6.1.4.1.23668.9999.15
and specific code shall be changed from 1 to 5 in accordance to MIB
Now we have (looking at the catched packets) :
enterprise code - .1.3.6.1.4.1.23668.9999.15.5 (for DBUpdated, i.e. it
differs for each event)
specific code - 0 or some 10-digits number.
This does not allow to identify the trap - it means, there application
cannot set a unique message for operators for this kind of event.

Expected behaviour:
--- remove 'specific code' from the 'enterprise OID' field (last number)
--- and move it ('specific code' ) to the specific-trap field"


Now my questions are:
1. Is his request correct? Is this the way other people identify the traps?
2. Isn't it more handy to identify a trap by its enterprise code?
3. How can I set up the value for the field specific-code?

Thanks in advance,
Ovidiu



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.