From 2a4cd1a688ab072823f9da435665a866a2a6d4f5 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 23 Jul 2004 00:36:35 +0000 Subject: [PATCH] add example .sigar_shellrc --- bindings/java/.sigar_shellrc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bindings/java/.sigar_shellrc diff --git a/bindings/java/.sigar_shellrc b/bindings/java/.sigar_shellrc new file mode 100644 index 00000000..20a54aa7 --- /dev/null +++ b/bindings/java/.sigar_shellrc @@ -0,0 +1,21 @@ +#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. + +#find weblogic nodes +alias wlfind ptql State.Name.eq=java,Args.-1.eq=weblogic.Server + +#find jboss +alias jbfind ptql State.Name.eq=java,Args.-1.eq=org.jboss.Main + +#find ers apache worker or prefork httpsd +alias erfind ptql State.Name.sw=httpsd.,State.Name.Pne=$1 + +#find ant processes (ant hangs on me sometimes) +alias hant ptql State.Name.eq=java,Args.*.eq=org.apache.tools.ant.Main + +#my HQ agent +alias myag ptql CredName.User.eq=$user.name,State.Name.eq=java,Args.-1.ew=SpiderAgent + +#find all java procs except the shell itself +alias java ptql State.Name.eq=java,Pid.Pid.ne=$$