- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Starting/Stopping snmp agents on HP-UX 11.0
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
тАО03-21-2002 06:54 AM
тАО03-21-2002 06:54 AM
Doing an ll on /sbin/init.d/*nmp* lists the following:
-r-xr-xr-x 1 bin bin 6274 Oct 27 1997 SnmpHpunix
-r-xr-xr-x 1 bin bin 4317 Oct 27 1997 SnmpMaster
-r-xr-xr-x 1 bin bin 6380 Oct 27 1997 SnmpMib2
-r-xr-xr-x 1 bin bin 6285 Oct 27 1997 SnmpTrpDst
/sbin/rc2.d shows the following:
S560SnmpMaster S565SnmpHpunix S565SnmpMib2 S565SnmpTrpDst
I'm making a change to the /etc/snmpd.conf file and need to restart the background programs.
jack...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 07:13 AM
тАО03-21-2002 07:13 AM
Re: Starting/Stopping snmp agents on HP-UX 11.0
I would suggest you to read the man pages of 'snmpd'
# man snmpd
This will give you the information about how to restart the snmp daemons manually. You have to stop and restart all the snmp scripts with the proper order. If you want just the daemon to restart, then use 'snmpd -c'.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 07:17 AM
тАО03-21-2002 07:17 AM
Solution# /sbin/init.d/SnmpMaster stop
# /sbin/init.d/SnmpMaster start
will do ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 07:47 AM
тАО03-21-2002 07:47 AM
Re: Starting/Stopping snmp agents on HP-UX 11.0
To be safe, I'm executing each of the *Snmp* scripts in rc1.d and rc2.d.
Thanks for the info.
I also noticed that the /var/adm/snmpd.log is not getting any info logged. Oh well... ;(
jack...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 04:02 PM
тАО03-21-2002 04:02 PM
Re: Starting/Stopping snmp agents on HP-UX 11.0
just type in: snmpd -stop
or: snmpd -start
when done, type: ps -ef | grep snmpd
Notice that it only shows snmpdm running!
If you kill "snmpdm" with the kill command and then want to restart it, DO NOT type in
"snmpdm". This will only start the master daemon and not the subagents necessary.
You can manually start all of the subagents via the /sbin/init.d/snmpd scripts but you take a chnance of possibly missing one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2002 04:31 PM
тАО03-21-2002 04:31 PM
Re: Starting/Stopping snmp agents on HP-UX 11.0
If you want to stop the snmp process
1. findout the PID of process "snmpdm"
2. Kill -9 PID.
That will stop the snmp daemon.
If you want to srat it then do following.
3./usr/sbin/snmpdm
You are all set now.
WHile installing SNMP security patch you have to kill the snmp daemons otherwixe your patch installation will hangs in between.
-pap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2002 06:46 AM
тАО03-22-2002 06:46 AM
Re: Starting/Stopping snmp agents on HP-UX 11.0
I ended up using all rc1.d and rc2.d *Snmpd* scripts to be safe.
Thanks... Jack..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2002 07:06 AM
тАО03-22-2002 07:06 AM
Re: Starting/Stopping snmp agents on HP-UX 11.0
Quote ..
There are two ways to start the SNMP Agent manually. The first way is to execute snmpdm and then start each subAgent. Separate process subAgents are started by invoking the particular subAgent executables.
The second and simplest way to start the SNMP Agent manually is to execute the snmpd startup script which will invoke the Master Agent and all subAgents who have been installed and designed to operate in this paradigm. The snmpd script is layered upon the V.4 startup
paradigm and so makes use of the component startup scripts in /sbin/init.d and configuration scripts in /etc/rc.config.d. When snmpd is invoked it starts /usr/sbin/snmpdm, passes all its command
line arguments to it and then executes each script (S*) found in /sbin/SnmpAgtStart.d.
Unquote..
So my conclusion is, to be sure each of the subagents can be startup individually like what you've did. However starting snmpd alone from /sbin/init.d/SnmpMaster should also work because the snmpd script (/usr/sbin/snmpd) will take care of starting the subagents. It if doesn't do that, it has to do with what options you put in /etc/rc.config.d/SnmpMaster that influences the startup behaviour.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2002 07:13 AM
тАО03-22-2002 07:13 AM
Re: Starting/Stopping snmp agents on HP-UX 11.0
Thanks for clearing things up...
Thanks... I love this place :) :)
jack...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2002 07:20 AM
тАО03-22-2002 07:20 AM
Re: Starting/Stopping snmp agents on HP-UX 11.0
Do a 'man snmpd'. This will tell you the order and syntax of the daemons, that should stop and start. Also you can read about restarting only the 'snmpd' daemon and the reasons.
# man snmpd
HTH,
Shiju