here is the basic snmpd.conf , so I can just use it again without worry misplaced somewhere.
================================================
com2sec readonly default mypublic ##or public
view readonly included .1.3.6.1.2.1.1
view readonly included .1.3.6.1.2.1.25.1.1
view readonly included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
view readonly included system.sysContact
view readonly included system.sysName
view readonly included system.sysLocation
view readonly included interfaces.ifTable.ifEntry.ifAdminStatus
================================================
and the snmpwalk command to check whether the configuration is correct or not.
snmpwalk -v2c -c mypublic localhost .1.3.6.1.2.1.31.1
1 comment:
My brother suggested I might like this website. He was entirely right. This post truly made my day. You can not imagine just how much time I had spent for this information! Thanks!
Post a Comment