Sunday 8 April 2018

creating dmgr profile using silent mode



creating dmgr Profile

/tmp$ cat > dmgr_creation_response_File_txt
create
profileName=qat_dm
templatePath=/data/was855_qat/WebSphere/AppServer/profileTemplates/management
profilePath=/data/was855_qat/WebSphere/qat_dm
nodeName=node0151_qat_dm
dmgrHost=dmgrhost0150.machine.group
cellName=qat_cell
enableAdminSecurity=true
startingPort=30001
adminUserName=wasadm
adminPassword=wasadm
cellID=qat
omitAction=defaultAppDeployAndConfig



bin$ ./manageprofiles.sh -response /tmp/dmgr_creation_response_File_txt

if Appserver Got Deleted then restoring it

if Appserver gor deleted accidentally then

copy some Appserver directory to deleted Appserver location

then check

$   grep cell_name setupCmdLine.sh 

$ perl -p -i -e  's/oldcellname/newcellname/g'  setupCmdLine.sh



now after running above command it will replace all copied cell name with deleted cell name.
 here old cell name is copied other cell name  and new cell name is deleted cell name.


now check again check with below you will get all cell name with deleted cell name

$   grep cell_name setupCmdLine.sh 


Note: Ensure Perl is available on server before going for above



Generating Session cookie with TimeStamp

Application servers > server_name. Under Web Container Settings, click Web container transport chains > chain_name > HTTP Inbound Channel > Custom Properties > New

v0CookieDateRFC1123compat = true

Note: v0CookieDateRFC1123compat = false     by default.

By default, the value for the V0 Set-Cookie header Expires attribute is specified in the two digit year format. Set the v0CookieDateRFC1123compat property to true if you need to use the older RFC1123, which requires a four digit year format value for the V0 Set-Cookie Expires attribute.