1833824 Members
2524 Online
110063 Solutions
New Discussion

return value of frecover

 
SOLVED
Go to solution
AYMA
Advisor

return value of frecover

Hi,
what are the return values of frecover ?
The man of fbackup gives the return values but nothing in the frecover man.....
I have tried different scenarios and I have obtained only 0 (success) or 1 (problem) for frecover.
Are other return values existing ?

Best regards
8 REPLIES 8
Yogeeraj_1
Honored Contributor

Re: return value of frecover

hi,

0 upon normal completion,

1 if it is interrupted but allowed to save its state for possible restart

2 if any error conditions prevent the session from completing.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
AYMA
Advisor

Re: return value of frecover

Thanks for your response,
I'am not sure for the return value 2.
I have tried this scenario.
During the frecover command (frecover -r -f /path/backup_file -v), I erase the backup file ( > /path/backup_file) for simulating a DLT or disk problem. The frecover exits with this message :
frecover(2104): zero length read from disk file. Frecover exiting

But the exit code is 1 and not 2.
Why not 2 ?
AYMA
Advisor

Re: return value of frecover

No ideas ?

Regards
Peter Godron
Honored Contributor

Re: return value of frecover

Ayma,
the full list of errors seems to be accessable via:
dumpmsg /usr/lib/nls/C/fbackup.cat | more
Peter Godron
Honored Contributor

Re: return value of frecover

Ayma,
sorry, previous message was fbackup error.
Frecover at:
dumpmsg /usr/lib/nls/C/frecover.cat | more
AYMA
Advisor

Re: return value of frecover

Hi,
Thanks for your response.
No problem for fbackup.cat instead of frecover.cat.
In fact, this command (i don't know it) gives the error code but I just want to know the RETURN VALUES or exit code obtained with echo $? (like in the frecover man with 4 values)
yogeeraj says :
"0 upon normal completion,
1 if it is interrupted but allowed to save its state for possible restart
2 if any error conditions prevent the session from completing."

But I never have the 2 value during my check, only 0 for success and 1 for problem.
Peter Godron
Honored Contributor
Solution

Re: return value of frecover

Ayma,
man frecover does not list any return codes. So I would say there is no list.

fbackup and frecover have been around from the days of 1Gb file system limits and have 'organically grown' i.e. without full documentation.

As you said, you have only found 0(success) or 1(problem), as have I.

So those are the return values you can code for.
If you want to be more specific with error identification, my previous answer should give you enough error codes to go with.
AYMA
Advisor

Re: return value of frecover

Thanks Peter.

I agree with you and I close the thread.

Best regards