CLI – Managing integration with vCenter Operations Manager
Before you can use the IBM® Storage Management Pack for VMware vCenter Operations Manager, you must set a connection to at least one vCenter Operations Manager (vCOps) server, and then define which storage arrays should be monitored in vCOps.
After a vCOps server connection is defined and storage arrays are associated with the vCOps server, detailed monitoring information for these storage arrays becomes available in vCOps (for more information, see Using the IBM Storage Management Pack for VMware vCenter Operations Manager).
Use the sc_vcops_server CLI command to add, remove, or disable connections to vCOps servers, or to list the current server connections. An HTTP POST adapter is automatically created for each vCOps server that you add.
Use the sc_vcops_adapter command to attach storage arrays to any created HTTP POST adapter. A storage array that is attached to an HTTP POST adapter can be monitored by the vCOps server for which the HTTP POST adapter was created. You can use the sc_vcops_adapter command for additional options as described below.
Use the required argument after each command, as specified in the following tables.
Important:
|
Note:
|
| Argument | Use after sc_vcops_server to: |
|---|---|
| add -n <hostname> -u <username>
-p <password> or add --hostname <hostname> --username <username> --password <password> |
Add a vCOps server connection by specifying
the following parameters on the command line:
For example:
Note: The local HTTP POST adapter is added automatically after
the vCOps server is added.
|
| remove -n <hostname> or remove --hostname <hostname> |
Remove a vCOps server connection by specifying
its IP address or hostname on the command line. For example:
Note: A removed vCOps server ceases to receive monitoring information regarding IBM storage resources that are in
use. You can add a vCOps server back by using the add option (see above).
|
| disable -n <hostname> or disable --hostname <hostname> |
Disable reporting to a vCOps server (without
removing its connection) by specifying its IP address or hostname
on the command line. For example:
Note: A vCOps server for which reporting is disabled
ceases to receive monitoring information regarding IBM storage resources that are in use. You can
resume reporting to a vCOps server by using the enable option (see below).
|
| enable -n <hostname> or enable --hostname <hostname> |
Resume reporting to a vCOps server by specifying
its IP address or hostname on the command line. For example:
|
| list | List all the currently connected (added) vCOps
servers and their operation status (enabled or disabled). For example:
|
| -h or --help |
Display help information that is relevant to sc_vcops_server . You can also display help for the add, remove, enable, or disable argument if it is typed on the command line as well. |
| Argument | Use after sc_vcops_adapter to: |
|---|---|
| array_attach -a <alias> -n <hostname> or array_attach --alias <alias> --hostname <hostname> |
Attach a storage array to a vCOps HTTP POST
adapter (of a vCOps server) by specifying the following parameters
on the command line:
For example:
Note: The storage array must already be added to Spectrum Control,
as explained in CLI – Adding or removing storage arrays.
|
| array_detach -a <alias> -n <hostname> or array_detach --alias <alias> --hostname <hostname> |
Detach a storage array from a vCOps HTTP POST
adapter (of a vCOps server) by specifying the following parameters
on the command line:
For example:
|
| add -s <server> -n <hostname> or add --server <server> --hostname <hostname> |
Add an HTTP POST adapter for a vCOps server
by specifying the following parameters on the command line:
For example:
|
| remove -n <hostname> or remove --hostname <hostname> |
Remove an HTTP POST adapter by specifying its
IP address or hostname on the command line. For example:
|
| report_thresholds -n <hostname> or report_thresholds --hostname <hostname> |
Report the thresholds to a vCOps server by specifying
its IP address or hostname on the command line. For example:
|
| report_thresholds -a or report_thresholds -all |
Report the thresholds to all vCOps servers that
are currently added (connected). Usually, this command can be omitted,
because the thresholds are defined by default, when a vCOps server
is added.
|
| list | List all the currently defined HTTP POST adapters
and display their associated vCOps server, alias name of attached
storage arrays, last report time (report to the vCOps server), and
indication regarding whether the adapter is remote or locally defined. For example:
|
| -h or --help |
Display help information that is relevant to sc_vcops_adapter. You can also display help for the array_attach, array_detach, add, remove, or report_thresholds argument if it is typed on the command line as well. |