WebSphere Stop service does not need to enter account password

Source: Internet
Author: User
Tags websphere application server

Security-enabled WebSphere application Server, which often needs to enter a user name and password when stopping the service during routine maintenance.
The way to stop is as follows:
[Email protected]/]#/opt/ibm/websphere/appserver/profiles/appsrv01/bin/stopnode.sh-username Wasadmin-password Wisedu123
The operating system's history commands allow you to view specific user names and passwords, because they are written in clear text at execution time and may not be well-qualified in some scenarios.

Because there are two ways to connect: Soap and RMI, the default is SOAP mode

Now give the second option.
[[email protected]/] #export $PROFILE _home=/opt/ibm/websphere/appserver/profiles
[Email protected]/]CD $PROFILE _home/dmgr01/properties
Then first back up the Sas.client.props and soap.client.props these two files
1. Modification of the SOAP method
Modify the Soap.client.props file, approximately on line 26th
[email protected]/]vi Soap.client.props
Com.ibm.soap.loginuserid=
com.ibm.soap.loginpassword=
By default, the value is empty, fill in the user and password that is currently in use,
Com.ibm.soap.loginuserid=wasadmin
Com.ibm.soap.loginpassword=wisedu123
After you modify it, save the file.
Then execute:
[[email protected]/] $PROFILE _home/dmgr01/bin/./propfilepasswordencoder.sh/opt/ibm/websphere/appserver/ Profiles/dmgr01/properties/soap.client.props Com.ibm.SOAP.loginPassword
Note:all specified passwords already encoded in target file = =/opt/ibm/websphere/appserver/profiles/appsrv01/bin/. /properties/soap.client.props
After successful execution, open the Soap.client.props file to see that the password is encrypted, as follows
[Email protected] properties]# more Soap.client.props
#Tue Nov 14:46:23 CST 2013
Com.ibm.ssl.alias=defaultsslsettings
Com.ibm.soap.loginsource=prompt
com.ibm.soap.loginpassword={xor}jtaqmjaznjfsbw\=\=
com.ibm.soap.requesttimeout=180
com.ibm.soap.loginuserid=01110033
Com.ibm.soap.securityenabled=false

Then stop the was service to stop directly with the following command, no need to enter the user name and password.

[Email protected] ~]#/opt/ibm/websphere/appserver/profiles/dmgr01/bin/stopmanager.sh

"Note": Similarly, to modify its AppSrv01 configuration file, the save takes effect.

-------------------------EOF-------------------------

WebSphere Stop service does not need to enter account password

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.