Linux


 

只有Redhat Linux版本需要安装新版本的SNMP。

 

从如下链接下载最新版本的SNMP。
 

 

使用如下命令提取文件:
 

tar -zxvf ucd-snmp-4.2.6.tar.gz
 

请按如下步骤安装SNMP:

  1. 使用root用户登录。

  2. 执行命令设置编译路径:Execute the command to set the path of the C compiler:

  3. Export PATH=<gcc path>:$PATH

  4. 从您提取ucd-snmp的目录执行如下4个命令:

如果需要安装rpm(redhat软件包管理器),请使用如下命令安装:
 

$ rpm -i <package name>

在Linux8以下版本配置代理

  1. 如果代理正在运行,使用如下命令停止代理:

/etc/rc.d/init.d/snmpd stop

 

    2 . 对/etc/rc.d/init.d/snmpd file文件进行如下更改

    这是要在启动和停止SNMP代理时选择当前已安装的版本。
     

    3.使用如下命令启动代理:/etc/rc.d/init.d/snmpd start.

    在Linux 8及更新版本中配置代理

    在Linux 8及更新版本中,已经安装了最新版本的SNMP代理。您只需要在snmpd.conf文件中进行如下修改:
     

    1. 插入这一行

    view allview      included   .1.3.6
     

    next to the line
     

    # name incl/excl subtree mask(optional)
     

    3.改变这一行
     

    access  notConfigGroup "" any noauth exact systemview none none
     

    next to the line
     

    # group context sec.modelsec.level prefix read   write  notif
     

    as
     

    access  notConfigGroup ""   any  noauth   exact  allview none none
     

    4.使用如下命令重启SNMP代理:
     

    /etc/rc.d/init.d/snmpd restart

    Copyright © 2004-2013, ZOHO Corp. All Rights Reserved.
    ManageEngine