2011-07-07 11:58 AM
Are there any script examples using ssh from a unix ( aix ) server to run the useradmin command on multiple FAS250's running OnTAP 184.108.40.206?
I've cobbled together something using SSH and Expect, but it appears that OnTAP is only seeing the first two command I pass and truncating the rest.
If I simply run ssh from a prompt, I get an error
root@myserver:>ssh firstname.lastname@example.org useradmin user add jsmith -g administrators
Could not add user <jsmith>. Error: Invalid parameter
2011-07-07 01:15 PM
try putting the password in the command after -g administrators... It doesn't work interactive, but if I remember correctly, you can specify the password non-interactive on the same line. There is also a way to export the registry and import and import/commit the useradmin entries but that would be at your own risk and not officially supported.
2011-07-08 06:57 AM
Keep in mind that SSH key exchange with AD based accounts is not supported. So if you login as domain\\user or user@domain, key exchange will fail. The account that you use has to be an actual local account on the filer, if you are not using AD groups, then ignore this post!