SNMP配置手册Word文档格式.docx

上传人:b****5 文档编号:19547869 上传时间:2023-01-07 格式:DOCX 页数:13 大小:19.02KB
下载 相关 举报
SNMP配置手册Word文档格式.docx_第1页
第1页 / 共13页
SNMP配置手册Word文档格式.docx_第2页
第2页 / 共13页
SNMP配置手册Word文档格式.docx_第3页
第3页 / 共13页
SNMP配置手册Word文档格式.docx_第4页
第4页 / 共13页
SNMP配置手册Word文档格式.docx_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

SNMP配置手册Word文档格式.docx

《SNMP配置手册Word文档格式.docx》由会员分享,可在线阅读,更多相关《SNMP配置手册Word文档格式.docx(13页珍藏版)》请在冰豆网上搜索。

SNMP配置手册Word文档格式.docx

Syslog配置

1.打开交换机的syslog功能

loggingon

2.直接配置相应的syslog发送到的接收主机,为该主机的ip地址。

logging

3.配置发送syslog的主机格式类型。

loggingfacilitylocal4

4.选择发送warning以上级别的log信息。

loggingtrapwarnings

华为交换机

2.输入system命令进入配置模式。

1.输入return命令退出配置模式。

2.Save保存配置文件。

1.启用SNMP

snmp-agent

2.配置snmp协议的版本号

snmp-agentsys-infoversionall

上面的命令是指对SNMPV1、V2C、V3都支持。

3.配置snmp只读community

snmp-agentcommunityreadpublic

4.配置snmp读写community

snmp-agentcommunitywritepublic

snmp-agenttrapsenable

snmp-agenttarget-hosttrapaddressudp-domainparamssecuritynamepublic

指定交换机SNMPTrap的接收者为(一般配置为采集机的IP),发送Trap时采用public作为字串

1.启用交换机的syslog功能

info-centerenable

2.指定接收syslog的主机,为该主机的ip地址。

info-centerloghostlanguageEnglish

以上命令是配置接收syslog,syslog的语言为英文。

3.选择发送warning以上级别的syslog信息。

info-centersourcedefaultchannelloghostloglevelwarning

中兴交换机

1.登陆交换机。

2.输入enable命令进入特权模式。

3.输入configterminal进行配置模式。

1.输入end命令退出配置模式。

保存配置文件。

1.配置snmp的只读community

snmp-servercommunitypublicviewtestro

snmp-serverviewDefaultViewsystemincluded

snmp-serverviewAllViewinternetincluded

snmp-serverviewtestzxr10IPAddrTableincluded

snmp-serverviewtestzteincluded

snmp-serverviewtestmib-2included

1.配置交换机允许发送trap

snmp-serverenabletrap

snmp-serverhosttrapversion2cpublic

syslogon

syslogserver

3.选择发送warning以上级别的log信息。

sysloglevelwarnings

2路由器部分

在HP-UX11i操作系统上,一般情况下,配置SNMP服务时,将需要修改SNMP团体名,不建议使用操作系统缺省的SNMP团体名。

Cisco路由器

1.登陆路由器。

配置路由器的只读community为public

配置路由器的读写community为public

1.配置路由器允许发送trap

2.配置路由器接收trap的主机

指定路由器SNMPTrap的接收者为,发送Trap时采用public作为字串

1.打开路由器的syslog功能

华为路由器

上面的命令是指对SNMPV1、V2C、V3都支持。

指定路由器SNMPTrap的接收者为(一般配置为采集机的IP),发送Trap时采用public作为字串

1.启用路由器的syslog功能

3防火墙部分

Netscreen防火墙

由于Netscreen防火墙的配置界面是以web方式进行的,故下面均以截图作为讲解基础,另外netscreen防火墙的单项配置如果一选择“APPLY“,则配置自动保存并且运行!

选择Configuration—ReportSettings—SNMP

点击“NewCommunity”按钮,配置SNMP的只读community及接收主机。

点击“Edit“,在Permissions选中”trap”

选中SYSLOG,选中“Enablesyslogmessages”,输入接收主机的IP地址,选中“EventLog”复选框,选中前面的“enable”复选框,最后点击“Apply”按钮。

CiscoPIX防火墙

1.登陆防火墙。

3.输入end命令退出配置模式。

4.copyrunningstart保存配置文件。

配置防火墙的只读community为public

注:

PIX防火墙只支持只读community,不支持读写community。

2.配置轮询SNMP的主机

snmp-serverhostpoll

以上为PIXOS6。

0以上版本命令。

snmp-serverhost

以上为PIXOS以下版本命令。

snmp-serverhosttraps

logginghost[interface_name]

3.选择发送warning以上级别的log信息。

loggingtrapseverity_level5

4服务器部分

LINUX服务器

准备工作

安装方法

安装SNMP相关软件包:

安装SNMP软件:

#tar-zxvf/winshare/

#cd./–prefix=/usr/local/snmpSelectthefiletypeyouwishtocreate:

(youcancreatemorethanoneasyourunthisprogram)

1:

2:

3:

Otheroptions:

quit

SelectFile:

1

在出现菜单中,选择1

Theconfigurationinformationwhichcanbeputintoisdivided

intosections.Selectaconfigurationsectionfor

thatyouwishtocreate:

MonitorVariousAspectsoftheRunningHost

AgentOperatingMode

ExtendingtheAgent

4:

AccessControlSetup

5:

TrapDestinations

6:

SystemInformationSetup

finished

Selectsection:

4

在出现菜单中,选择4

Section:

Description:

Thissectiondefineswhoisallowedtotalktoyourrunning

snmpagent.

Selectfrom:

aSNMPv3read-writeuser

aSNMPv3read-onlyuser

aSNMPv1/SNMPv2cread-onlyaccesscommunityname

aSNMPv1/SNMPv2cread-writeaccesscommunityname

finished,list

3

在出现菜单中,选择3,配置v1和v2c版本的只读community字。

Configuring:

rocommunity

aSNMPv1/SNMPv2cread-onlyaccesscommunityname

arguments:

community[default|hostname|network/bits][oid]

Thecommunitynametoaddread-onlyaccessfor:

public

提示输入只读community字,这里输入public。

Thehostnameornetworkaddresstoacceptthiscommunitynamefrom[RETURNforall]:

提示通过此community字访问设备的网段及主机地址,这里可以直接输入回车确认,表示全部。

TheOIDthatthiscommunityshouldberestrictedto[RETURNforno-restriction]:

提示可以访问的OID范围,这里直接回车确认,表示全部OID。

FinishedOutput:

communitypublic

配置后返回菜单,输入finished,退到上一级菜单,在顶级菜单输入quit,提示配置文件建立成功:

Icancreatethefollowingtypesofconfigurationfilesforyou.

Selectthefiletypeyouwishtocreate:

Thefollowingfileswerecreated:

启动SNMP服务

#/usr/local/sbin/snmpd-c/usr/bin/

验证SNMP服务

#ps–ef|grepsnmp

root68271002:

3800:

00:

00/usr/local/sbin/snmpd-c/usr/bin/

root6829213117602:

38pts/200:

00grepsnmp

客户端可以使用SolarWindsEngineersEdition,检测liunx系统的各项参数。

IBM服务器(AIX系统)

AIX安装系统盘或下载的软件包

安装SNMP相关软件包

安装GCC编译环境:

#

gccwillbeinstalledbydefault

Typethefollowing:

(usingthesampleabove)

#cd/opt

#uncompress*.Z

#./configure–prefix=/usr/local/snmpsnmpconf

根据“配置SNMP文件”步骤,进行相关项配置即可。

#lssrc-ssnmpd只为测试可不用修改

trap-dest:

localhost

#/usr/sbin/snmpd

#ps–ef|grepsnmp

会看到类似这样的信息..

root94681014:

27:

340:

00/usr/sbin/snmpdm

SUN服务器(Solaris系统)

Solaris安装系统盘或下载的软件包及其它版本

安装GCC等编译工具:

#tar-xvf/tmp/

#cd./–prefix=/usr/snmpsnmpconf

Solaris10自带net-snmp配置方法:

#vi/etc/sma/snmp/

rocommunitypublic

修改只读Community为public,保存退出。

#/usr/sfw/sbin/snmpd

#ps-ef|grepsnmp

root143631322001:

29:

24pts/30:

root143611101:

180:

00/usr/sfw/sbin/snmpd

Windows服务器(WIN2003系统)

Windows系统安装盘

(1)修改windowsSNMP协议栈端口号

修改%windir%\system32\drivers\etc(一般为:

C:

\WINDOWS\system32\drivers\etc)目录下services文件。

修改如下内容(将snmp端口修改为1611,snmptrap修改为1612):

snmp161/udp#SNMP

snmptrap162/udpsnmp-trap#SNMPtrap

注意事项:

在修改前,要确认操作系统未占有1611端口。

(2)安装windowsSNMP服务

通过控制面板启动“添加或删除程序”,并选择“添加/删除windows组件”:

选中“管理和监视工具”,单击“详细信息…”按钮:

单击选择“简单网络管理协议”,并单击“确定”按钮:

回到“windows组件向导”页面,单击“下一步”按钮,等待windows组件安装完成:

配置SNMP服务

通过开始菜单中的“运行”,输入启动“服务”窗口,对windowsSNMP服务进行配置,在窗口中查找“SNMPService”服务,并通过右键查看该服务属性:

配置SNMP服务的安全选项,要配置如下两个内容:

1)添加“接受团体名称”

2)选择“接受来自任何主机的SNMP数据包”,或者添加监控主机的IP地址

通过开始菜单中的“运行”,输入启动“服务”窗口,找到“SNMPService”服务,通过右键点击“启动”,以启动服务。

5其他部分

F5负载均衡

由于F5负载均衡设备的配置界面是以web方式进行的,故下面均以截图作为讲解基础,另外F5负载均衡设备的单项配置如果选择“APPLY“,则配置自动保存并且运行!

选择SystemAdmin—SnmpAdministration

点击“Enable”按钮以允许SNMP,在ClientAccess中配置采集机的IP地址,在SystemInformation的“CommunityString”中输入只读community,SystemContact和Machinelocation为可选项。

点击“apply”提交。

在TrapConfiguration中配置接收TRAP信息的采集机的IP地址及端口号和community。

一般端口号为162。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1