CLI – Managing integration with vRealize Operations Manager

Before you can use the IBM® Storage Management Pack for VMware vRealize Operations Manager, you must set a connection to at least one vRealize Operations Manager (vROps) server, and then define which storage systems should be monitored in vROps.

After a vROps server connection is defined and storage systems (referred to as arrays in the command syntax and output) are associated with the vROps server, detailed monitoring information for these storage systems becomes available in vROps (for more information, see Using the IBM Storage Management Pack for VMware vRealize Operations Manager).

Use the sc_vrops_server CLI command to add, remove, or disable connections to vROps servers, or to list the current server connections. An HTTP POST adapter is automatically created for each vROps server that you add.

Use the sc_vrops_adapter command to attach storage systems to any created HTTP POST adapter. A storage system that is attached to an HTTP POST adapter can be monitored by the vROps server for which the HTTP POST adapter was created. You can use the sc_vrops_adapter command for additional options as described below.

Use the required argument after each command, as specified in the following tables.

Table 1. Arguments for sc_vrops_server
Argument Use after sc_vrops_server to:
add -n <hostname> -u <username> -p <password>

or

add --hostname <hostname> --username <username> --password <password>

Add a vROps server connection by specifying the following parameters on the command line:
  • IP address or hostname of the vROps server that you want to add (connect to).
  • Username for accessing the vROps server.
  • Password for accessing the vROps server.
For example:
sc_vrops_server add -n vrops1.domain -u john1 -p ********
Note: The local HTTP POST adapter is added automatically after the vROps server is added.
remove -n <hostname>

or

remove --hostname <hostname>

Remove a vROps server connection by specifying its IP address or hostname on the command line.
For example:
sc_vrops_server remove -n vrops1.domain
Note: A removed vROps server ceases to receive monitoring information regarding IBM storage resources that are in use. You can add a vROps server back by using the add option (see above).
disable -n <hostname>

or

disable --hostname <hostname>

Disable reporting to a vROps server (without removing its connection) by specifying its IP address or hostname on the command line.
For example:
sc_vrops_server disable -n vrops1.domain
Note: A vROps 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 vROps server by using the enable option (see below).
enable -n <hostname>

or

enable --hostname <hostname>

Resume reporting to a vROps server by specifying its IP address or hostname on the command line.
For example:
sc_vrops_server enable -n vrops1.domain
list List all the currently connected (added) vROps servers and their operation status (enabled or disabled).
For example:
sc_vrops_server list

vROps Hostname   Status
---------------  -------
vrops1.domain    Enabled
vrops2.domain    Disabled
-h

or --help

Display help information that is relevant to sc_vrops_server .

You can also display help for the add, remove, enable, or disable argument if it is typed on the command line as well.

Table 2. Arguments for sc_vrops_adapter
Argument Use after sc_vrops_adapter to:
array_attach -a <alias> -n <hostname>

or

array_attach --alias <alias> --hostname <hostname>

Attach a storage system to a vROps HTTP POST adapter (of a vROps server) by specifying the following parameters on the command line:
  • Alias name of the storage system that you want to attach.
  • IP address or hostname of the storage system that you want to attach.
For example:
sc_vrops_adapter array_attach -a myXIV -n 9.150.200.100
Note: The storage system must already be added to Spectrum Control Base, as explained in CLI – Managing storage systems.
array_detach -a <alias> -n <hostname>

or

array_detach --alias <alias> --hostname <hostname>

Detach a storage system from a vROps HTTP POST adapter (of a vROps server) by specifying the following parameters on the command line:
  • Alias name of the storage system that you want to detach.
  • IP address or hostname of the storage system that you want to detach.
For example:
sc_vrops_adapter array_detach -a myXIV -n 9.150.200.100
add -s <server> -n <hostname>

or

add --server <server> --hostname <hostname>

Add an HTTP POST adapter for a vROps server by specifying the following parameters on the command line:
  • IP address or hostname of a currently added (connected) vROps server.
  • IP address or hostname of the HTTP POST adapter that you want to add.
For example:
sc_vrops_adapter add -s vrops1.domain -n adapter2.domain
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:
sc_vrops_adapter remove -n adapter2.domain
report_thresholds -n <hostname>

or

report_thresholds --hostname <hostname>

Report the thresholds to a vROps server by specifying its IP address or hostname on the command line.
For example:
sc_vrops_adapter report_thresholds -n vrops1.domain
report_thresholds -a

or

report_thresholds -all

Report the thresholds to all vROps servers that are currently added (connected). Usually, this command can be omitted, because the thresholds are defined by default, when a vROps server is added.
sc_vrops_adapter report_thresholds -a
list List all the currently defined HTTP POST adapters and display their associated vROps server, alias name of attached storage systems, last report time (report to the vROps server), and indication regarding whether the adapter is remote or locally defined.
For example:
sc_vrops_adapter list

vROps Hostname  HTTP POST Hostname  Remote  Last Reported  Array alias
--------------  ------------------  ------  -------------  -----------
vrops1.domain   adapter1.domain     No      5 minutes ago  myXIV
vrops2.domain   adapter2.domain     Yes     8 minutes ago  myXIV
-h

or --help

Display help information that is relevant to sc_vrops_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.