The short answer: sshd returns whatever rshd returns.
Since I don't have ssh installed on any of my filers, could
someone just tell me if this is a "yes" or "no" answer? :) I don't even know if filer commands have a concept of "exit codes" (I assume they do, given the UNIX-ness of the command environment).
There is no concept of a command exit code in a currently shipping release. Rsh returns based on the success of the rsh call itself. We are considering moving toward making the return result of the last executed command be available via a special "result" command or something like that, but most commands don't currently return anything.
Alan
=============================================================== Alan G. Yoder agy@netapp.com ===============================================================