lib/puppet/provider/remotemanagement/default.rb
# Try and determine if Apple Remote Desktop is already activated
Try and determine if Apple Remote Desktop is already activated
Try and determine if Apple Remote Desktop is already activated
def service_active?
      unless system("nc -z localhost 5900 &> /dev/null")
        info("VNC port not open...")
        return false
      end
      unless system("nc -u -z localhost 3283 &> /dev/null")
        info("ARD port not open...")
        return false
      end
      return false unless launchd_file_exists?
      unless system("ps axc | grep -q ARDAgent")
        info("ARD agent not running...")
        return false
      end
      true
    end
def service_active? unless system ( "nc -z localhost 5900 &> /dev/null" ) info ( "VNC port not open..." ) return false end unless system ( "nc -u -z localhost 3283 &> /dev/null" ) info ( "ARD port not open..." ) return false end return false unless launchd_file_exists? unless system ( "ps axc | grep -q ARDAgent" ) info ( "ARD agent not running..." ) return false end true end
Try and determine if Apple Remote Desktop is already activated
Try and determine if Apple Remote Desktop is already activated
# Is the VNC port open? # Is the Remote Management port open? # Is the launchd file present? # Is the ARDAgent running?