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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. gnome-screenshot: command not found
  2. gxl2gv Command Examples
  3. csvsort: Sorts CSV files
  4. depmod: command not found
  5. gist: Upload code to https://gist.github.com
  6. quotaon command examples in Linux
  7. cp: command not found
  8. d8: Developer shell for the V8 JavaScript engine
  9. mailq Command Examples in Linux
  10. dolt branch: Manage Dolt branches

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright