性能管理配置举例
组网需求
如图4-2所示,SwitchA、SwitchB配置了端到端网络的丢包统计功能,以对SwitchA和SwitchB之间的VPN网络丢包性能进行分析。其中,SwitchA作为统计系统中的控制角色MCP负责收集、汇总统计数据。
网络维护人员希望对SwitchA收集到的数据做进一步的统计,并将统计的结果发送至FTP Server以进行分析。SwitchA通过网络与FTP Server相连,且相互之间路由可达。
配置思路
采用如下思路配置:
在SwitchA和SwitchB上配置iPCA功能,对端到端网络的丢包进行统计。
使能数据统计功能,创建统计任务并绑定统计实例。
配置向FTP Server自动发送统计文件。
操作步骤
- 在SwitchA和SwitchB上配置iPCA功能,对端到端网络的丢包进行统计。其中,SwitchA作为统计系统中的控制角色MCP。
# iPCA功能的详细配置过程请参见iPCA配置。本举例略。
- 使能数据统计功能,创建统计任务并绑定统计实例。
# 使能数据统计功能。创建统计任务并绑定iPCA中IP FPM的所有统计实例。
<Quidway> system-view [Quidway] sysname SwitchA [SwitchA] pm [SwitchA-pm] statistics enable [SwitchA-pm] statistics-task stream [SwitchA-pm-statistics-stream] binding instance-type ipfpm all
# 配置统计周期为5分钟、统计周期的个数为2,即每10分钟将统计数据保存至统计文件。
[SwitchA-pm-statistics-stream] statistics-cycle 5 Warning: All data of the statistics task will be deleted. Continue? [Y/N]:y [SwitchA-pm-statistics-stream] record-interval 2 Warning: All data of the statistics task will be deleted. Continue? [Y/N]:y [SwitchA-pm-statistics-stream] quit
- 配置向FTP Server自动发送统计文件。
# 创建性能管理服务器的进程,并指定性能管理服务器的类型、IP地址、用户名、密码和文件上传路径。
[SwitchA-pm] pm-server ftpserver [SwitchA-pm-server-ftpserver] protocol ftp ip-address 10.1.1.1 [SwitchA-pm-server-ftpserver] username user1 password pwd123 [SwitchA-pm-server-ftpserver] path d:/pmdata [SwitchA-pm-server-ftpserver] quit
# 配置向FTP Server自动发送统计文件。
[SwitchA-pm] upload-config req1 server ftpserver [SwitchA-pm] statistics-task stream [SwitchA-pm-statistics-stream] upload auto req1 [SwitchA-pm-statistics-stream] return
- 验证配置结果
# 查看统计任务的配置信息。
<SwitchA> display pm statistics-task stream Task Name : stream Task State : running Record-file Status : enable Threshold Alarm Status : disable Task Cycle : 5 minutes Sample Interval : 1 minute Instance Type : ipfpm Record Interval(cycle) : 2 File Format : text File Name Prefix : stream File Transfer Mode : active Current File Name : stream20140415154000.txt
# 在FTP Server的d:/pmdata路径下,查看统计文件(略)。
配置文件
SwitchA的配置文件
# sysname SwitchA # pm statistics enable pm-server ftpserver protocol ftp ip-address 10.1.1.1 username user1 password %^%#XGl-6~|CU>v0KaYG:LCINi0F!m/Q"SM^Pk.HL~z>%^%# path d:/pmdata upload-config req1 server ftpserver statistics-task stream statistics-cycle 5 record-interval 2 upload auto req1 binding instance-type ipfpm all # return