- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to config SNMP for hp-ux 11.31
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2012 03:01 AM
05-14-2012 03:01 AM
How to config SNMP for hp-ux 11.31
Hi!
Please can you help me to configure SNMP to be used by another application on port 161? The aim is to monitor CPU, Memory and disk parameters.
Hi have the following files in my hp-ux system:
/etc/SnmpAgent.d/snmpd.conf /etc/snmpd.conf /usr/newconfig/etc/SnmpAgent.d/snmpd.conf
FR
- Tags:
- snmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2012 08:42 AM
05-14-2012 08:42 AM
Re: How to config SNMP for hp-ux 11.31
Here's my basic SNMP Recipe:
The general steps to configure SNMP are:
1) Edit the /etc/rc.config.d/Snmp* files as appropriate.
SnmpHpunix -- Controls whether the MIB SNMP Subagent is started on bootup. This should be set to 1.
SnmpMaster -- Controls whether the master SNMP daemon (snmpdm) is started at bootup. This should be set to 1.
SnmpMib2 -- Controls whether or not the SNMP Network Management MIB2 agent is started. This should be set to 1.
SnmpTrpDst -- Control whether the trapdest subagent is started. This should be set to 1.
2) Edit the /etc/SnmpAgent.d/snmpd.conf file as appropriate:
This file allows you to set the get-community-name, set-community-name, trap-dest and other parameters.
The main 3 parameters you should set are:
get-community-name -- The default community name is 'public'. This should be set to something different for security purposes. You can also set IP addresses that are allowed to query the get-community string.
set-community-name -- The default community name is usually 'private' but sometimes it is not set at all for security purposes. If needed, this should be set to a value other than 'private' and different from the get-community-name. You can also set IP addresses that are allowed to query the set-community string.
trap-dest -- Specifies the name or IP address that SNMP traps will be sent to. You can have multiple trap-dest configured by adding multiple trap-dest lines.
The snmpd.conf file is well documented with the various options that can be configured in the file. There is also a man page available for snmpd.conf.
Some monitoring servers have a command called 'snmpwalk' that will allow you to query the SNMP Agent on a server and display whatever is available.
A free tool that is available to query SNMP information is GetIF, available from http://www.wtcs.org/snmp4tpc/getif.htm This can be installed on a Windows PC and will allow you to query many different type of devices that are running SNMP.
- Tags:
- snmpwalk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2012 08:44 AM
05-14-2012 08:44 AM
Re: How to config SNMP for hp-ux 11.31
Note that /etc/snmpd.conf is symlink to /etc/SnmpAgent.d/snmpd.conf
# ll -d /etc/snmp*
lrwxr-xr-x 1 root sys 27 Jul 19 2010 /etc/snmpd.conf -> /etc/SnmpAgent.d/snmpd.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2012 07:57 AM
05-15-2012 07:57 AM
Re: How to config SNMP for hp-ux 11.31
Hi
Thank you very much for your reply, I have got all the files that you mentioned and all of them are set to 1 (to start at boot). The snmpd.conf file is also configured as community string as public, but I beleive... I am not quite sure I need to use the snmpwalk command to test, but I do not have this comand:
/etc/rc.config.d #man snmpwalk No manual entry for snmpwalk.
can you help?
FR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2012 03:12 AM
05-17-2012 03:12 AM
Re: How to config SNMP for hp-ux 11.31
Hi
I had to install the net-snmp bundle to get snmpwalk working.
But now I cannot find OIDs for file systems, I did go to www.mibdepot.com, but no luck
FR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2012 06:43 AM
05-18-2012 06:43 AM
Re: How to config SNMP for hp-ux 11.31
You'll want the HP-UNIX MIB, which is available at www.mibdepot.com:
http://www.mibdepot.com/cgi-bin/getmib3.cgi?win=mib_a&n=HP-UNIX&t=sum&v=v1&r=hp&f=hp-unix.mib
The filesystem information is at 1.3.6.1.2.1.1.1.2, or "iso.org.dod.internet.mgmt.mib-2.system.general.fileSystem".
HP also provides a large package of MIB files for HP and other manufacturers here:
http://h18013.www1.hp.com/products/servers/management/hpsim/mibkit.html
Once you have the MIB files and have configured the correct MIB file search path to the net-snmp tools, you could view the filesystem information like this:
snmptable -v 2c -c public localhost HP-UNIX:fileSystemTable
(You could also use snmpwalk, but since the filesystem information is structured as a table, the "snmptable" tool produces nicer output. Just stretch your terminal window wide enough: about 180 characters wide should be OK.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2012 01:25 AM
05-24-2012 01:25 AM
Re: How to config SNMP for hp-ux 11.31
Hi!
I have managed to get a MIB file for HP-UX where there are several OIDs for different parameters to measure, like CPU, Memory, but the ones for file system are not working. I am using PRTG, and I dont know if I have to set in snmpd.conf file a way in which PRTG will read these OIDs for file systems.
Can you help?
FR