raidinf get relocationloginfo

The raidinf get relocationloginfo command is used to list tier relocation logs. The tier relocation logs which are being generated are not listed.

Syntax

raidinf delete relocationlog -servername {<hostname> | <ipaddress>}

Options and parameters

Option

Description

-servername {<hostname> | <ipaddress>}

Specifies the host name or IP address of the SVP.

Examples

The example below shows how to generate a tier relocation log by specifying the tier relocation log name, 160201-400001-RelocationLog.

# raidinf add relocationlog -servername 10.213.74.121 -report
160201-400001-RelocationLog
RelocationLogName 			CreateTime
160201-400001-RelocationLog 	2016/02/01-12:43:10

The following items are output:

  • RelocationLogName

    The tier relocation log name is displayed.

  • CreateTime

    The time when the log was generated is displayed.

The example below shows the script for checking if the tier relocation log was created by using the raidinf get relocationloginfo command. In this example, if the creation of the tier relocation log was completed successfully, the tier relocation log is downloaded.

REM
REM Create Completed Relocation Log
Script(CreateCompletedRelocationLog.bat)
REM
SET SERVER= <hostname-or-IP-address-of-SVP>
SET LOG_NAME=DailyRelocationLog
raidinf get relocationloginfo -servername %SERVER% | find "%LOG_NAME%"
>NUL
if not ERRORLEVEL 1 raidinf download relocationlog -servername %SERVER% -targetfolder C:\tmp -logname "%LOG_NAME%"