<?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 Re: Unable to create cron job for arp in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187181#M34480</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# which {arp,cat,uptime}
/sbin/arp
/usr/bin/cat
/usr/bin/uptime&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cronjobs are run in a non-interactive, non-login shell instance. From looking at an R81.10 system, it appears /sbin is added to the $PATH in /etc/profile, &lt;A href="https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html" target="_self"&gt;which is only run for login shell instances&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Include the full path to arp in your cronjob specification, or make a shell script which starts with '#!/usr/bin/bash --login' and run that script in your cronjob.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 14:15:00 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2023-07-21T14:15:00Z</dc:date>
    <item>
      <title>Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/186963#M34471</link>
      <description>&lt;P&gt;Unable to create cron job with below command&amp;nbsp;&lt;/P&gt;&lt;P&gt;add cron job CCTeam_ArpEntry command "arp" recurrence daily time 12:03 and sendin this output to my email.&lt;/P&gt;&lt;P&gt;This is what I am getting in email "&lt;STRONG&gt;/bin/bash: arp: command not found&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same time if I do given command "uptime" in cron job, email output shows fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something here?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 06:50:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/186963#M34471</guid>
      <dc:creator>Nandhakumar_N</dc:creator>
      <dc:date>2023-07-20T06:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/186972#M34472</link>
      <description>&lt;P&gt;Check manually if "arp" is available with bash&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 07:22:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/186972#M34472</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2023-07-20T07:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187015#M34473</link>
      <description>&lt;P&gt;Whats exact command you used? If you send it, I will try it in the lab.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 11:10:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187015#M34473</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-07-20T11:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187164#M34475</link>
      <description>&lt;P&gt;Checked manually arp is there.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 11:06:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187164#M34475</guid>
      <dc:creator>Nandhakumar_N</dc:creator>
      <dc:date>2023-07-21T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187165#M34476</link>
      <description>&lt;P&gt;&lt;STRONG&gt;cat /proc/net/arp &lt;/STRONG&gt;command works fine&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 11:09:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187165#M34476</guid>
      <dc:creator>Nandhakumar_N</dc:creator>
      <dc:date>2023-07-21T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187181#M34480</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# which {arp,cat,uptime}
/sbin/arp
/usr/bin/cat
/usr/bin/uptime&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cronjobs are run in a non-interactive, non-login shell instance. From looking at an R81.10 system, it appears /sbin is added to the $PATH in /etc/profile, &lt;A href="https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html" target="_self"&gt;which is only run for login shell instances&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Include the full path to arp in your cronjob specification, or make a shell script which starts with '#!/usr/bin/bash --login' and run that script in your cronjob.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:15:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187181#M34480</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-07-21T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187185#M34484</link>
      <description>&lt;P&gt;I am not sure what full command you are asking me to specify in CLI?&lt;/P&gt;&lt;P&gt;I am using this command for running cron job and it works perfectly.&lt;/P&gt;&lt;P&gt;add cron job CCteam_ArpEntry2 command "cat /proc/net/arp | grep eth1.70 | sort -k 6" recurrence weekly days 1,2,3,4,5 time 10:00&lt;/P&gt;&lt;P&gt;I don't want to complicate much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:31:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187185#M34484</guid>
      <dc:creator>Nandhakumar_N</dc:creator>
      <dc:date>2023-07-21T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create cron job for arp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187189#M34486</link>
      <description>&lt;P&gt;Like I said,&amp;nbsp;the full path to arp. A non-interactive, non-login instance of BASH doesn't know to check /sbin for executables. When you try to run 'arp' without the full path, it won't work because BASH can't find an executable with that name, which is what the error "command not found" is telling you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:47:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Unable-to-create-cron-job-for-arp/m-p/187189#M34486</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-07-21T14:47:58Z</dc:date>
    </item>
  </channel>
</rss>

