send_enterprise_trap_vars and sender Enterprise OID

"Gonin, Sebastien" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <3F3894AC7A13B04E83CEBC95CFD3047E030A0DD6@idaexc03.emea.cpqcorp.net>
Hello,

I use 
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 = 6
P_TrapId = 9000344
G_openCallOID = oid openCall_oid[] = { 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_idv28&alloc_id845&op=click
_______________________________________________
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.