Administrator Guide

Table Of Contents
el monitor se esté ejecutando. En el Paso d, desplácese hacia abajo hasta donde dice "Comprobación de estado" y ejecute
únicamente ese comando por ahora. Los pasos c y d deben seguirse para ambos clústeres en el caso de un Metro.
c. Cambio de umbrales predeterminados en el archivo config.json (opcional). Si descubre que se pueden aumentar los valores
predeterminados, o uno de ellos, para obtener mejores resultados, puede modificar el archivo config.json para los nuevos valores
de umbral (mediante el editor VI). Ejemplo: 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. Después de realizar modificaciones en el archivo config.json, debe reiniciar el script del monitor de puertos.
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}
Información de uso del monitoreo de estadísticas de puertos
Uso: tomada del script 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.
### Starting the monitor
To start the monitor, run:
` port-monitor start [--email <email>,<email>...]`
options (* = required):
-h | --help
Displays the usage for this command.
--verbose
Provides more output during command execution. This may not have any effect for
some commands.
-e | --email= <emails> [, <emails> ...]
Comma-separated email addresses to notify upon detecting a failure
--smtp= <smtp>
SMTP server address to use for notification emails
--local-only
Poll only cluster-local directors
100
Rendimiento y monitoreo