I don't think that there's a way to register a system through the command line at this point.
You do need to be registered to use smpatch. It uses information that is generated by the registration process to authenticate with Sun's servers and retrieve patches and the relevant metadata.
Frederic Jean