• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL : How to change SNMP community string

by admin

Question: How to change an SNMP community string in CentOS / RHEL?

Answer:

Here is a short note on how to change an SNMP community string and test if its working allright.
1. The below line in /etc/snmp/snmpd.conf needs to be modified to change the community string. Replace the string public or the last word of the line with your new community string. Please note, the community string named “public” is just an example here. It can be any name in your environment.

com2sec notConfigUser  default       public

2. Restart snmpd.

# service snmpd restart

Test using snmpwalk

You can verify the change of community string with the command snmpwalk.

# snmpwalk -v1 -c [community string] localhost system

Filed Under: Linux

Some more articles you might also be interested in …

  1. What is ioremap()
  2. yum-config-manager: command not found
  3. Managing MySQL Using Systemd As A Non Root User
  4. Input/Output Errors During XFS Filesystem Access In CentOS/RHEL 7
  5. named Command Examples in Linux
  6. How to change the default IP address of docker bridge
  7. export: command not found
  8. CentOS / RHEL 6 : How to disable telnet service
  9. CentOS / RHEL : How to Enable SSL For Apache
  10. chkconfig: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright