欢迎投稿

今日深度:

linux 配置snmp服务,linux配置snmp

linux 配置snmp服务,linux配置snmp




--Linux上配置snmp的方法


--先挂载iso光盘镜像文件
mount -o loop /soft/rhel-server-6.4-x86_64-dvd.iso /mnt/cdrom


--先查看是否已安装snmp相关包
# rpm -qa|grep snmp


--这里通过yum的方式进行包的安装,防止因为依赖关系而装不全
# yum install net-snmp-*
--或者每一个包单独安装
rpm -ivh net-snmp-libs-5.3.2.2-17.el5.x86_64.rpm


--安装完成所需包之后配置etc/snmp/snmpd.conf文件
按照如下方式修改snmpd.conf文件


1、修改默认的community string


com2sec notConfigUser default public


将public修改为规定的字符串tppublic


2、把下面的语句


access notConfigGroup "" any noauth exact systemview none none
改成:


access notConfigGroup "" any noauth exact mib2 none none


3、把下面的#号去掉


#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc






--启动snmpd服务


service snmpd start
或者/etc/rc.d/init.d/snmpd 


--设为开机启动
  
$ chkconfig snmpd on


--查看状态  
chkconfig --list | grep snmpd
  
  

版权声明:本文为博主原创文章,未经博主允许不得转载。

www.htsjk.Com true http://www.htsjk.com/shujukunews/9905.html NewsArticle linux 配置snmp服务,linux配置snmp --Linux上配置snmp的方法 --先挂载iso光盘镜像文件 mount -o loop /soft/rhel-server-6.4-x86_64-dvd.iso /mnt/cdrom --先查看是否已安装snmp相关包 # rpm -qa|grep snmp --这里通过...
评论暂时关闭