sigar/bindings/java/.sigar_shellrc

49 lines
1.7 KiB
Plaintext
Raw Normal View History

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)
2007-05-30 08:01:28 +08:00
alias ps-wls ps State.Name.eq=java,Args.-1.eq=weblogic.Server
2004-08-05 03:26:35 +08:00
#find websphere 4.x nodes
2007-05-30 08:01:28 +08:00
alias ps-was4 ps State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.ManagedServer
2004-08-05 03:26:35 +08:00
#find websphere admin server
2007-05-30 08:01:28 +08:00
alias ps-was4adm ps State.Name.eq=java,Args.*.eq=com.ibm.ejs.sm.server.AdminServer
2004-08-05 03:26:35 +08:00
#find websphere 5.x nodes
2007-05-30 08:01:28 +08:00
alias ps-was5 ps State.Name.eq=java,Args.*.eq=com.ibm.ws.runtime.WsServer
2004-08-05 03:26:35 +08:00
#find websphere 4.x and 5.x nodes
2007-05-30 08:01:28 +08:00
alias ps-was ps State.Name.eq=java,Args.*.eq=com.ibm.ws.bootstrap.WSLauncher
2004-08-04 13:22:33 +08:00
2005-07-22 09:42:36 +08:00
#find jboss (use .sw=java to match 'java' or 'javaw')
2007-05-30 08:01:28 +08:00
alias ps-jboss ps State.Name.sw=java,Args.*.eq=org.jboss.Main
2004-07-23 08:36:35 +08:00
2004-08-01 08:54:17 +08:00
#find tomcat
2007-05-30 08:01:28 +08:00
alias ps-tomcat ps State.Name.eq=java,Args.*.eq=org.apache.catalina.startup.Bootstrap
2004-08-01 08:54:17 +08:00
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
2007-05-30 08:01:28 +08:00
alias ps-apache ps State.Name.re=https?d.*|[Aa]pache2?$,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)
2007-05-30 08:01:28 +08:00
alias ps-ant ps State.Name.eq=java,Args.*.eq=org.apache.tools.ant.Main
2004-07-23 08:36:35 +08:00
2007-05-30 08:01:28 +08:00
#HQ agents
alias ps-hqagent ps State.Name.sw=java,Args.-1.eq=org.hyperic.hq.agent.server.AgentDaemon
2004-07-23 08:36:35 +08:00
#find all java procs except the shell itself
2004-07-24 03:52:26 +08:00
#($$ is the current process id)
2007-05-30 08:01:28 +08:00
alias ps-java ps State.Name.eq=java,Pid.Pid.ne=$$
alias java ps-java
2004-07-24 08:29:56 +08:00
#find all processes owned by the current user
2007-05-30 08:01:28 +08:00
alias ps-me ps CredName.User.eq=$user.name
2005-03-05 08:10:34 +08:00
2007-05-30 08:01:28 +08:00
#VMware Server or GSX VMs
alias ps-vmx ps State.Name.eq=vmware-vmx,Args.1.eq=-C