set
Description
The set subcommand starts or ends monitoring the storage system (for example, starts or ends collecting performance statistics). The set subcommand also specifies the sampling interval (interval of collecting statistics).
If you want to use the set subcommand, you must use the login subcommand (see login to log on to the storage system. Ensure that the set subcommand runs immediately before Export Tool finishes.
Executing the set subcommand generates an error in the following conditions:
Some other user is logged into the SVP in Modify mode.
Maintenance operations are being performed on the SVP.
If an error occurs, do the following:
Check Device Manager - Storage Navigator and confirm that all users who are logged into the storage system are not in Modify mode. If any user is logged into the SVP in Modify mode, ask the user to switch to View mode.
Wait until maintenance operations finish on the SVP, so that the set subcommand can run.
Following are notes of the set command.
Batch files can include script that should run when an error occurs. For information about writing such a script in your batch file, see Notes in Using Export Tool.
When the set subcommand starts or ends the monitoring or changes the sampling interval after the Monitor Performance window is started, the contents displayed in the Monitor Performance window does not change automatically in conjunction with the set subcommand operation. To display the current monitoring status in the Monitor Performance window, click on the menu bar of the Device Manager - Storage Navigator main window.
If you change the specified sampling interval during a monitoring, the previously collected monitoring data will be deleted.
Syntax
set [switch={m|off}]
Operands
|
Operand |
Description |
|---|---|
|
switch={m|off} |
To start monitoring, specify the sampling interval (interval of collecting statistics) of monitoring data at m. Specify a value between 1 and 15 in minutes. m is the sampling interval by Performance Monitor. To end monitoring, specify off. If this operand is omitted, the set subcommand does not make settings for starting or ending monitoring. |
Examples
The following command file saves port statistics and then ends monitoring ports:
ip 158.214.135.57 dkcsn 123456 login expusr passwd show group Port range 200604010850:200604010910 apply set switch=off
The following command file starts monitoring remote copy operations. The sampling time interval is 10 minutes:
ip 158.214.135.57 dkcsn 123456 login expusr passwd set switch=10