Example: Security and the command line tools
If you want to enable WebSphere® Application Server security, you need to provide the command line tools with authentication information.
Without authentication information, the command line tools receive an AccessDenied exception when you attempt to use them with security enabled. There are multiple ways to provide authentication data:
- Most command line tools support a -username and -password option
for providing basic authentication data. Specify the user ID and password
for an administrative user. For example, you can use a member of the
administrative console users with operator or administrator privileges,
or the administrative user ID configured in the user registry. The
following example demonstrates the stopNode command,
which specifies command line parameters:
stopNode -username adminuser -password adminpw
- You can place the authentication data in a properties file that the command line tools read. The default file for this data is the sas.client.props file in the properties directory for the current profile.