Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to intercept the returncode?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm using a scheduler for Oracle AND Unix tasks. Crontab is mostly involved, including 4 sh's for SSA (healthcheck, ela, link_speed, encl_healthcheck).
Two of these returns errors, returncode 5 and 254 in my scheduler.
Starting these scripts on unixprompts, there's no error at all (or does not show them).
How can I make these returncodes visible and/or where can I find the meaning of them???

 
Indeed, 'echo $?' returns 5 (or 254). But what do they mean?
It's about:
/usr/lpp/diagnostics/bin/run_ssa_link_speed (rc = 5)
/usr/lpp/diagnostics/bin/run_ssa_healthcheck (rc = 254)

Exit 0 is just fooling the world.
 
Return codes are defined by the programmer, so they vary by script/prog. That means that zero is not always good, but by convention it means no errors occured. IBM Hardware Support would know, if anyone does.

Take Mark's advice, run `diag` and go into the SSA tools. At least do a link verification to check for bad drives, certify disks if suspect, and check errpt for SSA errors. I used to know how to do all that but time has fuzzied my memory. =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top