{"id":138,"date":"2015-03-11T15:59:50","date_gmt":"2015-03-11T15:59:50","guid":{"rendered":"https:\/\/www.tech.shinynewthings.com\/?p=138"},"modified":"2015-03-11T16:21:26","modified_gmt":"2015-03-11T16:21:26","slug":"apple-remote-desktop-client-status-offline","status":"publish","type":"post","link":"https:\/\/www.tech.shinynewthings.com\/?p=138","title":{"rendered":"Apple Remote Desktop Client &#8211; Status Offline"},"content":{"rendered":"<p>Apple Remote Desktop Client has been displaying &#8220;Current Status = Offline&#8221; for machines without cause. When a mac is &#8220;Offline&#8221;, ARD, AFP, SMB, and SSH are stop working. However, the<br \/>\nmac can still be pinged and its web server is still accessible.<\/p>\n<p>Apple Remote Desktop Client is crashing and causing the issues. I don&#8217;t understand why SSH and SMB stop working when this happens, any comments would be appreciated.<\/p>\n<p>I&#8217;m posting the AppleScript that I wrote to resolve the issue. A restart is not required, but resolved network issues outside of ARD for me. Please comment if this works, doesn&#8217;t work or needs to be updated in any way.<\/p>\n<pre>\n<code>\non doShellScript(cmd, pswd)\n    if (length of pswd > 0) then\n        display dialog pswd\n        do shell script cmd password pswd with administrator privileges\n    else\n        display dialog \"This process requires an admin password.\"\n        requestInput()\n    end if\nend doShellScript\n\non restartNow()\n    tell application \"Finder\"\n        restart\n    end tell\nend restartNow\n\non requestInput()\n    set admin_password to display dialog \u00ac\n        \"Please enter your password:\" with title \u00ac\n        \"Password\" with icon caution \u00ac\n        default answer \u00ac\n        \"\" buttons {\"Cancel\", \"OK\"} default button 2 \u00ac\n        giving up after 295 \u00ac\n        with hidden answer\n    set pswd to text of text returned of admin_password\n    \n    set cmds to {\u00ac\n        \"ls\", \u00ac\n        \"sudo \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -agent -stop\", \u00ac\n        \"sudo rm -R \/Library\/Application\\\\ Support\/Apple\/Remote\\\\ Desktop\/Client\", \u00ac\n        \"sudo \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -agent -restart\"}\n    \n    doShellScript(item 1 of cmds, pswd)\n    doShellScript(item 2 of cmds, pswd)\n    doShellScript(item 3 of cmds, pswd)\n    requestRestart()\nend requestInput\n\non requestRestart()\n    set restartAnswer to display dialog \u00ac\n        \"Would you like to restart now?\" with title \u00ac\n        \"Restart\" with icon caution \u00ac\n        buttons {\"Cancel\", \"OK\"} default button 2 \u00ac\n        giving up after 295\n    \n    set answer to text of button returned of restartAnswer\n    \n    if (answer is equal to \"OK\") then\n        restartNow()\n    end if\nend requestRestart\n\nrequestInput()\n<\/code>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Apple Remote Desktop Client has been displaying &#8220;Current Status = Offline&#8221; for machines without cause. When a mac is &#8220;Offline&#8221;, ARD, AFP, SMB, and SSH are stop working. However, the mac can still be pinged and its web server is still accessible. Apple Remote Desktop Client is crashing and causing the issues. I don&#8217;t understand [&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-138","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=138"}],"version-history":[{"count":6,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}