- 论坛徽章:
- 0
|
你把你修改的部分发来看看。。一般来说。snmp.conf redhat下只要修改3个地方就可以用snmpwalk查询了,FB可能也差不多。
---------------------------------------
1、查找以下字段:
代码:
# sec.name source community
com2sec notConfigUser default public
将"comunity"字段改为你要设置的用户名.比如"public".
将“default”改为你想哪台机器可以看到你的snmp信息,如127.0.0.1(查看本机的snmp信息)
例如:com2sec notConfigUser 127.0.0.1 public
2、查找以下字段:代码:
####
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write notif
#access notConfigGroup "" any noauth exact systemview none none
将"read"字段systemview改为all.
如:
access notConfigGroup "" any noauth exact all none none
3、查找以下字段:代码:
## incl/excl subtree mask
#view all included .1 80
将该行前面的"#"去掉.
如:
view all included .1 80
------------------------
这样修改后。在本地机器用再用如下命令查询
snmpwalk -v 2c -c public 127.0.0.1 if
如果能取出数值。说明snmp工作正常。
[ 本帖最后由 Brian Cai 于 2007-2-2 15:39 编辑 ] |
|