• 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 determine which SNMP version is being used

By admin

Question :1. What command shows what SNMP Protocol version(s) [1, 2c, 3] I am running on my system?
2. How do change the SNMP version in use?

Answer :
There is no command to show the current running SNMP version. The snmpd daemon will not show as running in any one particular version, as it has the ability to do any of the three at any time. The configuration in the snmpd.conf file (/etc/sma/snmp/snmpd.conf) will indicate which versions allowed.

– By default the rocommunity and rwcommuntiy lines set in the snmpd.conf will allow SNMP V1 and V2 access.
– A snmpd.conf with no rocommunity and rwcommuntiy lines would only support a SNMPV3 query.
V1 and V2 requests would be ignored.
– For SNMPV3 queries to work the required options, the user,
passphrase, authentication/encryption method all have to be configured. there is no “public” like query capability with SNMPV3.

Example of an snmpd.conf file configured for v1 and v2c :

...
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]
rocommunity  public
...
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]
#
# The following entry provides minimum access for successful
# SEA subagent registration.
#
rwcommunity  private localhost .1.3.6.1.4.1.42.2.15
...

Example of an snmpd.conf file configured for ONLY v3 access :

...
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  geekuser

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  geekuser
...

where “geekuser” is the only user allowed in this example.

CentOS / RHEL 6 : Install and Configure SNMPv3

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Install Gnome Desktop Environment onto Oracle Linux 6.x
  2. How to enable additional scsi logging in CentOS/RHEL
  3. Beginners Guide to Samba (Installation and Configuration)
  4. How to install/get packages from Oracle EPEL Repository on OEL 7
  5. How to install packages using dnf in CentOS/RHEL 8
  6. CentOS / RHEL : How to resize (extend) existing Physical Volume (PV)
  7. How To Force User/Group Ownership Of Files On A Samba Share
  8. How to enable/disable SELinux Modes in RHEL/CentOS
  9. Audit Rule Configuration not Reflected – How to troubleshoot
  10. Oracle Software Group Accounts OSDBA, OSOPER, Oracle Inventory group

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary