sigar/bindings/java/.sigar_shellrc

29 lines
1018 B
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)
2004-07-23 08:36:35 +08:00
alias wlfind ptql State.Name.eq=java,Args.-1.eq=weblogic.Server
#find jboss
alias jbfind ptql State.Name.eq=java,Args.*.eq=org.jboss.Main
2004-07-23 08:36:35 +08:00
#find ers apache worker or prefork httpsd
2004-07-24 03:52:26 +08:00
#($1 is the return value of the first query in the string)
2004-07-23 08:36:35 +08:00
alias erfind ptql State.Name.sw=httpsd.,State.Name.Pne=$1
#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