0

What's a command to list all recent failures in Autosys?

I was thinking of autorep -d -J ALL followed by some kind of grep, but the autorep report comes in paragraphs, with the job name and the status in separate lines, so I need to write a custom filter in Perl unless I'm overlooking some quick and simple option.

4

3 回答 3

2

在 autorep 的输出中搜索失败作业时使用空格,即grep " FA ".

于 2012-08-29T12:47:14.313 回答
1

-d标志提供了详细信息,这就是autorep产生类似段落的输出的原因。运行autorep -J ALL | grep "FA"或类似的应该给你列表就好了。

于 2011-01-18T01:58:53.800 回答
0

假设您的所有工作都以通用数据库前缀开头。

CRANE_job1
CRANE_job2

等等..

利用:

aj CR% |grep -w FA
于 2015-12-03T04:40:35.923 回答