Online Diagnostics (EMS and STM) Administrator's Guide March 2013
Replace n with the number of switches you want to monitor. For example, the following entry
enables you to monitor five switches:
SW_COUNT 5
4. Add the following entry to the file:
SW_X_IP_ADDRESS nn.nn.nnn.nnn
Replace X with the number 1, and replace nn.nn.nnn.nnn with the IP address of the switch
that is designated as switch 1.
Following is a sample of an entry:
SW_1_IP_ADDRESS 192.0.2.1
5. To monitor multiple switches, repeat step 4 for each switch. For example, the following entries
configure the monitor for three switches:
SW_COUNT 3
SW_1_IP_ADDRESS 192.0.2.2
SW_2_IP_ADDRESS 192.0.2.3
SW_3_IP_ADDRESS 192.0.2.4
6. Save the file.
7. To invoke the changes made to the switch configuration file, run the Enable Monitoring option
even if monitoring is already enabled. The Enable Monitoring option runs the startup client,
which reads the contents of the configuration file and starts the switch monitor to monitor the
FC switches. For more information on how to enable monitoring, see “Enabling Monitoring ”
(page 32).
Adding or Removing an FC Switch
Adding or removing a switch from the monitor configuration involves modifying the SW_COUNT
and SW_X_IP_ADDRESS configuration file settings.
To change the FC switch monitoring configuration, complete the following steps:
1. Ping and find out the IP address of each switch you want to add or delete.
2. Open the /var/stm/config/tools/monitor/dm_fc_sw.cfg file using a text editor,
such as vi.
3. Locate the following entry in the file, and replace n with the number of switches you want to
monitor:
SW_COUNT n
4. To add a switch, add the following entry to the file:
SW_<X>_IP_ADDRESS <IP address>
Replace x with the number you want to assign to the switch, and replace nn with the IP address
of the switch.
Following is a sample of an entry:
SW_5_IP_ADDRESS 192.0.2.5
Repeat this step for each switch you want to add.
To remove a switch, locate the SW_X_IP_ADDRESS entry of the switch in the file and delete
it.
5. Save the file.
6. To invoke the changes , run the Enable Monitoring option even if monitoring is already enabled.
This option runs the startup client, causing the changes to the switch monitoring to take effect
immediately. For more information on how to enable monitoring, see “Enabling Monitoring
” (page 32).
26 Configuring and Administering EMS Hardware Monitors