HPE XP P9000 User Manual page 98

Remote web console
Table of Contents

Advertisement

IF EXIST %TARGETFOLDER%\Report_%REPORT_NAME%.tgz (
IF EXIST %REPORTFOLDER%\Report_%REPORT_NAME%_2.tgz (
%REPORTFOLDER%\Report_%REPORT_NAME%_3.tgz
)
IF EXIST %REPORTFOLDER%\Report_%REPORT_NAME%_1.tgz (
%REPORTFOLDER%\Report_%REPORT_NAME%_2.tgz
)
IF EXIST %TARGETFOLDER%\Report_%REPORT_NAME%.tgz (
%REPORTFOLDER%\Report_%REPORT_NAME%_1.tgz
)
GOTO :END
EXIT /B
:SLEEP
REM ####################################### SLEEP with %TIMEOUT%
ping 127.0.0.1 -n %TIMEOUT% > NUL
EXIT /B
:ABEND
REM ####################################### ABEND
ECHO "Download Report Script was ABEND"
:END
REM ####################################### Logout
%RAIDINF_PATH%\raidinf -logout -servername %SERVER%
Executing a regularly scheduled script file
To execute the created script file on a regular basis, register it as a scheduled task in Windows.
The following procedure uses the Windows schtasks command to register the script files created in the
example shown in Preparing a script file on page 95 as tasks of Windows.
Registration example
Create a configuration report at 21:00 every day (CreateReport.bat).
Download a configuration report at 22:00 every day (DownloadReport.bat).
Operation procedure:
1. Store the two script files in the C:\Reports folder.
C:\Reports
CreateReport.bat
DownloadReport.bat
2. Run the Windows schtasks command to register the two script files as a task of Windows.
Make sure that the <Username for Windows> parameter of this command is a user who has write
permissions to the following two folders.
C:\Reports folder.
The log folder in the installation folder of the Report Configuration Tool.
schtasks /create /tn CreateReport /tr "C:\Reports\CreateReport.bat" /sc
DAILY /st. 21:00:00 /ru <Username for Windows> /rp <Password for Windows>
98
Viewing and managing the storage system
COPY %REPORTFOLDER%\Report_%REPORT_NAME%_2.tgz ^
COPY %REPORTFOLDER%\Report_%REPORT_NAME%_1.tgz ^
COPY %TARGETFOLDER%\Report_%REPORT_NAME%.tgz ^
DEL %TARGETFOLDER%\Report_%REPORT_NAME%.tgz
)

Advertisement

Table of Contents
loading

Table of Contents