資源描述:
《snmp客戶端安裝配置手冊(cè)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、www.xunbiz.comTILIATECH:SNMP客戶端安裝配置手冊(cè)一、手動(dòng)編譯安裝NET-SNMP源碼包(unix和linux通用方法)①安裝gcc環(huán)境②對(duì)net-snmp進(jìn)行解壓、安裝和配置#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上進(jìn)行網(wǎng)絡(luò)配置、安裝SNMP①網(wǎng)絡(luò)配置#svcadmdisablenwam(關(guān)閉無(wú)線網(wǎng)絡(luò))#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添加如下內(nèi)容: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服務(wù)開機(jī)啟動(dòng),添加如下內(nèi)容)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(顯示當(dāng)前的過濾規(guī)則)四、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.