Hi,
I've try to install and enable SNMP for testing purpose by following guide from this
website
I've follow every step shown but when I run a command
Code:
snmpwalk -Os -c mycommunityro -v 1 localhost system
the return result is
vim /etc/default/snmpd
Code:
# This file controls the activity of snmpd and snmptrapd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=
# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=no
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
vim /etc/snmp/snmpd.conf
Code:
rocommunity mycommunityro default system
rwcommunity mycommunitywr default system
syslocation Testing
syscontact Testing