Modifying MAGS Return Codes
By default, MAGS return codes are the same as propagated by the Storage Protect Client and the return code for the complete job will always be the highest RC of all started backup jobs. However, there are cases in which some warnings are expected to happen and can be ignored. To tackle this, add the following line to your MAGS configuration file:
ReplaceRC=<OriginalRC>/<NewRC>,<OriginalRC>/<NewRC>...
…where OriginalRC
can be any return code from dsmc, and NewRC
is what you want to replace it with.
If there is more than one rc you want to replace, use ,
as a separator.
Example:
ReplaceRC=4/0
…this will replace all return codes 4
issued by dsmc and replace them with 0
. So, if no other return codes than 4
and 0
are returned by dsmc, MAGS will end with an RC of 0
.