This is a discussion on send_enterprise_trap_vars and sender Enterprise OID within the SNMP Users forums, part of the Networking and Network Related category; Hello, I use=20 send_enterprise_trap_vars this way: send_enterprise_trap_vars ( SNMP_TRAP_ENTERPRISESPECIFIC, P_TrapId, G_openCallOID, openCall_oid_len,L_ptrVarBind); where SNMP_TRAP_ENTERPRISESPECIFIC =3D 6 P_TrapId =3D 9000344 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I use=20 send_enterprise_trap_vars this way: send_enterprise_trap_vars ( SNMP_TRAP_ENTERPRISESPECIFIC, P_TrapId, G_openCallOID, openCall_oid_len,L_ptrVarBind); where SNMP_TRAP_ENTERPRISESPECIFIC =3D 6 P_TrapId =3D 9000344 G_openCallOID =3D oid openCall_oid[] =3D { 1,3,6,1,4,1,11,2,29,2 }; and I get traps like below: Simple Network Management Protocol Version: 1 (0) Community: public PDU type: TRAP-V1 (4) ------------------------------------------------------------------------ ---- Enterprise: 1.3.6.1.4.1.8072.3.2.10 (SNMPv2-SMI::enterprises.8072.3.2.10) ------------------------------------------------------------------------ ----- Agent address: 10.102.35.68 (10.102.35.68) Trap type: ENTERPRISE SPECIFIC (6) Specific trap type: 9000344 Timestamp: 29982 Object identifier 1: 1.3.6.1.2.1.1.3.0 (SNMPv2-MIB::sysUpTime.0) Value: Timeticks: (29980) 0:04:59.80 ------------------------------------------------------------------------ ------ Object identifier 2: 1.3.6.1.6.3.1.1.4.1.0 (SNMPv2-MIB::snmpTrapOID.0) Value: OID: SNMPv2-SMI::enterprises.11.2.29.2.0.9000344 ------------------------------------------------------------------------ ------ Object identifier 3: 1.3.6.1.4.1.11.2.29.2.0.1 (SNMPv2-SMI::enterprises.11.2.29.2.0.1) Value: STRING: "oc_platform, hxhpsr28" [...] My questions are: - Is it normal to get Enterprise field value set as 1.3.6.1.4.1.8072.3.2.10 instead of enterprises.11.2.29.2 (as I would like it to be) ? - Is there another API (other than send_enterprise_trap_vars) which would set the Enterprise field value as I would like it to be (see above) and not as a Net_SNMP enterprise OID ? - And with this potential other API, would it be possible to get rid of the two parameters below in the traps I receive ? Object identifier 1: 1.3.6.1.2.1.1.3.0 Value: Timeticks: (29980) 0:04:59.80 Object identifier 2: 1.3.6.1.6.3.1.1.4.1.0 Value: OID: SNMPv2-SMI::enterprises.11.2.29.2.0.9000344 regards Sebastien Gonin HP France ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |