IT分销/经销snmp配置

如何配置snmp

如何配置snmp服务,使得可以取得cpu,memory的信息。最近被这事烦恼,希望各位指教下。
[root@test]# snmpwalk -v 2c 192.168.131.77 -c public .1.3.6.1.4.1.2021.10.1.3.3
UCD-SNMP-MIB::laLoad.3 = Wrong Type (should be OCTET STRING): NULL
Error: OID not increasing: UCD-SNMP-MIB::laLoad.3
>= UCD-SNMP-MIB::laLoad.3
参与16

15同行回答

rocdoverocdove软件开发工程师hdx
回复 15# rocdove     问题已解决,详见:http://www.aixchina.net/club/thread-114685-1-1.html显示全部
回复 15# rocdove


    问题已解决,详见:
http://www.aixchina.net/club/thread-114685-1-1.html收起
软件开发 · 2014-10-11
浏览3152
rocdoverocdove软件开发工程师hdx
回复 13# smile_devil     亲,我在安装的时候缺少libcrypto.so  ,在网上也没搜到,你能不能给我发一份你的啊,aix6.1系统的。邮箱:[email]1277009848@qq.com[/email]bash-3.2# rpm -ivh net-snmp-devel-5.7.2-1.aix5.1.ppc.rpmerror: failed dependencies...显示全部
回复 13# smile_devil


    亲,我在安装的时候缺少libcrypto.so  ,在网上也没搜到,你能不能给我发一份你的啊,aix6.1系统的。邮箱:[email]1277009848@qq.com[/email]

bash-3.2# rpm -ivh net-snmp-devel-5.7.2-1.aix5.1.ppc.rpm
error: failed dependencies:
        net-snmp = 5.7.2-1 is needed by net-snmp-devel-5.7.2-1
bash-3.2# rpm -ivh net-snmp-utils-5.7.2-1.aix5.1.ppc.rpm
error: failed dependencies:
        net-snmp = 5.7.2-1 is needed by net-snmp-utils-5.7.2-1
        /opt/freeware/bin/perl is needed by net-snmp-utils-5.7.2-1
        libcrypto.so is needed by net-snmp-utils-5.7.2-1
        libnetsnmp.a(libnetsnmp.so.30) is needed by net-snmp-utils-5.7.2-1
bash-3.2# rpm -ivh net-snmp-perl-5.7.2-1.aix5.1.ppc.rpm
error: failed dependencies:
        net-snmp = 5.7.2-1 is needed by net-snmp-perl-5.7.2-1
        /opt/freeware/bin/perl is needed by net-snmp-perl-5.7.2-1
        libcrypto.so is needed by net-snmp-perl-5.7.2-1
        libnetsnmp.a(libnetsnmp.so.30) is needed by net-snmp-perl-5.7.2-1
        libnetsnmpagent.a(libnetsnmpagent.so.30) is needed by net-snmp-perl-5.7.2-1
        libnetsnmptrapd.a(libnetsnmptrapd.so.30) is needed by net-snmp-perl-5.7.2-1
bash-3.2# rpm -ivh net-snmp-5.7.2-1.aix5.1.ppc.rpm
error: failed dependencies:
        libcrypto.so is needed by net-snmp-5.7.2-1收起
软件开发 · 2014-09-29
浏览3586
rocdoverocdove软件开发工程师hdx
回复 13# smile_devil     那就更好了,呵呵!谢谢哈显示全部
回复 13# smile_devil


    那就更好了,呵呵!谢谢哈收起
软件开发 · 2014-09-26
浏览2944
smile_devilsmile_devil研发工程师cc
回复 12# rocdove     我也是6.1,这个本来就可以装在6.1下的显示全部
回复 12# rocdove


    我也是6.1,这个本来就可以装在6.1下的收起
软件开发 · 2014-09-26
浏览2975
rocdoverocdove软件开发工程师hdx
回复 11# smile_devil     谢谢啊,不过我的是aix6.1,回头我试试。不行了再想办法。显示全部
回复 11# smile_devil


    谢谢啊,不过我的是aix6.1,回头我试试。不行了再想办法。收起
软件开发 · 2014-09-25
浏览2965
smile_devilsmile_devil研发工程师cc
回复 10# rocdove     net-snmp 5.7.2 给你个链接 http://www.perzl.org/aix/index.php?n=Main.Net-snmpaix自带的snmp没有memory、cpu等的信息。最后没办法把自己安装的net-snmp改到另一个端口,两个snmp服务都起来。。。...显示全部
回复 10# rocdove


    net-snmp 5.7.2 给你个链接 http://www.perzl.org/aix/index.php?n=Main.Net-snmp
aix自带的snmp没有memory、cpu等的信息。最后没办法把自己安装的net-snmp改到另一个端口,两个snmp服务都起来。。。收起
软件开发 · 2014-09-25
浏览3656
rocdoverocdove软件开发工程师hdx
回复 9# smile_devil 能不能给我说下,你是如何安装的啊?还有你用的是哪个版本的,我这安装上就是不能用,我都怀疑我安装失败了!!显示全部
回复 9# smile_devil


能不能给我说下,你是如何安装的啊?还有你用的是哪个版本的,我这安装上就是不能用,我都怀疑我安装失败了!!收起
软件开发 · 2014-09-24
浏览3616
smile_devilsmile_devil研发工程师cc
回复 7# rocdove     内存和cpu的无法获取,安装了net-snmp rpm包。内存和cpu可以获取了,网络又出不来了。。。显示全部
回复 7# rocdove


    内存和cpu的无法获取,安装了net-snmp rpm包。内存和cpu可以获取了,网络又出不来了。。。收起
软件开发 · 2014-09-22
浏览3721
nopalhnopalh系统工程师北京融科
提供份网上的资源,虽然是对HACMP的问题解答,请参考其中的主机系统部分HACMP 5.4: How to change SNMP community name from default "public" and keep clstat workingFirst, find out what version of SNMP you are using:# ls -l /usr/sbin/snmpd lrwxrwxrwx 1 root syst...显示全部
提供份网上的资源,虽然是对HACMP的问题解答,请参考其中的主机系统部分

HACMP 5.4: How to change SNMP community name from default "public" and keep clstat working

First, find out what version of SNMP you are using:

# ls -l /usr/sbin/snmpd
lrwxrwxrwx 1 root system 9 Sep 08 2008 /usr/sbin/snmpd -> snmpdv3ne
(In this case, it is using version 3).

Make a copy of your configuration file. It is located on /etc.
/etc/snmpd.conf <- Version 1
/etc/snmpdv3.conf <- Version 3
Edit the file and replace wherever public is mentioned for your new community name. Make sure to use not more that 8 characters for the new community name.

Change subsystems and restart them:
# chssys -s snmpmibd -a "-c new"
# chssys -s hostmibd -a "-c new"
# chssys -s aixmibd -a "-c new"
# stopsrc -s snmpd
# stopsrc -s aixmibd
# stopsrc -s snmpmibd
# stopsrc -s hostmibd
# startsrc -s snmpd
# startsrc -s hostmibd
# startsrc -s snmpmibd
# startsrc -s aixmibd
Test using your locahost:
# snmpinfo -m dump -v -h localhost -c new -o /usr/es/sbin/cluster/hacmp.defs nodeTable
If the command hangs, something is wrong. Check the changes you made.

If everything works fine, perform the same change in the other node and test again. Now you can test from one server to the other using the snmpinfo command above.

If you need to backout, replace with the original configuration file and restart subsystems. Note in this case we use double-quotes. There is no space.
# chssys -s snmpmibd -a ""
# chssys -s hostmibd -a ""
# chssys -s aixmibd -a ""
# stopsrc -s snmpd
# stopsrc -s aixmibd
# stopsrc -s snmpmibd
# stopsrc -s hostmibd
# startsrc -s snmpd
# startsrc -s hostmibd
# startsrc -s snmpmibd
# startsrc -s aixmibd

Okay, now make the change to clinfoES and restart and both nodes:
# chssys -s clinfoES -a "-c new"
# stopsrc -s clinfoES
# startsrc -s clinfoES
Wait a few minutes and you should be able to use clstat again with the new community name.

Disclaimer: If you have any other application other than clinfoES that uses snmpd with the default community name, you should make changes to it as well. Check with your application team or software vendor.

来源: <http://www.aixhealthcheck.com/blog?id=42>收起
系统集成 · 2014-09-19
浏览3929
rocdoverocdove软件开发工程师hdx
回复 6# smile_devil     请问你的snmp,能工作吗?我安装后压根不工作!!?显示全部
回复 6# smile_devil


    请问你的snmp,能工作吗?我安装后压根不工作!!?收起
软件开发 · 2014-09-19
浏览3670

提问者

rhshi
系统管理员easipass

相关问题

相关文章

问题状态

  • 发布时间:2010-11-29
  • 关注会员:1 人
  • 问题浏览:17160
  • 最近回答:2014-10-11
  • X社区推广