<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cron Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127888#M315879</link>
    <description>How can we see if the commands or jobs scheduled by cron are successful or failed?&lt;BR /&gt;&lt;BR /&gt;I have ITO configured for performance monitoring and its giving me status signals about CRON jobs on various machines that they are failing. Following is an example about the messages I am getting on ITO about CRON jobs on various systems:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dup.  Date/Time         Auto St. Oper St. Sev. Message Group    Node Name&lt;BR /&gt;----- ----------------- -------- -------- ---- ---------------- -------------------&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:40:11 undef    defined  norm Performance      usunx31.reebok.com&lt;BR /&gt;               Message Text : End of Memory Bottleneck Alert  ( START: 01/11/2008&lt;BR /&gt;                              07:10:00 ; END: 01/11/2008 08:40:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:41:30 undef    undef    warn Job              usunx08.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 14871 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:03 undef    undef    warn Job              usunx29.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 29212 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:06 undef    undef    warn Job              usunx33.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 13236 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:06 undef    undef    warn Job              usunx01.reebok.com&lt;BR /&gt;               Message Text : Cron command of conadm with pid 13412 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:15 undef    undef    warn Job              usunx31.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwdadm with pid 19276 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:16 undef    undef    warn Job              usunx70.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwtadm with pid 17027 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:18 undef    undef    warn Job              usunx15.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 7244 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Selected active                                                   Page:      2&lt;BR /&gt;&lt;BR /&gt;Dup.  Date/Time         Auto St. Oper St. Sev. Message Group    Node Name&lt;BR /&gt;----- ----------------- -------- -------- ---- ---------------- -------------------&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:38 undef    undef    warn OS               RBKUSAPP10.reebok.com&lt;BR /&gt;               Message Text : The Node RBKUSAPP10 is up but there is 20% packet loss&lt;BR /&gt;                              events&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:50:09 undef    defined  norm Performance      usunx08.reebok.com&lt;BR /&gt;               Message Text : End of CPU Bottleneck Alert  ( START: 01/11/2008&lt;BR /&gt;                              08:40:00 ; END: 01/11/2008 08:50:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:55:09 undef    defined  norm Performance      usunx47.reebok.com&lt;BR /&gt;               Message Text : End of CPU Bottleneck Alert  ( START: 07:35:00&lt;BR /&gt;                              01/11/08 ; END: 08:50:00 01/11/08 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:55:13 undef    defined  crit Performance      usunx47.reebok.com&lt;BR /&gt;               Message Text : Network Bottleneck probability=    95.00%  ( START:&lt;BR /&gt;                              16:30:00 01/10/08 ; REPEAT: 08:50:00 01/11/08 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:02 undef    undef    warn Job              usunx29.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 3538 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:03 undef    undef    warn Job              usunx08.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 20786 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:04 undef    undef    warn Job              usunx33.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 16828 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:08 undef    undef    warn Job              usunx01.reebok.com&lt;BR /&gt;               Message Text : Cron command of conadm with pid 15044 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:11 undef    defined  mino Performance      usunx33.reebok.com&lt;BR /&gt;               Message Text : Network Bottleneck probability=    70.00%  ( START:&lt;BR /&gt;                              01/11/2008 09:00:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:15 undef    undef    warn Job              usunx70.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwtadm with pid 19366 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:17 undef    defined  crit Performance      usunx31.reebok.com&lt;BR /&gt;               Message Text : Network Bottleneck probability=    95.00%  ( START:&lt;BR /&gt;                              01/11/2008 07:10:00 ; REPEAT: 01/11/2008 09:00:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:18 undef    defined  norm Performance      usunx45.reebok.com&lt;BR /&gt;               Message Text : End of Network Bottleneck Alert  ( START: 01/10/2008&lt;BR /&gt;                              20:10:00 ; END: 01/11/2008 09:00:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:19 undef    undef    warn Job              usunx31.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwdadm with pid 21377 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Selected active                                                   Page:      3&lt;BR /&gt;&lt;BR /&gt;Dup.  Date/Time         Auto St. Oper St. Sev. Message Group    Node Name&lt;BR /&gt;----- ----------------- -------- -------- ---- ---------------- -------------------&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:20 undef    undef    warn Job              usunx15.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 10958 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;Can any one give me idea where to investigate these problems from?</description>
    <pubDate>Fri, 11 Jan 2008 14:09:51 GMT</pubDate>
    <dc:creator>Ali Imran Abbas</dc:creator>
    <dc:date>2008-01-11T14:09:51Z</dc:date>
    <item>
      <title>Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127888#M315879</link>
      <description>How can we see if the commands or jobs scheduled by cron are successful or failed?&lt;BR /&gt;&lt;BR /&gt;I have ITO configured for performance monitoring and its giving me status signals about CRON jobs on various machines that they are failing. Following is an example about the messages I am getting on ITO about CRON jobs on various systems:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dup.  Date/Time         Auto St. Oper St. Sev. Message Group    Node Name&lt;BR /&gt;----- ----------------- -------- -------- ---- ---------------- -------------------&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:40:11 undef    defined  norm Performance      usunx31.reebok.com&lt;BR /&gt;               Message Text : End of Memory Bottleneck Alert  ( START: 01/11/2008&lt;BR /&gt;                              07:10:00 ; END: 01/11/2008 08:40:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:41:30 undef    undef    warn Job              usunx08.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 14871 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:03 undef    undef    warn Job              usunx29.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 29212 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:06 undef    undef    warn Job              usunx33.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 13236 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:06 undef    undef    warn Job              usunx01.reebok.com&lt;BR /&gt;               Message Text : Cron command of conadm with pid 13412 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:15 undef    undef    warn Job              usunx31.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwdadm with pid 19276 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:16 undef    undef    warn Job              usunx70.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwtadm with pid 17027 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:18 undef    undef    warn Job              usunx15.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 7244 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Selected active                                                   Page:      2&lt;BR /&gt;&lt;BR /&gt;Dup.  Date/Time         Auto St. Oper St. Sev. Message Group    Node Name&lt;BR /&gt;----- ----------------- -------- -------- ---- ---------------- -------------------&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:45:38 undef    undef    warn OS               RBKUSAPP10.reebok.com&lt;BR /&gt;               Message Text : The Node RBKUSAPP10 is up but there is 20% packet loss&lt;BR /&gt;                              events&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:50:09 undef    defined  norm Performance      usunx08.reebok.com&lt;BR /&gt;               Message Text : End of CPU Bottleneck Alert  ( START: 01/11/2008&lt;BR /&gt;                              08:40:00 ; END: 01/11/2008 08:50:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:55:09 undef    defined  norm Performance      usunx47.reebok.com&lt;BR /&gt;               Message Text : End of CPU Bottleneck Alert  ( START: 07:35:00&lt;BR /&gt;                              01/11/08 ; END: 08:50:00 01/11/08 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 08:55:13 undef    defined  crit Performance      usunx47.reebok.com&lt;BR /&gt;               Message Text : Network Bottleneck probability=    95.00%  ( START:&lt;BR /&gt;                              16:30:00 01/10/08 ; REPEAT: 08:50:00 01/11/08 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:02 undef    undef    warn Job              usunx29.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 3538 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:03 undef    undef    warn Job              usunx08.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 20786 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:04 undef    undef    warn Job              usunx33.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 16828 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:08 undef    undef    warn Job              usunx01.reebok.com&lt;BR /&gt;               Message Text : Cron command of conadm with pid 15044 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:11 undef    defined  mino Performance      usunx33.reebok.com&lt;BR /&gt;               Message Text : Network Bottleneck probability=    70.00%  ( START:&lt;BR /&gt;                              01/11/2008 09:00:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:15 undef    undef    warn Job              usunx70.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwtadm with pid 19366 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:17 undef    defined  crit Performance      usunx31.reebok.com&lt;BR /&gt;               Message Text : Network Bottleneck probability=    95.00%  ( START:&lt;BR /&gt;                              01/11/2008 07:10:00 ; REPEAT: 01/11/2008 09:00:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:18 undef    defined  norm Performance      usunx45.reebok.com&lt;BR /&gt;               Message Text : End of Network Bottleneck Alert  ( START: 01/10/2008&lt;BR /&gt;                              20:10:00 ; END: 01/11/2008 09:00:00 )&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:19 undef    undef    warn Job              usunx31.reebok.com&lt;BR /&gt;               Message Text : Cron command of bwdadm with pid 21377 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Selected active                                                   Page:      3&lt;BR /&gt;&lt;BR /&gt;Dup.  Date/Time         Auto St. Oper St. Sev. Message Group    Node Name&lt;BR /&gt;----- ----------------- -------- -------- ---- ---------------- -------------------&lt;BR /&gt;&lt;BR /&gt;      01/11/08 09:00:20 undef    undef    warn Job              usunx15.reebok.com&lt;BR /&gt;               Message Text : Cron command of prdadm with pid 10958 failed (rc = 1)&lt;BR /&gt;&lt;BR /&gt;Can any one give me idea where to investigate these problems from?</description>
      <pubDate>Fri, 11 Jan 2008 14:09:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127888#M315879</guid>
      <dc:creator>Ali Imran Abbas</dc:creator>
      <dc:date>2008-01-11T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127889#M315880</link>
      <description>You could start by checking /var/adm/cron/log though that probably won't tell you much more than you already know.&lt;BR /&gt;&lt;BR /&gt;By default cron will e-mail any output from a cron job to the user that the job is running as.  So in your case check the conadm, prdadm and bwdadm users on the system running the jobs and see if they have mail.  If they do, that may provide some clues.&lt;BR /&gt;&lt;BR /&gt;Ideally any cron job should either write its output to a log file so it is easier to investigate issues.</description>
      <pubDate>Fri, 11 Jan 2008 14:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127889#M315880</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-01-11T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127890#M315881</link>
      <description>Thanks for your reply, How can I check the logs for cron jobs for individual users.&lt;BR /&gt; Follwoing is a job by one of the user:&lt;BR /&gt;&lt;BR /&gt;# dayly cleanup of CCMS and Tivoli-logs&lt;BR /&gt;00 05 * * * $HOME/sapcoc/ccms_del_old_data.sh  &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;#&lt;BR /&gt;# Check - if monitoring is activ&lt;BR /&gt;00,15,30,45 * * * * $HOME/sapcoc/auto_checkmon  DVEBMGS00 usunx70  &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;How can I troubleshoot using this as guideline? What this job is doing?</description>
      <pubDate>Fri, 11 Jan 2008 14:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127890#M315881</guid>
      <dc:creator>Ali Imran Abbas</dc:creator>
      <dc:date>2008-01-11T14:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127891#M315882</link>
      <description>************&lt;BR /&gt; Thanks for your reply, How can I check the logs for cron jobs for individual users.&lt;BR /&gt;Follwoing is a job by one of the user:&lt;BR /&gt;&lt;BR /&gt;# dayly cleanup of CCMS and Tivoli-logs&lt;BR /&gt;00 05 * * * $HOME/sapcoc/ccms_del_old_data.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;#&lt;BR /&gt;# Check - if monitoring is activ&lt;BR /&gt;00,15,30,45 * * * * $HOME/sapcoc/auto_checkmon DVEBMGS00 usunx70 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;How can I troubleshoot using this as guideline? What this job is doing?&lt;BR /&gt;************&lt;BR /&gt;&lt;BR /&gt;It's going to be real hard to check these.  All output from the cron job is being redirected to /dev/null.  &lt;BR /&gt;&lt;BR /&gt;As to what this job is doing -- I have no clue, you'll have to examine the scripts that  the cron jobs themselves to see.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jan 2008 15:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127891#M315882</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-01-11T15:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127892#M315883</link>
      <description>Its a long script, How can I redirect its output to some logfile, can u pls give me an example?</description>
      <pubDate>Fri, 11 Jan 2008 15:06:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127892#M315883</guid>
      <dc:creator>Ali Imran Abbas</dc:creator>
      <dc:date>2008-01-11T15:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127893#M315884</link>
      <description>First, it sounds as if you need to study up on redirection, especially redirecting standard out and standard error.&lt;BR /&gt;&lt;BR /&gt;For this script:&lt;BR /&gt;&lt;BR /&gt;$HOME/sapcoc/auto_checkmon DVEBMGS00 usunx70 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Take the '&amp;gt;/dev/null 2&amp;gt;&amp;amp;1' and change it to something like: '&amp;gt; /var/tmp/checkmon.log 2&amp;gt;&amp;amp;1'&lt;BR /&gt;&lt;BR /&gt;So your line looks like:&lt;BR /&gt;&lt;BR /&gt;$HOME/sapcoc/auto_checkmon DVEBMGS00 usunx70 &amp;gt; /var/tmp/checkmon.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Basically you are just replacing the '/dev/null' in the line with a real file name.  Do this for any other scripts you want to see output from.</description>
      <pubDate>Fri, 11 Jan 2008 15:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127893#M315884</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-01-11T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127894#M315885</link>
      <description>Do I need to restart the cron after making modifications to that user cron job?</description>
      <pubDate>Fri, 11 Jan 2008 15:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127894#M315885</guid>
      <dc:creator>Ali Imran Abbas</dc:creator>
      <dc:date>2008-01-11T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127895#M315886</link>
      <description>No.</description>
      <pubDate>Fri, 11 Jan 2008 15:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/4127895#M315886</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-01-11T15:44:15Z</dc:date>
    </item>
  </channel>
</rss>

