updates and use ps- prefix for all
This commit is contained in:
parent
47fda36f93
commit
535ed8d79b
|
@ -3,47 +3,46 @@
|
||||||
#were typed in by hand in the shell prompt.
|
#were typed in by hand in the shell prompt.
|
||||||
|
|
||||||
#find weblogic nodes (-1 means last index in the array)
|
#find weblogic nodes (-1 means last index in the array)
|
||||||
alias wlfind ps State.Name.eq=java,Args.-1.eq=weblogic.Server
|
alias ps-wls ps State.Name.eq=java,Args.-1.eq=weblogic.Server
|
||||||
|
|
||||||
|
|
||||||
#find websphere 4.x nodes
|
#find websphere 4.x nodes
|
||||||
alias ws4find ps State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.ManagedServer
|
alias ps-was4 ps State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.ManagedServer
|
||||||
|
|
||||||
#find websphere admin server
|
#find websphere admin server
|
||||||
alias ws4admin ps State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.AdminServer
|
alias ps-was4adm ps State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.AdminServer
|
||||||
|
|
||||||
#find websphere 5.x nodes
|
#find websphere 5.x nodes
|
||||||
alias ws5find ps State.Name.eq=java,Args.*.eq=com.ibm.ws.runtime.WsServer
|
alias ps-was5 ps State.Name.eq=java,Args.*.eq=com.ibm.ws.runtime.WsServer
|
||||||
|
|
||||||
#find websphere 4.x and 5.x nodes
|
#find websphere 4.x and 5.x nodes
|
||||||
alias wsfind ps State.Name.eq=java,Args.*.eq=com.ibm.ws.bootstrap.WSLauncher
|
alias ps-was ps State.Name.eq=java,Args.*.eq=com.ibm.ws.bootstrap.WSLauncher
|
||||||
|
|
||||||
#find jboss (use .sw=java to match 'java' or 'javaw')
|
#find jboss (use .sw=java to match 'java' or 'javaw')
|
||||||
alias jbfind ps State.Name.sw=java,Args.*.eq=org.jboss.Main
|
alias ps-jboss ps State.Name.sw=java,Args.*.eq=org.jboss.Main
|
||||||
|
|
||||||
#find tomcat
|
#find tomcat
|
||||||
alias tcfind ps State.Name.eq=java,Args.*.eq=org.apache.catalina.startup.Bootstrap
|
alias ps-tomcat ps State.Name.eq=java,Args.*.eq=org.apache.catalina.startup.Bootstrap
|
||||||
|
|
||||||
#find apache parent processes
|
#find apache parent processes
|
||||||
#($1 is the return value of the first query in the string)
|
#($1 is the return value of the first query in the string)
|
||||||
#'Pne' => 'P' flags means parent of matched process
|
#'Pne' => 'P' flags means parent of matched process
|
||||||
#to filter out httpd child processes
|
#to filter out httpd child processes
|
||||||
alias apfind ps State.Name.re=https?d.*|[Aa]pache2?$,State.Name.Pne=$1
|
alias ps-apache ps State.Name.re=https?d.*|[Aa]pache2?$,State.Name.Pne=$1
|
||||||
|
|
||||||
#find ant processes (ant hangs on me sometimes)
|
#find ant processes (ant hangs on me sometimes)
|
||||||
#(* matches any value in the array)
|
#(* matches any value in the array)
|
||||||
alias hant ps State.Name.eq=java,Args.*.eq=org.apache.tools.ant.Main
|
alias ps-ant ps State.Name.eq=java,Args.*.eq=org.apache.tools.ant.Main
|
||||||
|
|
||||||
#my HQ agent
|
#HQ agents
|
||||||
#(user.name is in System.getProperties)
|
alias ps-hqagent ps State.Name.sw=java,Args.-1.eq=org.hyperic.hq.agent.server.AgentDaemon
|
||||||
alias myag ps CredName.User.eq=$user.name,State.Name.sw=java,Args.-1.ew=AgentClient
|
|
||||||
|
|
||||||
#find all java procs except the shell itself
|
#find all java procs except the shell itself
|
||||||
#($$ is the current process id)
|
#($$ is the current process id)
|
||||||
alias java ps State.Name.eq=java,Pid.Pid.ne=$$
|
alias ps-java ps State.Name.eq=java,Pid.Pid.ne=$$
|
||||||
|
alias java ps-java
|
||||||
|
|
||||||
#find all processes owned by the current user
|
#find all processes owned by the current user
|
||||||
alias myproc ps CredName.User.eq=$user.name
|
alias ps-me ps CredName.User.eq=$user.name
|
||||||
|
|
||||||
#VMware GSX VMs
|
#VMware Server or GSX VMs
|
||||||
alias gsx-vm ps State.Name.eq=vmware-vmx,Args.1.eq=-C
|
alias ps-vmx ps State.Name.eq=vmware-vmx,Args.1.eq=-C
|
||||||
|
|
Loading…
Reference in New Issue