cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

os:linux:etc:snmp:index.html



Linux
How to use snmpwalk command in Linux
snmpget - How to use snmpget command in Linux
snmptranslate - How to use snmptranslate command in Linux

snmp - How to Configure snmp in Linux

Install

yum install net-snmp
yum install net-snmp-utils

Configuration (/etc/snmp/snmpd.conf)

Default Configuration

# grep -Ev "^#|^$" /etc/snmp/snmpd.conf
com2sec notConfigUser  default       public
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1
access  notConfigGroup ""      any       noauth    exact  systemview none none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
dontLogTCPWrappersConnects yes
#

Configuration of snmp test

# grep -Ev "^#|^$" /etc/snmp/snmpd.conf
com2sec notConfigUser  default       public
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser
view    systemview    included   .1
access  notConfigGroup ""      any       noauth    exact  systemview none none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
dontLogTCPWrappersConnects yes
#


RFC1213 MIB-II (1.3.6.1.4.1.2021)


NET-SNMP MIB(1.3.6.1.4.1.2021)




os/linux/etc/snmp/index.html.txt · Last modified: 2017/05/14 by admin

Page Tools