Solved

How to run SNMP service?

Posted on 2004-03-31
5
6,504 Views
Last Modified: 2013-12-15
First off I am a Linux beginner.  How do I set up to run SNMP as a service when my computer starts up.  Also how do I manually start the SNMP service?
0
Comment
Question by:aedean
  • 4
5 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 500 total points
ID: 10728971
there are serveral way

1. in the commond prompt (console mode) login as root and run 'setup', this will bring up the a gui, you can select the System Service, inside the system service you can select the snmpd, by doing this the snmp will start everytime your restart.

2. in the /etc/rc.d/rc.d#/ run ln -s ../init.d/snmpd S50snmpd, which also can start the snmp service everytime your linux box restart. (# is the startup mode, 3 is for console mode (command prompt), 5 is for X windows.)

0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 10728995
also in /etc/services ensure the snmp not remark, if yes, remove the remark (#). also you have to login as root for doing those I comment.
0
 
LVL 2

Expert Comment

by:sam_sunder
ID: 10729744
hi aedean

type ntsysv on the shell prompt you get a window with with a long list of services, check the snmp and snmpd box. This would start snmp on boot.

regards,

sam
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 10730225
to manually start the snmp service, your can '/etc/init.d/snmpd start'

To manually restart is '/etc/init.d/snmpd restart'

To manually stop is '/etc/init.d/snmpd stop'

0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 10730240
BTW, ntsysv is same as my 1 comment, just a short cut to get into it. since it's the smae why not suggest something new sam_sunder?
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question