Operating System - HP-UX
1846619 Members
1616 Online
110256 Solutions
New Discussion

Re: sam backup ; exit code=3 and exit code=4

 
Scott_20
Occasional Advisor

sam backup ; exit code=3 and exit code=4

Does anyone know what these exit codes mean? I'm also trying to search on web.
thanks
I'm ok
4 REPLIES 4
Kent Ostby
Honored Contributor

Re: sam backup ; exit code=3 and exit code=4

exit code 4 just indicates that an error or warning occurred.

Still looking for exit code 3

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Darren Prior
Honored Contributor

Re: sam backup ; exit code=3 and exit code=4

Hi,

These exit codes are the ones returned from fbackup - which are documented in the man page, but there's no mention of exit code 3.

Have you any errors reported by fbackup when you've seen exit code 3? If so, it would be useful to see them.

regards,

Darren.
Calm down. It's only ones and zeros...
Bernhard Mueller
Honored Contributor

Re: sam backup ; exit code=3 and exit code=4

Hi,

think I remember exit code 4 from fbackup was normal if you used a new tape which does not yet have an fbackup header.

Regards,
Bernhard
Chris Wilshaw
Honored Contributor

Re: sam backup ; exit code=3 and exit code=4

Using

dumpmsg /usr/lib/nls/C/fbackup.cat, the following code 3's are listed

3 fbackup(1003): out of virtual memory\n
3 fbackup(2003): WARNING: reader %d: unable to lseek file %s\n
3 fbackup(3003): normal EOT\n
3 fbackup(4003): semaphore op failed: op=%d\n

Based on experience, I'd guess that the EOT (end of tape) is the most likely cause. If a non-interactive backup encounters this, it may report something like "unable to open terminal to request more media" to the log. If it was run from a user session, they'd be prompted to change the tape.