1753706 Members
4730 Online
108799 Solutions
New Discussion юеВ

How to start snmpd

 
SOLVED
Go to solution
Jayraj
Frequent Advisor

How to start snmpd

Hi all,

In my server I have noticed that snpd deamon is not running can any on help me how to start this deamon.....
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: How to start snmpd

Shalom,

Startup scrits are in /sbin/init.d

Name is probably snmp or snmpd

There is also a configuration file in /etc/rc.config.d that lets you set a variable to 1 for auto start at boot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesan R
Honored Contributor

Re: How to start snmpd

Hi Swaraj,

The SNMP Master Agent and all subAgents should startup automatically each time the system re-boots or any time the system transitions from run level 1 to run level 2. When the system enters run level 2 the operating system will execute /sbin/init.d/SnmpMaster which will startup the Master Agent. Similarly, the operating system invoked /sbin/init.d/SnmpMib2, /sbin/init.d/SnmpHpunix and /sbin/init.d/SnmpTrpDst will startup the MIB2, HP Unix and Trap Dest subAgents respectively immediately after the Master Agent is started.

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.
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: How to start snmpd

Hi Swaraj,

These are the files which controls the auto startup of SNMP Master daemon and sub agents.

h1cp298a:/etc/rc.config.d# ll Sn*
-r--r--r-- 1 bin bin 2206 Oct 27 1997 SnmpHpunix
-r--r--r-- 1 bin bin 1720 Oct 27 1997 SnmpMaster
-r--r--r-- 1 bin bin 2272 Oct 27 1997 SnmpMib2
-r--r--r-- 1 bin bin 1485 Oct 27 1997 SnmpTrpDst

You can modify the variable accordingly.
Best wishes,

Ganesh.
Jeeshan
Honored Contributor

Re: How to start snmpd

#/sbin/init.d/SnmpMaster start
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: How to start snmpd

>Ganesan: There are two ways to start the SNMP Agent manually
>The second and simplest way

It is more helpful to say "The first and simplest way". You give the simplest first.
Johnson Punniyalingam
Honored Contributor

Re: How to start snmpd

Hi Swaraj,

You can also Check, Config file as below

1) Modified /etc/rc.config.d/SnmpMaster for startup of daemon upon system boot.

# tail /etc/rc.config.d/SnmpMaster
# libSaMib2.sl(1M) // MIB2 subAgent
# libSaHpunix.sl(1M) // HpUnix subAgent
# snmpd(1M) // Manual startup script
# snmpd.conf(4) // SNMP configuration
#
#
SNMP_MASTER_START=1 # Start the master SNMP agent.
export SNMP_MASTER_START
#

2) Manually started via `/sbin/init.d/SnmpMaster start`.

# ps -ef |grep snmpdm
root 13397 13262 1 22:32:54 ttyp0 0:00 grep snmpdm
root 13373 1 0 22:30:12 ? 0:00 /usr/sbin/snmpdm

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