This content has been marked as final. Show 4 replies
Use the asadmin login command.
Hope that helps!
Thanks. It's the right way, but the password in the /.asadminpass file is in encrypted. How can I write my password into this file. I only know the plain text of password, how can I find out the encrypted form of this plain text?
Thanks very much!
Don't try to use the adminpass file directly.
Use the <install-dir>/bin/asadmin login command. After you do that, you will not have to provide username or admin password when you run your asadmin commands
Chinmayee is correct.
There are several ways to make you not prompt for the admin password on admin commands. I suggest the best one below:
- Create a file named admin.password.
- Secure this file on your platform. e.g. On Solaris you can do chmod 600 admin.password
- asadmin <any-command> --passwordfile <path to admin.password>
The asadmin login functionality also works, but that needs server to be running and it is supported on AS 9.0 onwards.