register_storage
Registers a storage registered in Enterprise Manager.
Format
Standard Mode
emcli register_storage -storage_name="<storage name>" -vendor="<NetApp|Sun ZFS|Solaris ZFS|EMC>" [-protocol="<http|https>"] [-smis_url="http://host-name:port"] -storage_cred="<credential_name>" [-aliases="<alias1;alias2;alias3;...>"] [-storage_agents="<host1:cred1;host2:cred2;...>"] [-frequency="<Minutes:40|Hours:3|Days:2|Weeks:3>"]
Interactive or Script Mode
register_storage( storage_name="<storage name>" ,vendor="<NetApp|Sun ZFS|Solaris ZFS|EMC>" [,protocol="<http|https>"] [,smis_url="http://host-name:port"] ,storage_cred="<credential_name>" [,aliases="<alias1;alias2;alias3;...>"] [,storage_agents="<host1:cred1;host2:cred2;...>"] [,frequency="<Minutes:40|Hours:3|Days:2|Weeks:3>"] ) [ ] indicates that the parameter is optional.
Options
-
storage_name
Name of the storage.
-
vendor
Vendor of the storage hardware.
-
protocol
Protocol to be used to communicate with the storage hardware. Input required only for NetApp storage.
-
smis_url
The URL to be used to communicate with the EMC storage hardware. Input required only for EMC storage.
-
storage_cred
Credential to be used to communicate with the storage hardware. This has to be owned by the user.
-
aliases
The interfaces and aliases of the storage that will be used to mount the volumes on host in the aliases section. This should include fully qualified domain name, IP address, DNS alias or any other name that points to storage data interface.
-
storage_agents
The hosts that can be used to perform operations on this storage device.
-
frequency
The frequency at which the storage synchronize job should be run.
Exit Codes
0 if successful. A non-zero value indicates that verb processing was unsuccessful.
Examples
Example 1
The following command registers a Sun ZFS storage server:
emcli register_storage -storage_name="sunzfs1" -vendor="Sun ZFS" -storage_cred="sunzfs1_cred" -aliases="sunzfs1.example.com;sunzfs1_eg" -storage_agents="host1:cred1;host2:cred2" -frequency="Hours:3"
Example 2
The following command registers a NetApp storage server:
emcli register_storage -storage_name="napstr1" -vendor="NetApp" -protocol="https" -storage_cred="napstr1_cred" -aliases="netapp1.example.com;netapp1" -storage_agents="host1:cred1;host2:cred2" -frequency="Minutes:40"