首页
Profile
Profile
Profile
Profile
Profile

ubuntu Lucid(12.04) snmp snmpd

2013-02-27 阅读 262
ubuntu Lucid(12.04) snmp snmpd 安装 监控 系统状态
    apt-get install snmp snmpd
    ```
    
    vim /etc/snmp/snmpd.conf
    
    ```
    

修改:

    agentAddress  udp:127.0.0.1:161
    ```
    

到

    agentAddress  udp:IP:161
    ```
    

执行:

    net-snmp-config --create-snmpv3-user -ro -A passwd -a MD5 usernaem
    
    ```
    

输出:

    adding the following line to /var/lib/snmp/snmpd.conf:
       createUser username MD5 "passwd" DES
    adding the following line to /usr/share/snmp/snmpd.conf:
       rouser username
    ```
    
    /etc/init.d/snmpd restart
    ```
    

 

然后:

http://www.huilinwang.com/blog/post/386.html

测试:

    snmpwalk -v 3 -u username -a MD5 -A passwd -l authNoPriv 127.0.0.1 sysDescr
    ```


snmp snmpd



更新于 2023年03月28日
 
陕ICP备13008705号-1 Chat Gpt Api