The following is not so pretty, but also finds save sets that are
queued to run
but have not yet started.
I pick all my groups that have autostart enabled, and report when
the group started, finished and what is outstanding.
The first line selects the attributes to display, the second
is the query.
nsradmin -i - <<EOF
show name; work list; start time; last start; last end; restart window
print type: NSR group; autostart: Enabled
EOF
On 23/01/2007, at 2:10 AM, Andrew Dietz wrote:
I am looking for a way to produce a report via the command line
that lists any saves that are still currently running. I can list
all saves for a particular host that will show any unfinished saves
with the sscomp field set to 'undefined', but I can't seem to be
able to query by sscomp=undefined.
mminfo -vr 'ssflags,client(20),name(30),level,savetime(20),sscomp
(20)' \
-q "client=myhost"
vF myhost /cyrus/mail incr 01/15/07 19:00:06 01/17/07 04:02:39
vF myhost /cyrus/mail incr 01/17/07 19:00:04 01/21/07 02:19:10
viI myhost /cyrus/mail incr 01/21/07 19:00:24 undefined
but:
mminfo -vr 'ssflags,client(20),name(30),level,savetime(20),sscomp
(20)' \
-q "sscomp=undefined"
mminfo: invalid value specified for `sscomp'
How can I construct this query to where I can generate a report
that shows all hosts whose saves are still running, such that my
result would appear something like:
viI myhost01 /cyrus/mail incr 01/20/07 19:00:24 undefined
viI myhost03 /home incr 01/21/07 17:00:32 undefined
viI myhost09 /usr incr 01/21/07 20:00:45 undefined
viI myhost12 /opt incr 01/22/07 20:00:24 undefined
or something similar?
Thanks in advance for your help.
Andrew
To sign off this list, send email to listserv AT listserv.temple DOT edu
and type "signoff networker" in the body of the email. Please write
to networker-request AT listserv.temple DOT edu if you have any problems
with this list. You can access the archives at http://
listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
To sign off this list, send email to listserv AT listserv.temple DOT edu and type
"signoff networker" in the body of the email. Please write to networker-request
AT listserv.temple DOT edu if you have any problems with this list. You can access the
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|