Administrator Guide
Table Of Contents
● 明确标识遇到结构问题的群集、控制器和端口。
● 报告任何降级的 FC 启动器-目标对。
● 可以在 json 配置文件中修改脚本中的阈值。
● 5 分钟后抑制错误报告,在此之后将发送摘要电子邮件,该电子邮件详细说明了电子邮件被抑制期间的端口错误报告。
注: 此设计旨在让支持人员与终端用户合作来部署监视脚本,从而针对想要接收脚本发出的报告的人员的电子邮件服务器地址和
电子邮件列表设置 port-stats-monitor 脚本。
示例:port-monitor start [--email <email>,<email>,...]
设置用于通过电子邮件发送报告的脚本
启动脚本并连接到终端用户的电子邮件 (SMTP) 服务器。
VPlexcli:/> port-monitor start --smtp <mail server ip address> -e [<email>,<email>,...]
注: 启动脚本后,来自该服务器的输出将记录在 ports-stats-monitor.log 文件中,该文件可在 /var/log/VPlex/cli 下查
看。
检查脚本状态
步骤
1. 检查脚本的状态,查看其是否正在运行。
VPlexcli:/> port-monitor status
Status: running with the following parameters:
Emails: joe@dell.com
SMTP: x.x.x.x
Local-only: False
2. 为了确保在管理服务器可能重新启动时脚本也重新启动,您可以通过将启动脚本中用于重新启动脚本的命令添加到 /var/log/
VPlex/cli directory 下的 VPlex-init 文件中来添加持久性,如此步骤中所示。使用 vi 编辑器,然后将脚本启动命令行
添加到 /var/log/VPlex/cli/VPlexcli-init 文件末尾。
Sample output:
service@ManagementServer:/var/log/VPlex/cli> vim VPlexcli-init
#-------------------------------------------------------------------------------
#- (C) 2007-2010 EMC Corporation. All rights reserved.
#-
#- This CLI initialization script is executed if it's located in any of the
#- following locations:
#- (CLI terminates the search on first success.)
#- if the --init-file option is specified on the command line then use that file
#- else search for the file "VPlexcli-init" in the following order:
#- a. CLI directory (specified with the --cli-directory option)
#- b. current dir (of the shell that started CLI)
#- c. user.dir (usually equivalent to the current dir)
#- d. user.home
#- e. classpath
#- This script is processed as if it had been sourced using the 'source' command
#-------------------------------------------------------------------------------
.
.
ll /monitoring/directors/*/monitors/
#
#
<new entry added below at the end of VPlex-init file,
script -i port_stats_monitor
port-monitor start –smtp <mail server ip address> -e <email>,<email>,...>
88
性能和监控