• 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. lvdisplay error: “Failed to create directory /var/lock/lvm. File-based locking initilisation failed.”
  2. How to configure EPEL repository in OEL 7
  3. How to Restrict Active Directory Users and Groups to Login to CentOS/RHEL 7 Client
  4. How to edit Virtual Machine Hardware in RedHat Virtualization
  5. How to Setup SSH keys for SSH “public/private key” Login On Linux
  6. Audit rules to log reboot command executions in CentOS/RHEL
  7. How to set custom device names using udev in CentOS/RHEL 7
  8. lvs Command Examples in Linux
  9. Linux Command line Basics – Executing commands from the command line
  10. Maintaining Linux filesystems using “fsck” and “tune2fs”

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright