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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. 14 Useful “cat” Command Examples in Linux
  2. Comparing NET-TOOLS V/s IPROUTE Package Commands (ip Vs ifconfig command comparison)
  3. lsof : Most commonly used examples
  4. CentOS / RHEL 6 : How to configure kdump
  5. How to Setup SSH keys for “passwordless” ssh login in Linux
  6. Understanding SELinux Policies in Linux
  7. Determining disk usage in Linux using “du” command
  8. CentOS / RHEL : How to identify/match LUN presented from SAN with underlying OS disk
  9. How to create a networking bridge under CentOS/RHEL
  10. What are Bash Exit Codes in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  • How To Add Timestamps To dmesg Kernel Boot Log in CentOS/RHEL
  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary