Hi Brian,

as you've probably seen from the net-snmp README file for the HP-UX support I'm 
the guy who implemented HP-UX support for net-snmp - but this was about seven 
years ago, and I'm no longer engaged in the net-snmp development.

As far as I can recall the implementation uses the HP-UX provided include file 
/usr/include/sys/mib.h and the function get_mib_info() in order to retrieve the 
MIB information defined in that include file.

At least at that time there was nearly no documentation regarding that 
interface, neither for the include file nor for the function. So I had to guess 
how to call the function etc.

One missing piece at that time was the ipRouteDiscards value, and from 
investigating the include file I did assume that something was broken with 
respect to that value.

Since those days when I implemented the HP-UX support in net-snmp the source 
structure has been changed thoroughly. So I can't say whether ifTable was 
implemented using get_mib_info(). And I'm not sure whether ifXTable was already 
supported in net-snmp at that time.

Regards,

Johannes

Hackley, Brian (Customer Solution Center - Unix Network L2 Support) wrote on 
7/3/2013 1:26 PM:
> Hi all,
>
> I still have not heard from anyone, but if you do get a chance to look into 
> this and reply, it would be appreciated.
>
> If I get a chance to figure it out, I’ll post a reply.  Thanks,
>
> Brian E. Hackley
>
> Unix Network Support Engineer
> Hewlett-Packard Company
>
> brian.hack...@hp.com <mailto:brian.hack...@hp.com> / E-Mail
>
> *From:*Hackley, Brian (Customer Solution Center - Unix Network L2 Support)
> *Sent:* Thursday, June 13, 2013 5:24 PM
> *To:* net-snmp-coders@lists.sourceforge.net; j...@interface-ag.com
> *Cc:* Nagel, Bruce A (TCE&Q BCS ERT); Bambou, Daniel (TCE&Q BCS ERT); 
> Hackley, Brian (Customer Solution Center - Unix Network L2 Support)
> *Subject:* Question about Net-SNMP IF-MIB on HP-UX 11.31
>
> Hi all,
>
> I am in HP-UX Support and occasionally we get asked “Why doesn’t the HP-UX 
> Emanate” SNMP Agent do XXXX?   Often, the Network Managers are looking for 
> Host Resources data and we provide them with a link to the Net-SNMP “Internet 
> Express” download site of the Build that HP updates on a fairly regular 
> basis. 
> https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1131
>
> A few months back, one of our customers asked why Emanate didn’t return 
> ifXtable data.  We checked with the Emanate Agent Engineer, and they said, 
> the Agent supplied with the OpenView Network Node Manager provides it, (extra 
> money for customer).  But the base Emanate Agent supplied with the OS does 
> not.  Submitted enhancement request, which is gathering dust.   This week 
> another customer asked a similar question, which was why weren’t we reporting 
> the 10Gig Interface speed correctly when he looks at an HPUX Agent with 
> SolarWinds.
>
> I checked the latest Net-SNMP 5.7.2 from the HP Download site, and it does 
> not return ifXtable data in IF-MIB either. A walk agains ifSpeed on Emanate 
> and on Net-SNMP is the same:
>
> IF-MIB::ifSpeed.1 = Gauge32: 1000000000
>
> IF-MIB::ifSpeed.2 = Gauge32: 1000000000
>
> IF-MIB::ifSpeed.3 = Gauge32: 1000000000
>
> IF-MIB::ifSpeed.4 = Gauge32: 1000000000
>
> IF-MIB::ifSpeed.5 = Gauge32: 4294967295 << This appears by design / see below
>
> IF-MIB::ifSpeed.6 = Gauge32: 4294967295 <<
>
> IF-MIB::ifSpeed.7 = Gauge32: 1000000000
>
> IF-MIB::ifSpeed.8 = Gauge32: 1000000000
>
> IF-MIB::ifSpeed.9 = Gauge32: 1000000000
>
> crete # snmpbulkwalk -v 2c -c public  -Cc -t 10 crete:163 ifHighSpeed
>
> IF-MIB::ifHighSpeed = No Such Object available on this agent at this OID
>
> crete # snmpbulkwalk -v 2c -c public  -Cc -t 10 crete:161 ifHighSpeed
>
> IF-MIB::ifHighSpeed = No Such Object available on this agent at this OID
>
> Given a tip while investing this issue, I looked in the Net-SNMP and found 
> this file:  /opt/iexpress/net-snmp/share/snmp/mibs/ IF-MIB.txt
>
> ifSpeed OBJECT-TYPE
>
>      SYNTAX      Gauge32
>
>      MAX-ACCESS  read-only
>
>      STATUS      current
>
>      DESCRIPTION
>
>              "An estimate of the interface's current bandwidth in bits
>
>              per second.  For interfaces which do not vary in bandwidth
>
>              or for those where no accurate estimation can be made, this
>
>              object should contain the nominal bandwidth.  If the
>
>              bandwidth of the interface is greater than the maximum value
>
>              reportable by this object then this object should report its
>
>              maximum value (4,294,967,295) and ifHighSpeed must be used
>
>              to report the interace's speed.  For a sub-layer which has
>
>              no concept of bandwidth, this object should be zero."
>
>      ::= { ifEntry 5 }
>
> ifHighSpeed OBJECT-TYPE
>
>     SYNTAX      Gauge32
>
>      MAX-ACCESS  read-only
>
>      STATUS      current
>
>      DESCRIPTION
>
>              "An estimate of the interface's current bandwidth in units
>
>              of 1,000,000 bits per second.  If this object reports a
>
>              value of `n' then the speed of the interface is somewhere in
>
>              the range of `n-500,000' to `n+499,999'.  For interfaces
>
>              which do not vary in bandwidth or for those where no
>
>              accurate estimation can be made, this object should contain
>
>              the nominal bandwidth.  For a sub-layer which has no concept
>
>              of bandwidth, this object should be zero."
>
>      ::= { ifXEntry 15 }
>
> I have not opened up the source to go through it.  Being a support guy, it 
> appears a daunting task to research completely on my own, and I figured to 
> ask you guys for help.
>
> Can you please help me understand how  Net-SNMP gets IF-MIB data on HP-UX, 
> and offer any suggestions or clues on how to get the ifXtable data populated 
> in the IF-MIB  on HP-UX Systems???
>
> Thank you VERY much for your help,
>
> Brian E. Hackley
>
> Unix Network Support Engineer
> Hewlett-Packard Company
>
> brian.hack...@hp.com <mailto:brian.hack...@hp.com> / E-Mail
>
> 7am-5pm EDT (GMT-4) Mon-Fri / Working Hours
>
> Mark Bailey / Manager
>
> mbai...@hp.com <mailto:mbai...@hp.com> / Manager E-mail
>

-- 
InterFace AG

Telefon: +49 (0)89 / 610 49 - 0
Fax:     +49 (0)89 / 610 49 - 85
mobil:   +49 (0)171 / 787 76 01

mailto:johannes.schmidt-fisc...@interface-ag.de
http://www.InterFace-AG.de

InterFace AG
Leipziger Str. 16
D-82008 Unterhaching

Vorsitzender des Aufsichtsrats: Prof. Dr. Dr. h.c. Manfred Broy
Vorstand: Roland M. Dürre (Vorsitzender),
           Maximilian Buchberger, Dr. Christof Stierlen, Thomas Vallon

Registergericht München, HRB 126682
Umsatzsteuer-Id-Nr. DE 129386308

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
  • Questi... Hackley, Brian (Customer Solution Center - Unix Network L2 Support)
    • R... Hackley, Brian (Customer Solution Center - Unix Network L2 Support)
      • ... Johannes Schmidt-Fischer

Reply via email to