Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-15-2015, 05:57 PM   #1
LQ Newbie
Registered: Jun 2015
Posts: 1

Rep: Reputation: Disabled
Smile How to change the default value for the SNMP community string

cd /etc
cd snmp
cat snmpd.conf
rocommunity public

Do I have to be in the editor to change the default value of public to a customized value? If so what is the next command? I am using the Vi editor in suse Linux v 11

All assistance is appreciated.
Old 06-15-2015, 09:55 PM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,470

Rep: Reputation: Disabled
Yes, you need to edit the file /etc/snmp/snmpd.conf to change the community name.

If you're familiar with vi, the command you're looking for is simply vi /etc/snmp/snmpd.conf (or just vi snmpd.conf if you're already in the /etc/snmp directory).

Once you've made the necessary changes, you need to tell the snmpd daemon to re-read the configuration file. Restarting it will do the trick, and in SuSE I believe that can be done with something like /etc/init.d/snmpd restart or possibly /etc/init.d/snmpd stop followed by /etc/init.d/snmpd start.

You may have to prefix some or all of the above commands with sudo to obtain the necessary privileges.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how make community string in snmp ghaedi591 Linux - Newbie 1 06-07-2012 10:57 AM
how can i get sysobj id & snmp community string in centos 5.4 saravanakumar Linux - Server 2 07-27-2011 05:35 PM
need snmp syntax to change a community string RedhatES4_user Linux - Software 1 02-12-2007 07:47 AM
SNMP community string change - SERVER CRASH nishil Linux - Networking 2 11-21-2004 10:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration