Administrator Guide

Table Of Contents
检查脚本状态
步骤
1. 检查脚本的状态,查看其是否正在运行。
VPlexcli:/> port-monitor status
Status: running with the following parameters:
Emails: joe@dell.com
SMTP: x.x.x.x
Local-only: False
2. 为了确保在管理服务器可能重新启动时脚本也重新启动,您可以通过将 Starting the script 中用于重新启动脚本的命令添加
/var/log/VPlex/cli directory 下的 VPlexcli-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>,...>
调整阈值(如果需要)
步骤
在管理服务器上,如果均为 Metro,则创建目录 port-stats-monitor 并将您之前在解压缩 port-stats-monitor_6.2.zip
文件后看到的特定硬件 VS2 VS6 config.json 文件拷贝到新创建的目录中。
a. 创建目录 /var/log/VPlex/cli/port-stats-monitor
示例: mkdir /var/log/VPlex/cli/port-stats-monitor
b. 将相应的硬件 <vsX>_config.json 文件拷贝到您正在使用的 Metro Node 硬件的此目录中。示例:cp vs2-
config.json /var/log/VPlex/cli/port-stats-monitor/config.json cp vs6-config.json /var/log/
VPlex/cli/port-stats-monitor/config.json
: 对于步骤 c,请在加载脚本后不要进行任何更改。让监视脚本运行片刻,如果存在性能问题,则终端用户将收到任何问题
的电子邮件警报,他们将联系 Metro Node 支持人员以获得进一步的协助。转至步骤 d,但只需确认监控器正在运行。在
d 中,向下滚动到显示“Checking status”的位置,现在仅运行该命令。如果群集是 Metro,则对于两个群集均执行步骤
c d
90 性能和监控