{"id":275,"date":"2019-10-21T17:24:52","date_gmt":"2019-10-21T20:24:52","guid":{"rendered":"http:\/\/xaxowareti.com.br\/?p=275"},"modified":"2019-10-21T17:24:57","modified_gmt":"2019-10-21T20:24:57","slug":"problemas-com-arp-allocate-llinfo-for","status":"publish","type":"post","link":"https:\/\/xaxowareti.com.br\/?p=275","title":{"rendered":"problemas com arp &#8220;allocate llinfo for&#8221;"},"content":{"rendered":"\n<p>crie um script e coloque no crontab 1\/60 minutos.<\/p>\n\n\n\n<p>vi \/bin\/up_net.sh<\/p>\n\n\n\n<p>conte\u00fado script.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">!\/bin\/sh<\/h1>\n\n\n\n<p>\/sbin\/ping -c 5 8.8.8.8<br> chmod 777 \/tmp\/FailCount<br> cat \/var\/log\/system.log | grep -a &#8220;date +%d date +%R&#8221; | grep -c &#8220;allocate llinfo for&#8221; > \/tmp\/FailCount<br> data=<code>date +%R<\/code><br> FailCount=cat \/tmp\/FailCount<br> echo $FailCount<br> if [ &#8220;$FailCount&#8221; == &#8220;0&#8221; ]; then<br> echo &#8220;Error detected in logs. Attempting Repair. $data&#8221; >> \/tmp\/FailCount.txt<br> ifconfig re0 down<br> ifconfig re0 up<br> ifconfig re1 down<br> ifconfig re1 up<br> else<br> echo &#8220;Log file doesn&#8217;t show arp errors. $data&#8221; >> \/tmp\/FailCount.txt<br> fi<\/p>\n\n\n\n<p>crontab<\/p>\n\n\n\n<p>1\/60 * * * *   \/bin\/up_net.sh <\/p>\n\n\n\n<p>so deixar rodar e o problema esta resolvido princialmente.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>crie um script e coloque no crontab 1\/60 minutos. vi \/bin\/up_net.sh conte\u00fado script. !\/bin\/sh \/sbin\/ping -c 5 8.8.8.8 chmod 777 \/tmp\/FailCount cat \/var\/log\/system.log | grep -a &#8220;date +%d date +%R&#8221; | grep -c &#8220;allocate llinfo for&#8221; > \/tmp\/FailCount data=date +%R FailCount=cat \/tmp\/FailCount echo $FailCount if [ &#8220;$FailCount&#8221; == &#8220;0&#8221; ]; then echo &#8220;Error detected in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-275","post","type-post","status-publish","format-standard","hentry","category-sem-categoria"],"_links":{"self":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275"}],"version-history":[{"count":1,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":276,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions\/276"}],"wp:attachment":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}