2004-07-23 08:36:35 +08:00
|
|
|
#this file is loaded by the sigar shell.
|
|
|
|
#commands in this file are run just as they would be if they
|
|
|
|
#were typed in by hand in the shell prompt.
|
|
|
|
|
2004-07-24 03:52:26 +08:00
|
|
|
#find weblogic nodes (-1 means last index in the array)
|
2004-07-23 08:36:35 +08:00
|
|
|
alias wlfind ptql State.Name.eq=java,Args.-1.eq=weblogic.Server
|
|
|
|
|
2004-08-05 03:26:35 +08:00
|
|
|
|
|
|
|
#find websphere 4.x nodes
|
|
|
|
alias ws4find ptql State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.ManagedServer
|
|
|
|
|
|
|
|
#find websphere admin server
|
|
|
|
alias ws4admin ptql State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.AdminServer
|
|
|
|
|
|
|
|
#find websphere 5.x nodes
|
|
|
|
alias ws5find ptql State.Name.eq=java,Args.*.eq=com.ibm.ws.runtime.WsServer
|
|
|
|
|
|
|
|
#find websphere 4.x and 5.x nodes
|
|
|
|
alias wsfind ptql State.Name.eq=java,Args.*.eq=com.ibm.ws.bootstrap.WSLauncher
|
2004-08-04 13:22:33 +08:00
|
|
|
|
2004-07-23 08:36:35 +08:00
|
|
|
#find jboss
|
2004-07-30 22:58:01 +08:00
|
|
|
alias jbfind ptql State.Name.eq=java,Args.*.eq=org.jboss.Main
|
2004-07-23 08:36:35 +08:00
|
|
|
|
2004-08-01 08:54:17 +08:00
|
|
|
#find tomcat
|
|
|
|
alias tcfind ptql State.Name.eq=java,Args.*.eq=org.apache.catalina.startup.Bootstrap
|
|
|
|
|
2004-08-04 05:28:14 +08:00
|
|
|
#find apache parent processes
|
2004-07-24 03:52:26 +08:00
|
|
|
#($1 is the return value of the first query in the string)
|
2004-08-04 05:28:14 +08:00
|
|
|
#'Pne' => 'P' flags means parent of matched process
|
|
|
|
#to filter out httpd child processes
|
|
|
|
alias apfind ptql State.Name.re=^(https?d.*|[Aa]pache)$,State.Name.Pne=$1
|
2004-07-23 08:36:35 +08:00
|
|
|
|
|
|
|
#find ant processes (ant hangs on me sometimes)
|
2004-07-24 03:52:26 +08:00
|
|
|
#(* matches any value in the array)
|
2004-07-23 08:36:35 +08:00
|
|
|
alias hant ptql State.Name.eq=java,Args.*.eq=org.apache.tools.ant.Main
|
|
|
|
|
|
|
|
#my HQ agent
|
2004-07-24 03:52:26 +08:00
|
|
|
#(user.name is in System.getProperties)
|
2004-07-23 08:36:35 +08:00
|
|
|
alias myag ptql CredName.User.eq=$user.name,State.Name.eq=java,Args.-1.ew=SpiderAgent
|
|
|
|
|
|
|
|
#find all java procs except the shell itself
|
2004-07-24 03:52:26 +08:00
|
|
|
#($$ is the current process id)
|
2004-07-23 08:36:35 +08:00
|
|
|
alias java ptql State.Name.eq=java,Pid.Pid.ne=$$
|
2004-07-24 08:29:56 +08:00
|
|
|
|
|
|
|
#find all processes owned by the current user
|
|
|
|
alias myproc ptql CredName.User.eq=$user.name
|
2005-03-05 08:10:34 +08:00
|
|
|
|
|
|
|
#VMware GSX VMs
|
2005-03-10 08:47:50 +08:00
|
|
|
alias gsx-vm ptql State.Name.eq=vmware-vmx,Args.1.eq=-C
|