欢迎来到天天文库
浏览记录
ID:29991118
大小:51.00 KB
页数:7页
时间:2018-12-25
《snmp客户端安装配置手册》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、www.xunbiz.comTILIATECH:SNMP客户端安装配置手册一、手动编译安装NET-SNMP源码包(unix和linux通用方法)①安装gcc环境②对net-snmp进行解压、安装和配置#tarzxvfnet-snmp-5.5.tar.gz#cdnet-snmp-5.5#./configure#make#makeinstall#/sbin/iptables–IINPUT–pudp–dport161–jACCEPT#cd/usr/local/share/snmp/#snmpconf–gbasic_setup
2、(回答问题,生成snmpd.conf文件)#vi/etc/rc.local添加一行:/usr/local/sbin/snmpd–c/usr/local/share/snmp/snmpd.conf&二、OpenSolaris10上进行网络配置、安装SNMP①网络配置#svcadmdisablenwam(关闭无线网络)#vi/etc/inet/hosts添加一行:10.18.5.52test#vi/etc/netmaskst添加一行:10.1.5.0255.255.255.0#vi/etc/hostname.e1000g0
3、添加一行:test#vi/etc/resolv.conf添加一行:nameserver211.69.32.48#vi/etc/nsswitch.conf修改:hosts:files——>hosts:filesdns#svcadmdisablephysical:default#svcadmenablephysical:defaultwww.xunbiz.com②安装SNMP#pkginstallSUNWsmagt#pkginstallSUNWsmcmd#pkginstallSUNWsmmgr③配置SNMP#vi/etc/
4、sma/snmp/snmpd.conf修改:rocommunitypublic——>rocommunityhactcmnic10.18.5.0/24#svcadmenablesma④添加防火墙策略#svcs-a
5、grepnetwork
6、egrep“pfil
7、ipf”#vi/etc/ipf/ipf.conf添加如下内容:passinquickprotoudpfromalltoallport=161blockinall#svcadmdisableipfilter#svcadmenableipfilter三、OpenBSD4
8、.6上安装NET-SNMP①安装SNMP#exportPKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.6/packages/i386/#pkg_addnet-snmp②配置SNMP#vi/etc/snmp/snmpd.conf#vi/etc/rc.local(使SNMP服务开机启动,添加如下内容)if[-x/usr/local/sbin/snmpd];thenecho–n‘snmpd’;/usr/local/sbin/snmpdwww.xunbiz.comfi③添加防火墙策略#
9、vi/etc/pf.confblockinallpassonem0udptoport161#pfctl-f/etc/pf.conf(载入pf.conf文件)#pfctl–sr(显示当前的过滤规则)四、SUSELinuxEnterprise11上安装NET-SNMP①安装SNMPcomputer——>InstallSoftware——>Search框输入net-snmp,选中net-snmp,安装即可②配置SNMP#vi/etc/snmp/snmpd.conf修改:——>rocommunityhactcmnic10.18
10、.5.0/24#servicesnmpdrestart#chkconfigsnmpdon③添加防火墙策略#vi/etc/sysconfig/SuSEfirewall2修改:——>FW_SERVICES_EXT_UDP=“161″#rcSuSEfirewall2restart五、UbuntuServer10.10上安装NET-SNMP①安装SNMP#apt-getinstallsnmpdsnmp②配置SNMPI.#nano/etc/snmp/snmpd.confwww.xunbiz.com#agentAddressudp
11、:127.0.0.1:161agentAddressudp:161,udp6:[::1]:161rocommunitytailaikejidefaultII.#nano/etc/default/snmpdsnmpDOPTS=’-Lsd-Lf/dev/null-usnmp-I-smux-p/var/run/snmpd.pid127.
此文档下载收益归作者所有