1827318 Members
6054 Online
109961 Solutions
New Discussion

SNMP Agents for HP-UX

 
Ralph Grothe
Honored Contributor

SNMP Agents for HP-UX

Hello,

I need an SNMP agent that can handle traps and which is "easily" extensible.
Above all it shouldn't cost any extra license fees.

Of course I could revert to the former UCD SNMP suite, now downloadable from

http://net-snmp.sourceforge.net/

But I thought that HP-UX ships its own which also knows private HP-UX spicific MIBs.

When looking at the snmpd.conf (or the respective manpage) from HP-UX's running snmpd I can only find entry options for trap destination hosts.
That's ok for the trap emitter, but I also need an agent (some sort of snmptrapd) at the receiver or the manager (which also happens to be a HP-UX box) that can catch the traps, and according to its configuration raise events.

Is the HP-UX vanilla snmpd capable to handle this?
If not, is there a free SNMP Kit from HP?
Where would I find SNMP client commands such as
snmpget, snmpwalk, snmptrap etc.?

In case I have to rely on the Net-SNMP suite
where would I find HP-UX specific MIBs that could feed Net-SNMP with?

Do these HP-UX MIBs have OIDs for ServiceGuard specific stuff?

Rgds.
Ralph
Madness, thy name is system administration
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: SNMP Agents for HP-UX

Ralph Grothe
Honored Contributor

Re: SNMP Agents for HP-UX

Hi Robert,

I downloaded parts (especially Net-SNMP) from the set, and tried to install it on an HP-UX 11.00 box.

This won't work because a


# swlist -l fileset -a os_release -s /usr/local/tmp/Net-SNMP.depot
# Initializing...
# Contacting target "jupiter"...
#
# Target: jupiter:/usr/local/tmp/Net-SNMP.depot
#

# Net-SNMP B.11.2*
Net-SNMP.NET-SNMP-CONF B.11.2*
Net-SNMP.NET-SNMP-DOC B.11.2*
Net-SNMP.NET-SNMP-INC B.11.2*
Net-SNMP.NET-SNMP-LIB B.11.2*
Net-SNMP.NET-SNMP-MAN B.11.2*
Net-SNMP.NET-SNMP-RUN B.11.2*
Net-SNMP.NET-SNMP-SHA B.11.2*


requires as target host some OS Rel. 11.2*

Well if I have to stick to Net-SNMP I could also get the sources from sourceforge.

I only hoped for a better MIB-wise integration if the SNMP agents came from HP-UX.
Madness, thy name is system administration
Robert-Jan Goossens
Honored Contributor

Re: SNMP Agents for HP-UX

Hi Ralph,

Just check the hp sofware site, there is no internet express for 11.0. But I believe there was a version for 11.0 ( not completly sure ) call HP and ask them if they still have.

Regards,

Robert-Jan
Ralph Grothe
Honored Contributor

Re: SNMP Agents for HP-UX

I had a look at the depots from a CD I found for OV's NNM suite aka OVNNMgr, and was a bit shocked to see the vast resource greed of this tool.
Because I'm not at all interested in the GUI of but only in a few SNMP client commands for scripting (e.g. snmpwalk, snmpget) I'm definitely not going to waste well over 100 MBs for it (I haven't got the space)

# swlist -l fileset -a size -s /cdrom/OVNNMDEPOT_HPUX11.00 OVNNMgr
# Initializing...
# Contacting target "delilah"...
WARNING: Ignoring unknown keyword "is_locatable" at line 1039.
WARNING: Ignoring unknown keyword "is_locatable" at line 1085.
#
# Target: delilah:/cdrom/OVNNMDEPOT_HPUX11.00
#

# OVNNMgr 133089246
OVNNMgr.OVMIB-CONTRIB 4475303
OVNNMgr.OVNNM-RUN 110297044
OVNNMgr.OVNNMGR-JPN 13415875
OVNNMgr.OVRPT-RUN 2673492
OVNNMgr.OVWWW-JPN 2227532


Thus, I realized I will have to stick with 3rd party open source suite Net-SNMP.

So I got the sources, ran configure and started the make.

This didn't build, and the preprocesser fell over a macro redfinition in container_iterator.c



cpp: "../include/net-snmp/net-snmp-config.h", line 1407: warning 2001: Redefinition of macro NETSNMP_INLINE.
cpp: "../include/net-snmp/net-snmp-config.h", line 1409: warning 2001: Redefinition of macro NETSNMP_STATIC_INLINE.
cc: "container_iterator.c", line 89: error 1588: "__FUNCTION__" undefined.
cc: "container_iterator.c", line 89: warning 563: Argument #3 is not the correct type.




Though I haven't found a hint in the README.hpux I finally ended up in the CVS tree of the Net-SNMP project where I even found various patch additions that fix build problems especially on HP-UX 11.00 and 11i caused by invalid macro redefinitions.

But I got lost in CVS when trying to actually download that very patch.

Has anyone tried to build Net-SNMP on HP-UX 11i and 11.00 who can tell me how to patch?
(n.b. I can only read C code but am not terribly good in writing C myself)
Madness, thy name is system administration
T G Manikandan
Honored Contributor

Re: SNMP Agents for HP-UX