Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to shut down snmpd service on HP-UX servers

Fenglin
Regular Advisor

How to shut down snmpd service on HP-UX servers

Hi

I have the following info from /var/adm/rc.log on the HP-UX server

root@nsppwas2:/sbin/rc2.d > ls -ltr *Snmp*
lrwxr-xr-x 1 root sys 23 Dec 28 2005 S560SnmpMaster -> /sbin/init.d/SnmpMaster
lrwxr-xr-x 1 root sys 23 Dec 28 2005 S565SnmpHpunix -> /sbin/init.d/SnmpHpunix
lrwxr-xr-x 1 root sys 21 Dec 28 2005 S565SnmpMib2 -> /sbin/init.d/SnmpMib2
lrwxr-xr-x 1 root sys 20 Dec 28 2005 S565SnmpNaa -> /sbin/init.d/SnmpNaa
lrwxr-xr-x 1 root sys 23 Dec 28 2005 S565SnmpTrpDst -> /sbin/init.d/SnmpTrpDst
lrwxr-xr-x 1 root sys 22 Dec 28 2005 S576SnmpFddi4 -> /sbin/init.d/SnmpFddi4
lrwxr-xr-x 1 root sys 21 Aug 20 03:38 S565SnmpIpv6 -> /sbin/init.d/SnmpIpv6

Can someone tell me how to shut down the snmpd service on the server?

Regards
Feng Lin
6 REPLIES
Jeeshan
Honored Contributor

Re: How to shut down snmpd service on HP-UX servers

All are subagents rather than the following exceptions.

The process name is snmpdm. You can stop it by executing
/sbin/init.d/SnmpMaster stop

and to run it execute
snmpd

It will start master agent and rest of the subagents.
a warrior never quits
VK2COT
Honored Contributor

Re: How to shut down snmpd service on HP-UX servers

Hello,

Simple way:

Edit all configuration files in
/etc/rc.config.d directory that start with
"Snmp" string:

SnmpHpunix
SnmpMaster
SnmpMib2
SnmpTrpDst

... and set "=1" to "=0".

For example, in SnmpHpunix, replace:

SNMP_HPUNIX_START=1

with

SNMP_HPUNIX_START=0

Then, either reboot the server, or run
the /sbin/init.d/Snmp* scripts to
stop the SNMP services in the current
session.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: How to shut down snmpd service on HP-UX servers

One small reminder,

The method that I listed is for PERMANENT
shurtdown of SNMP.

Ahsan showed you a simple way for
temporary shutdown of SNMP. In other words,
SNMP would restart after next reboot.

You decide if you want to disable SNMP
permanently or temporarily.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Fenglin
Regular Advisor

Re: How to shut down snmpd service on HP-UX servers

Is it ok to change SnmpIPV6 from 1 to 0?

Thanks.
Jeeshan
Honored Contributor

Re: How to shut down snmpd service on HP-UX servers

yes, you may.
a warrior never quits
Johnson Punniyalingam
Honored Contributor

Re: How to shut down snmpd service on HP-UX servers

Hi,

Yes, You can Go Head,

By changing from 1 to 0, this will no start your "Snmp" when the Server reboots , Its permantent solution.
(Also take note "do not save backup copy in the same folder, It should be in the dufferent folder)

Thanks,
Johnson
Problems are common to all, but attitude makes the difference