UNSOLVED

dynamox

updated

19 years ago

D

dynamox

11 Legend

•

20419 Posts

•

87439 Points

0

2051

August 14th, 2007 06:00

Exit codes for Celerra commands

Folks,

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.

Thanks
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    509

    0

    Posted August 14th, 2007 10:00

    they just have descriptions of errors ..i don't see any exit codes.
  • nandas

    6 Operator

    •

    1473 Posts

    509

    0

    Posted August 14th, 2007 10:00

    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.

    Thanks,
    Sandip
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    509

    0

    Posted August 15th, 2007 13:00

    here is an example what i am after.

    [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.
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    509

    0

    Posted August 15th, 2007 13:00

    i need exit codes ..not error codes.
  • amol2

    15 Posts

    509

    0

    Posted August 15th, 2007 13:00

    Sandeep is right. You will get all the error codes in "celerra error code manual".
    e.g. error code 2201- look on page # 2-199
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    509

    0

    Posted September 4th, 2007 06:00

    Tom,

    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.
  • TomL

    6 Posts

    509

    0

    Posted September 4th, 2007 06:00

    Hi,

    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 September 6th, 2007 06:00

    i wish it was only fs_copy that did not have codes documented ...none of the command line tools on Celerra have exit codes documented.
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    509

    0

    Posted September 6th, 2007 06:00

    Dont forget that fs_copy wasnt built to be used by customers.

    It was mainly designed to create a baseline copy for Celerra Replicator used by EMC GUI and scripts.

    You are always welcome to open a Product Enhancement Request - available right here on Powerlink