A successfully executed command outputs an errorlevel of '0'. Any other errorlevel means that it didn't execute correctly and, if the executable has the code for it, gives you a specific error which means something. The errorlevel can be seen by executing the following command immediately after executing the command you wish to see the errorlevel for:
Unfortunately I can't seem to find any documentation regarding the errorlevel for ndsd and ndsrepair, so I'm hoping to get some input from everyone else out there.
I need the output of either "/etc/init.d/ndsd status" or any "ndsrepair" execution other than a successful one. With that I also need to errorlevel as output by the abovementioned command. The kind of output I'm looking for is something like this:
fs1:~ # /etc/init.d/ndsd status
Failed to obtain a Novell eDirectory Server connection to fs1.OU=Services.O=Corp.CORP_TREE or Novell eDirectory Server is not running
fs1:~ # echo $?
In the above case I had deliberately stopped ndsd. I need examples of a server with eDirectory in a DEFUNCT state or any other state.
Please submit them by sending me a message in the CoolSolutions Communities or commenting on this blog post.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.