As i am writing a few scripts to automate fs_copy processes, i need to know where i could find exit codes for different celerra commands. I have seen situations when my scripts happen to issue commands at the same time and i get this error message: "Error 2201: unable to acquire lock(s), try later". I need to be able to process these exit codes and either repeat my commands or do something else. I would rather use exit codes than just simply greping for particular strings in the error message. I have not been able to capture the exit code with "echo $?". I have looked at a couple of manuals but can't find anything.
Please check the "Celerra Network Server Error Message Guide" for most common errors - it must be available on Powerlink or on the Celerra Documentation CD. Refer to the "Command Line Interface Errors" section for all CLI errors.
[nasadmin@cs0 copyscripts]$ fs_ckpt fs62 -list
id ckpt_name creation_time inuse full(mark) used
1273 fs62_ckpt 08/14/2007-01:00:10-EDT y 90% 2%
1282 fs62_incr 08/15/2007-01:00:08-EDT y 90% 2%
[nasadmin@cs0 copyscripts]$ echo $?
0
[nasadmin@cs0 copyscripts]$ fs_ckpt fs888 -list
Error 2211: fs888 : invalid id specified
[nasadmin@cs0 copyscripts]$ echo $?
2
[nasadmin@cs0 copyscripts]$
in this example first i run fs_ckpt command agains file system fs62. This file system exists and has check points associated with it. Now then i run fs_ckpt against a file system that does NOT exist. I get an error message, but i also get a exit code (return code) of 2. I need to know these exit codes and what they mean.
My TC had to open a feature request with engineering as currently these are not documented. I am surprised that these are not documented for an enterprise platform like Celerra ..or is it enterprise ?
There is this white paper that describes how to use Celerra and Oracle 10G while utilizing snapsure and fscopy. Scripts provided in the paper have no error checking at all ...i guess they always complete successfully.
I tried to find these myself before but failed. I also think, that the exit codes are not always set "wise". For example a getreason gives you always a 255, which is unusual. I suggested to put the status of each control station/datamover into a bitmap and return that as an exit code...
The only thing seems to be to try it out and write it down.
I am curious, if we get a more helpful answer here.
dynamox
11 Legend
•
20419 Posts
•
87439 Points
509
0
Posted August 14th, 2007 10:00