Viewing Exit Codes for Backup Script Operations
When you automate running the apigatewayUtil script, the script returns an exit code to indicate the process status. The following table lists the possible exit codes:
Exit codes | Description |
0 | Command execution successful. |
1 | Command execution failed due to some internal error. |
8 | Backup process in progress |
9 | Status of the backup process is failed. |
10 | Status of the backup process is success. |
11 | Backup file not found. |
12 | Specified backup files are successfully deleted. |
13 | Unable to delete the specified backup files. |
14 | Unable to roll over indexes. |
To view the exit codes in command prompt 1. Run the following command immediately after running the apigatewayUtil script with any command:
echo %ERRORLEVEL%
For example,
C:\SoftwareAG_1011\IntegrationServer\instances\default\packages\WmAPIGateway\cli\bin>
apigatewayUtil.bat create backup -name backup-apis
Initiated backup process for backup-apis
C:\SoftwareAG_1011\IntegrationServer\instances\default\packages\WmAPIGateway\cli\bin>echo %ERRORLEVEL%
0