Monday, 13 October 2014

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

No comments:

Post a Comment