首页
Profile
Profile
Profile
Profile
Profile

ubuntu Lucid(10.04) snmp snmpd

2011-12-12 阅读 254
ubuntu Lucid(10.04) snmp snmpd 安装 监控 系统状态
    apt-get install snmp snmpd
    ```
    
    vim /etc/snmp/snmpd.conf
    ```
    

修改:

    access MyROSystem "" any noauth exact all none none
    ```
    

增加:

    agentaddress IP
    ```
    

本地测试:

    snmpwalk -v 2c -c public localhost
    ```
    

远程访问:

    vim /etc/default/snmpd
    ```
    

修改:

    SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'
    ```
    

重启:

    /etc/init.d/snmpd restart
    ```
    

添加远程用户:

    /etc/init.d/snmpd stop
    net-snmp-config --create-snmpv3-user -ro -A password -a MD5 username
    /etc/init.d/snmpd start
    ```
    

测试:

    snmpwalk -v 3 -l authNoPriv -a MD5 -u username -A PASSWORD IP:161 sysDescr
    ```


ubuntu Lucid(10.04) snmp snmpd 安装 监控 系统 状态



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