Hello,

if not a full answer, anyone having a clue on my questions below ?

regards
Sebastien

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gonin,
Sebastien
Sent: Thursday, November 17, 2005 5:19 PM
To: [email protected]
Subject: send_enterprise_trap_vars and sender Enterprise OID

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=ick
_______________________________________________
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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&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

Reply via email to