Administrator Guide

Table Of Contents
调整阈值如果需要
步骤
在管理服务器上如果均为 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
c. 更改 config.json 文件中的默认阈值可选。如果您发现可以增加默认值或其中一个值以获得更好的结果可以修改
config.json 文件以获得新阈值使用 VI 编辑器。示例vim /var/log/VPlex/cli/port-stats-monitor/
config.json
Sample Output:
{
"bad_CRC": 5,
"Disc_frame": 40,
"link_fail": 15,
"Loss_of_sync": 45,
"loss_of_sig": 45,
"reset": 5
}
d. config.json 文件执行修改后您必须重新启动 port-monitor 脚本。
VPlexcli:/> port-monitor restart
VPlexcli:/> port-monitor status
Status: running with the following parameters:
Emails: joe@dell.com <<< this will only show e-mail addresses if configured
SMTP: x.x.x.x
Local-only: False
Threshold config: {u'lr-remote': 5, u'crc-errors': 50, u'invalid-transmission-
word': 500, u'link-failure': 10, u'loss-of-signal': 45, u'loss-of-sync': 60}
端口统计信息监视用途信息
用途取自 6.2.x 脚本
Port Stats Monitoring
A prodscript for monitoring critical statistics for ports.
## What does this monitor do?
The monitor periodically logs VPLEX FC port statistics and can notify via email if critical
stats have increased past their threshold within a minute interval.
## Usage
After importing the prodscript with `script -i port_stats_monitor`, 5 commands are created:
port-monitor restart Restart all monitor threads.
port-monitor start Start periodically monitoring for port stat changes
port-monitor status Display the status of the port monitor thread
port-monitor stop Stop any in-progress port stat monitor threads.
port-monitor test-email Test the monitor's email notification.
性能和监控
89