Home > Storage > PowerScale (Isilon) > Product Documentation > Management and Migration > PowerScale OneFS: Advanced Alert Configurations > Useful CLI commands
This section lists some useful CLI commands to configure alerts in OneFS:
Use the following CLI command to check if SNMP monitoring service is enabled on the PowerScale node:
isi services -a snmp
To check this service for all the PowerScale nodes, use the following script:
isi_for_array -sX 'pgrep snmpd | wc -l'
If the service is enabled on all the PowerScale nodes, the output will look like this:
f800eth-1: 1
f800eth-2: 1
f800eth-3: 1
f800eth-4: 1
OneFS SNMP monitoring service and SNMP TRAP use dedicated ports for external communications as listed in Table 9.
Port | Protocol | Description | Enable or disable on installation | |
snmp | 161 | UDP | SNMP monitoring | Enabled |
snmptrapd snmpinfo | 162 | UDP | SNMP TRAP | Enabled |
Use the following command to query the port connectivity for snmp or snmptrap on a dedicated PowerScale node
x41040g-1# nc -u -z localhost 161
Connection to localhost 161 port [udp/snmp] succeeded!
x41040g-1# nc -u -z localhost 162
Connection to localhost 162 port [udp/snmptrap] succeeded!
To check the port connectivity for all the PowerScale nodes, use the following script:
isi_for_array -sX 'nc -u -z localhost 161'
If the port is reachable on all the PowerScale nodes, the output will look like this:
x41040g-1: Connection to localhost 161 port [udp/snmp] succeeded!
x41040g-2: Connection to localhost 161 port [udp/snmp] succeeded!
x41040g-3: Connection to localhost 161 port [udp/snmp] succeeded!
From OneFS 8.0.0.5 onwards, the CLI – isi event types is introduced and will list all the supported event types for SMTP alert which can be configured in the OneFS alert configuration. This is useful in a scenario such as disabling certain event types for alert configuration. For details, see the section Alert configuration by the deny list.
To list all the supported event types in csv format, use the following CLI command:
isi event types list –format=csv
Note: For all event groups which can be subscribed through SNMP, refer to appendix A.