## Commands Used for Monitoring

This section describes the commands and techniques used to monitor the storage devices supported by Storage Automated Diagnostic Environment.

Sun StorEdge 3510 and 3511 Fibre Channel Arrays, Sun StorEdge 3310, 3310-D, and 3120 and 5210 SCSI Arrays

This agent uses the CLI command `/opt/SUNWstade/bin/sccli` `show`(1M) `<`option`>`. This command works both in-band and out-of-band (except Sun StorEdge 3120 and 3310-D arrays). The Storage Automated Diagnostic Environment software uses the same API interface for the in-band and out-of-band cases. This command extracts enclosure information and the content of the device message logs (except Sun StorEdge 3120. 5210, and 3310-D arrays).

Note -

The Sun StorEdge 3510 Fibre Channel Array has an internal setting called periodic drive check. This setting affects the time it takes the Storage Automated Diagnostic Environment software to report an alert, since the Sun StorEdge 3510 FC Array does not report a problem until the next periodic drive check runs.
Use the Sun StorEdge 3510 FC Array Management Software to enable the default value (which is set to disabled in the Storage Automated Diagnostic Environment software). The new value should be between 30 seconds and five minutes.

Sun StorEdge A3500FC Array

This agent uses the commands of the rm6 package (for example, `healthck`(1M), `lad`(1M), and `rdacutil`(1M)). These commands function in-band.

Sun StorEdge A5x00 Array

The `luxadm`(1M) command is used to monitor the Sun StorEdge A5x00 array. It is important to make sure that the latest `luxadm` patches are installed before installing the Storage Automated Diagnostic Environment to monitor the Sun StorEdge A5x00 array.

Brocade Switch

The Storage Automated Diagnostic Environment uses the snmp library (`snmpget`(1M), `snmpwalk`(1M)) to extract information from Brocade switches out-of-band.

Sun StorEdge D2 Array

`luxadm`(1M), along with other in-band CLI commands (`disk_inquiry`(1M), `rdbuf`(1M), `identify`(1M) and `vpd`(1M)) are used to monitor the Sun StorEdge D2 Array.

Host

The Host agent uses `luxadm` to read the LUN and HBA status. It also uses UNIX commands (`df`(1M), `showrev`(1M), `pkginfo`(1M)) to extract host information.

MCData Switch

The Storage Automated Diagnostic Environment uses `snmp`(1M) for McData switches.

Sun StorEdge Switch

For 1 Gbyte switches, the Storage Automated Diagnostic Environment uses the `sanbox`(1M) CLI command. For the more recent 2-Gbyte switches, `snmp`(1M) is used.

Sun StorEdge T3 and T3+ Array

The Storage Automated Diagnostic Environment uses HTTP queries to extract properties from the T3 arrays (also called tokens). Sun StorEdge T3 arrays come with a web server, which can be used to monitor the status of the array. The T3 tokens content is similar to the output of the `fru` `stat`, `fru` `list`, and `vol` `stat` telnet commands. The content of the `messages.t3` and `messages.6120` logfile is also used: Warning (W: ), Errors (E: ) and important notices are monitored by the Storage Automated Diagnostic Environment software.

Sun StorEdge 6120 Array

Uses the same technique as the Sun StorEdge T3 and T3+ Array.

Sun StorEdge 9900 Series Systems

The Storage Automated Diagnostic Environment uses SNMP queries to extract health status information on Sun StorEdge 9900 Series subsystems.

Fibre Channel Tape Devices

`luxadm`(1M) is used to monitor Fibre Channel tape devices.

V880 Disk

The Storage Automated Diagnostic Environment uses `luxadm`(1M) display to monitor V880 Disk in-band.

Sun StorEdge 99xx (HDS)

The Storage Automated Diagnostic Environment uses `snmp`(1M) to monitor the Sun StorEdge 99xx series.

Inrange Switch

The Storage Automated Diagnostic Environment uses `snmp`(1M) to monitor Inrange switches.

Message Files

A separate module monitors the `/var/adm/message` file. This module saves the 'seek' value of the end of the file and reads the new entries in the files. When these new entries are deemed important from a storage point of view, log events are generated. HBA drivers write to this log file.