- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Installing Net-SNMP on HP-UX
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
Discussions
Forums
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
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
тАО11-18-2008 10:32 AM
тАО11-18-2008 10:32 AM
Installing Net-SNMP on HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2008 11:58 AM
тАО11-24-2008 11:58 AM
Re: Installing Net-SNMP on HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2008 12:20 PM
тАО11-24-2008 12:20 PM
Re: Installing Net-SNMP on HP-UX
(You should really create your own thread so you can assign points and provide a link to this one.)
Using advanced search you can find these threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1231422
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1273635
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1280764
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 07:43 PM
тАО11-28-2008 07:43 PM
Re: Installing Net-SNMP on HP-UX
Hopefully you have installed Net-SNMP via a bundle from IEXpress. If not, do so now.
Basically, you will be tweaking the /sbin/init.d/SnmpMaster script to have it point to the new code for Net-SNMP that installed in /opt/iexpress/net-snmp/sbin/snmpd . However, there are some preliminaries. I first recommend that you do a ps -ea | grep -i nmp and see if snmpd is still running. If so, kill it via kill -9 [pid] .
Now, you can go ahead and create a valid config for your net-snmp install and test. First, recreate a valid snmpd.conf file and put it in /opt/iexpress/net-snmp/etc/snmp directory (you may need to create a directory, I had to). Just one line is all that is necessary in that snmpd.conf to get things started: rocommunity public That is enough in the file to be a valid config. Granted, you may not want to run using the get-community-name of public, bad security there, but this is just to get things rolling. There is a configuration script at /opt/iexpress/net-snmp/bin/snmpconf that will do a guided creation of a this same file if you prefer.
Ok, so now we have a valid snmpd.conf file and have put it where it goes. Now, if you want to make 100% sure you are starting net-snmp with the config file you created call it all explicitly like this:
/opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf Now that you have started it, lets test it with a call to snmpwalk and see if we get some valid output, like this:
snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.25.3.2 That should fill your terminal screen with plenty of valid output, otherwise it will act stupid and not do anything and you will know that you do not have snmpd started yet.
Ok, with config and test done, now is the time to do two things. First, you will want to turn off all the Snmp related scripts on the system. Do this by going to /etc/rc.conf.d and doing a ll *nmp* to locate all the old Snmp related script config files. Edit each one changing 1 to 0 disable the start up. I am assuming you are following the Unix stuff here. Also, in the SnmpMaster file you will want to leave it set at 1, because that is the script we will modify to do our startup for net-snmp version of snmpd. Next, for the second big thing, edit the /sbin/init.d/SnmpMaster script to call the net-snmp code. I won't explain it step by step, but I will just copy the critical text I changed when I did it. You can compare to your original file and see what I did. Here are the critical changes, look for the differences very carefully (particularly that you will be changing snmpdm to snmpd):
PATH=/sbin:/usr/sbin:/usr/bin:/opt/iexpress/net-snmp/sbin:/opt/iexpress/net-snmp/etc/snmp
export PATH
StartMasterAgent()
{
setPort
eval /opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf ${SNMP_MASTER_OPTIONS:-}
set_return
StopMasterAgent()
{
#
# Determine PID of process(es) to stop
#
pid=`ps -e | awk '$NF~/snmpd/ {print $1}'`
if [ "X$pid" != "X" ]; then
if kill -9 $pid; then
echo "snmpd stopped"
else
set_return
echo "Unable to stop snmpd"
fi
fi
}
Ok, this is it! You should be able to use /sbin/init.d/SnmpMaster stop and sbin/init.d/SnmpMaster start to stop and start the net-snmp snmpd daemon now. Verify this works by checking your processes and validate. Now, if you can, give that system a reboot and again validate that the snmpd daemon is running. Check the processes and test with snmpwalk again. You should be good to go!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2011 05:38 AM
тАО01-05-2011 05:38 AM
Re: Installing Net-SNMP on HP-UX
i follow your post, but when i run the /opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf
then
snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.25.3.2
i get the below error
Timeout: No Response from 127.0.0.1
please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2011 08:27 AM
тАО11-10-2011 08:27 AM
Re: Installing Net-SNMP on HP-UX
I followed the same and it worked.
I suggest you go through it more carefully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2013 10:04 AM
тАО06-27-2013 10:04 AM
Re: Installing Net-SNMP on HP-UX
I fought this for 2 days... Nothing would work unless I would talk on the localhost address only. Anything else was not talking.
I had to install an older version to get my system to work. This is the file name of the install that I found that worked for me... net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
Good luck.