Chinaunix
标题:
snmp问题,请大家帮忙
[打印本页]
作者:
初学vb
时间:
2006-02-10 18:43
标题:
snmp问题,请大家帮忙
我用snmpwalk进行测试shell执行,不过碰到问题,提示操作被禁止
如下:
# snmpwalk -v 1 localhost -c 1111111 .1.3.6.1.4.1.2021.50
UCD-SNMP-MIB::ucdavis.50.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.50.2.1 = STRING: "shelltest"
UCD-SNMP-MIB::ucdavis.50.3.1 = STRING: "/bin/sh /tmp/shtest"
UCD-SNMP-MIB::ucdavis.50.100.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "/bin/sh: Permission denied"
UCD-SNMP-MIB::ucdavis.50.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.103.1 = ""
# ll /tmp/shtest
-rwxr-xr-x 1 root root 49 2月 10 18:35 shtest
cat /tmp/shtest
#!/bin/sh
echo hello world
echo hi there
我在机器上手动执行是没有任何问题的,请教啊!!有没有snmp的高手??
# /bin/sh /tmp/shtest
hello world
hi there
作者:
初学vb
时间:
2006-02-10 19:18
更改了snmp.conf也无济于事,求助!
作者:
初学vb
时间:
2006-02-10 19:43
明白了!已经 OK ,哈哈!
作者:
q1208c
时间:
2006-02-10 20:52
原帖由
初学vb
于 2006-2-10 19:43 发表
明白了!已经 OK ,哈哈!
写出来, 让别人也明白一下.
作者:
shtang
时间:
2006-02-13 12:45
原來snmp可以執行命令
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2