Monday, 13 October 2014

Response File in Linux

-OPT silentInstallLicenseAcceptance="true" -OPT disableOSPrereqChecking="true" -OPT disableNonBlockingPrereqChecking="true" -OPT installType="installNew" -OPT profileType="cell" -OPT PROF_isDefault="true" -OPT feature="noFeature" -OPT installLocation="/opt/IBM/WebSphere/AppServer" -OPT PROF_enableAdminSecurity="true" -OPT PROF_adminUserName=wasadmin -OPT PROF_adminPassword=wasadmin -OPT PROF_hostName=localhost.localdomain -OPT PROF_defaultPorts="true" -OPT PROF_dmgrProfileName="Dmgr01" -OPT PROF_nodeName="DmgrNode" -OPT PROF_appServerProfileName="AppSrv01" -OPT PROF_appServerNodeName="AppServerNode" -OPT PROF_cellName="Cell01" -OPT traceLevel=INFO


check if os is blocking the will non root=false

Self Signed Certificate renewal video

Why nodeagent can't be started from Dmgr?


The dmgr uses the nodeagent process to execute commands on a remote machine. In theory, an alternative would be to use ssh to execute remote commands, but WebSphere Application Server does not use SSH because it would add too much extra complexity (SSH keys, OS user ID management, not easily supported on all platforms supported by WebSphere, etc.). Consequently, when the nodeagent is down, there is no way for the dmgr to execute a startNode.sh/.bat command on the remote machine to start it. In theory, the dmgr could execute the command itself if the node is on the same machine, but IBM doesn't recommend putting the dmgr and other nodes on the same machine anyway, so there's no reason to add that capability
In distributed server configurations, each node has a node agent that works with
the deployment manager to manage administration processes. A node agent is created automatically when you add (federate) a stand-alone node to a cell.

To add few more points, if you understand how any application server works then you will understand why the nodeagent in WAS or node manager in WLS cannot be should not be started remotly. Basically they are admin agents so if you allow to start them using a remote script then that itself a big security hole. So triggering them remotely using any any script is not possible. To start or any activity to happen in a remote server you need a process to listen in HTTP or any communication protocol which can authenticate the request and process it. But any of this is not p


Possible when NA or NM is down.

If NA will be down - DMGR wont be able to communicate to that node which in turn take us back to 1st step --- DMGR wont be having any info of that node -> if you dont know whom to contact then how will you give him/her instructions -- thats why we have restart and stop option in DMGR and no start option.

How does the webserver ensures to serve the static content ?


Webserver does not understand on its own :). I'll suggest you read about the plugin to understand it. It's very well explained there.

By a URL a web server does not know if its static asset or to be redirected the app server, its the config in plugin-cfg.xml. Here is a high level flow:

1) Request reached Webserver and is first given to plugin to handle the request.
2) Plugin compares the URL to the Virtual host and corresponding URL mapping in plugin-cfg.xml. If a match is found, it is sent to the app server else given back to the web server to handle.
3) Web server tries to serve such request from the configured DocumentRoot.


Now if you want to server static assets thru web server, make sure your static assets URL are not there in the generated plugin.

you must to set the fileServingEnabled WAR archive property to true or false. If you set false you must to copy all application static content into webserver and configure properly the <virtual host> entry (set folder)

whats the temp, translog or the wstemp log in websphere


- temp: Temporary storage used during operations like ear file deployment and unzip operations, where files can be unpackaged and repackaged during admin operations. 'temp' was actually referring to the <profile>/config/temp directory,
The contents of temp can be deleted while WebSphere is not running.
- tranlog: Logging of application transaction state for rollback purposes (especially for operations like two-phase commit). These logs are inspected during initial startup of an application server to see if any uncommitted in-flight transactions were in process but incomplete, due to something like an unexpected core dump. During startup, WebSphere will try to roll back such transactions. If the appserver is failing to start because of rollback failures, you may have to delete these logs (only the ones for that appserver!)
- wstemp: This is workspace temp storage for admin operations (such as configuration changes made on the admin console) where a user's configuration changes are stored before saving them to the master configuration. You'll notice a directory for each user (including wsadmin for example) under wstemp. The contents of wstemp can be deleted while WebSphere is not running.

What is the difference between two keystore file types .jks and .kdb files ?.

kdb keystores are used by HTTP servers and .jks by application servers.
jks is used for App Server SSl Configuration were as .kdb is used for Webserver SSl Conf
If the keystore is in CMS format(.kdb),then that store acts as a keystore as well as a truststore.

JSSE configurations typically reference a keystore and a truststore. By convention the keystore reference represents a Java keystore object that holds personal certificates and the truststore reference represents a Java keystore object that holds signer certificates. You may have only one store that holds both - personal certificates and signer certificates.

A default keystore and truststore are created by WebSphere Application Server during profile creation. You can also create a new keystore and truststores using the WebSphere administration tools.

Linux/WebsphereApplication Server/MQ/Weblogic/AIX/SunSolaris/Windows Real time commands



Commands
Description
ps -ef
display all current running process
df -sh
disk space of the file System
nohup
This command will execute the process even if logout from the
System.  Syn:nohup cmd.
Telenet  ipaddress.
used to connect to the remote server
netstat -anp
display the ipaddress and port number
tail -f filename
display the updated lines in  file
head -10  filename.
top 10  line  display top 10  lines from a file?   EX: head -10  filename.
more filename
to Open a file with page to page
gzip  filename
guzip filename.gz
Zip and unzip afile.
Ping:
This is used to cheek the connectivity.  Syn:ping Ipaddress
Ftp: Syn: Ftp
Ipaddress.
This is used to transfer the files  in  one  system to another system.
Telnet
This is used to connect the remote servers. ,Syn:telnet ipaddress
tar
tar command is primary archive utility. Syn: tar cmd.
tar -cvf
This is used to create the all files  stored in  one file (or) Backup file
purpose you can use this one. Syntax -cvf file.tar f1 f2 f3 f4.
tar -xvf
This is used to extract the all files  stored in  one file. Syn: tar -xvf
file.tar files.
ls -a.
display hidden a file
ps-aux:
This is used to all the current running process.Syn:ps-aux.
du -S
du -s
It displays include Sub directories.
Syn: du -S.  du -s:   It display include Total directories.
du -a or du -all
It display the space that each file is taking include Sub directories.
du -Sh
It display include current directory space.
du -Sh *
It display all the data in  directories.
du:
This cmd is used to find  disk usage of the file System. Syn: du
df
This command is used to find  disk space of the file System. Syn: df
df -h
This is used to find  disk space of the human Readformat.Syn:df -h.
df -k
This command is used to find  disk space of the Kilobites format
df a
It displays all the data Syn:df -a.
df -i
This cmd is used to find  disk space in  Inodes, I used,  Ifree, Iuse.
topas
cpu utilization
cd
used to change directory
cd..
cd  /
it navigates to old  directory
it navigates to new  directory
ls
list  of all directories
vmstat-used
to display the virtual machine status
prtconf
to display system configuration
su
su bcms a super user or another user ex :su rootex:sudo su -  was
pwd
Finding out the current working director
cp
<sourc><destination>
cp   commands.txt  test.txt Copying Files
Top
It is used find  the cpu usage and memory usage. Syn: Top.

ps -ef | grep java | grep


This command will filter dmgr process in  java

dmgr







IHS:versions                        AIX  /bin/httpd v Solaries/Linux/bin/httpd v Windows
/bin/apache -v
Versioninfo.sh                  Find out Which versions are running  /bin/versionInfo.sh(.bat)




cp  -r dir1/file1 dir2/file2


Copy  the content one directory to another directory.


date                                  To display the current sys date.
cal                                              To display the current month calendar. hostname                           It will display the system or host name.

usr/ucb/ps -auxWw        Which process are running in  Solaris            /
usr/bin/ps -elf                      Which process are running in  AIX
crontab                              It is a job  scheduling tool ,crontab -l (it lists all crontab jobs)crontab
-e (edit  cront jobs), -e   (edit  user's crontab)-l (list user's crontab) ,-r delete user's crontab)-i   (prompt before deleting user's crontab)
cd  ~
cd  ..                                  Go back to home directory, useful if youre lost. 2Go  back one
directory. Useful alias,



cdup                                 Like  c ...”, or use with ncftp.


nohup./startWeblogic.s h &
ps -ef | grep node agent


to execute ascript using nohup(script name=startweblogic.sh)

then check whether the node agent is stopped or not by giving


ps-ef|grep node                To check the node is running or not
./stopNode.sh                      To stop the node agent


nohup ./
startNode.sh&


Start nodeagent Command


ps ef | grep httpd           check the status of web  server


./apachectl k stop
./apachectl k start


Start and to stop the server(Web Server,IBM HTTP Server)


Kill -9 pid                                ps ef | grep waspapp01_aadV2_AS1, was 864440 897080(Kill -9
864440)
tail f SystemOut.log         Check last lines in  system.out.log
./stopManager.sh                Stop  the Deployment manager(in Dmgr bin)
ps -ef | grep dmgr            then check whether the Deployment manager has stopped or not by giving  the command


nohup
./startManager.sh &


Start the Deployment manager



ps ef | grep weblogic      this command will give you what are all the processes running on that box. So when you stop everything needs to be  down and then after start everything needs to be  up.
/usr/sbin/fuser u *         to know exact PID of the corresponding QA.


Ps  ef | grep  java|
grep Admin


How  to find  Particular Domain Path




Pwd <pid>
It will give the info  for adminserver running under which domain.
uname a
It will display the operating system information in  detail
ifconfig
To display ip address of the system
logname
To display current login name.
who
To display  all current  logged in  users details
w
To display detail information about current  logged in  user.
finger
who  or finger both are same but it will give detail information
who  am  i
To display currently logged in  user details [or] one user details.


mv file1  file2
How  to rename a file
grep weblogic sample
How  to search a string in  a file (filename=sample, string=weblogic)?


Scp
This is used to secure copy  the files  in  unix system.
Syn: scp filename root@ipaddress filename.
uname
It will display the operating system version
chown
This command is used to Change Ownername.
Syn: chown Pavana File.
chgrp
This cmd is used to Change Group filename Syn: chgrp Pavana File
find
This cmd is used to searching ths files.Syn:file -/ name Filename
Tracert
It is used to which can show you the path a packet information takes
from your computer to specify .It will list  all the routes it passes through until reaches the destination.Syn:Tracertmediacollege.
Administrator
Commands
Login:  root
Password:*****
1]useradd To create a new  user
#useradd username
Ex:  #useradd neehar
2]passwd- to create a password
#passwd username
#passwd neehar
Enter new  password : pavan123
Retype password : neehar 123
3]userdel- to delete auser
#userdel username
4]groupadd- to create a new  group
#groupadd groupname
5]groupdel- to delete a new  group
#groupdel groupname
6]#init  : to shutdown
7]#init 6 : to restart
WAS
1.    All of the Web  Sphere Application Server (WAS) commands below are located underneath the <PROFILE_ROOT>/bin directory.
2.    All of the IBM HTTP Server (IHS) commands are located underneath the <IHS_ROOT>/bin directory.
Start a server
./startServer.sh <serverName> Stop a server
./stopServer.sh <serverName> -username <userName> -password
<password>





Start a node agent
./startNode.sh
Stop a node agent
./stopNode.sh -username <userName> -password <password> Start the deployment manager
./startManager.sh
Stop the deployment manager
./stopManager.sh -username <userName> -password <password> Obtain server status for all servers on a node
./serverStatus.sh all -username <userName> -password
<password>
Obtain server status for a particular server
./serverStatus.sh <serverName> -username <userName> -password
<password>
Start IBM HTTP Server
./apachectl start
Stop IBM HTTP Server
./apachectl stop
Start IBM HTTP Administration Service (Server)
./adminctl start
Stop IBM HTTP Administration Service (Server)
./adminctl stop
Port name: Value
HTTP_TRANSPORT     9080
HTTP Admin Console Port (HTTP_TRANSPORT_ADMIN)       9060
HTTPS  Transport Port (HTTPS_TRANSPORT)             9443
HTTPS  Admin Console Secure Port (HTTPS_TRANSPORT_ADMIN)
9043
BOOTSTRAP_ADDRESS          2809
SOAP_CONNECTOR_ADDRESS          8880
SAS_SSL_SERVERAUTH_LISTENER_ADDRESS       9401
CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS    9403
CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRES 9402
ORB_LISTENER_ADDRESS   9100
DCS_UNICAST_ADDRESS      9353
SIB_ENDPOINT_ADDRESS     7276
SIB_ENDPOINT_SECURE_ADDRESS             7286
SIB_MQ_ENDPOINT_ADDRESS          5558
SIB_MQ_ENDPOINT_SECURE_ADDRESS     5578
Internal JMS Server (JMSSERVER_SECURITY_PORT)        5557
DRS_CLIENT_ADDRESS
Deprecation: This port is deprecated and is no longer used in the current version of Web  Sphere Application Server.7873
IBM HTTP Server Port 80
IBM HTTP Server Admin Port 8008
NODE_MULTICAST_IPV6_DISCOVERY_ADDRESS 5001
MQ admin
dspmqver :- to display MQ series version
dspmq :- to view all queue managers of MQ series.



crtmqm :- to create a queue manager strmqm :- to start queue manager
runmqsc :- to enter in  to particular queue manager endmqm :- to end a queue manager
dltmqm :- to delete a queue manager dspmqcsv :- to display command server endmqcsv :- to end command server strmqcsv :- to start command server runmqlsr :- to run listener service endmqlsr :- to end listener service
runmqchl :- to run a channel out of queue manager
runmqdlq :- to execute dead letter handle with the help of rule table setmqaut :- to set authorizations for particular objects like queuemanager,queues channels, listeners to user or group dspmqaut :- to display authorization for particular user
dmpmqaut :- to dump authorization for particular user
runmqchi :- to run a channel initiator for particular queue manager runmqtrm :- to rutrigger monitor on initiation  queue for particular queue manager
rcdmqimg :- to take objects (or) record image of a particular queue manager objects
rcrmqobj :- to recreate the mq  objects which are already recorded
Inside QMGR
DEFINE: - To define/create MQ manager objects like  queue, Channels, process, and listener.
ALTER: - to update or modify the existing objects
DISPLAY: - to view all the properties of a particular object or to
Display all objects
DELETE: - to delete created objects
CLEAR:  - to clear the message from the queue
END :- to come out of the queue manager
PING:  - to check whether other side channel / queue manager is ready to accept our request.
START :- to start the particular channel or listener
STOP  :- to stop particular channel or listener
REFRESH :- used to refresh the security every  time after giving  or executing, set mgr  or command  for queue manager or object RESET :- used to reset channel,cluster,queue manager
RESOLVE :- to resolve the channel which is in  in  doubt state SUSPEND :- to suspend a queue manager from a cluster environment

RESUME :- to remove a queue manager from a cluster environment