以前做过snmp的东西久了都快忘了,突然又要做才发觉啥都想不起来了,悲剧了,先复习下。
#
com2sec
local
com2sec mynetwork
default
####
# Second, map the security names into group names:
#
group MyRWGroup
v1
group MyRWGroup
v2c
group MyRWGroup
usm
group MyROGroup
v1
group MyROGroup
v2c
group MyROGroup
usm
####
# Third, create a view for us to let the groups have rights to:
#
view all
####
# Finally, grant the 2 groups access to the 1 view with
different
# write permissions:
#
access MyROGroup
""
access MyRWGroup
""
#
-----------------------------------------------------------------------------
# status of notWritable.
syslocation Right here, right now.
syscontact Me <>
#
proc mountd
#
proc ntalkd 4
#
proc sendmail 10 1
# a simple hello world
exec echotest /bin/echo hello world
# Check the / partition and make sure it contains at least 10
megs.
disk / 10000
# Check for loads:
load 12 14 14
***********************************************************************
1
2
3
4
将snmpd文件上传到开发板的/usr/sbin目录,snmpd.conf放到/usr/share/snmp/snmpd.conf
OK,现在可以通过snmp命令在管理端查询设置开发板状态了。。我这里开发板的IP是192.168.1.5
本文来自CSDN博客,转载请标明出处:
已投稿到: |
![]() ![]() |
---|