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 dead fs1:~ # echo $? 1
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 NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment. It just worked for at least one person, and perhaps it will be useful for you too. Be sure to test in a non-production environment.