Nine41 Consulting | SSH LANDESK Agent Installer Script
apple, device management, dep, vpp, systems management, landesk, ivanti, lanrev, absolute, heat, mdm,
930
post-template-default,single,single-post,postid-930,single-format-standard,qode-quick-links-1.0,ajax_fade,page_not_loaded,,columns-3,qode-child-theme-ver-1.0.0,qode-theme-ver-11.0,qode-theme-bridge,wpb-js-composer js-comp-ver-5.1.1,vc_responsive
 

SSH LANDESK Agent Installer Script

SSH LANDESK Agent Installer Script

The other day I was working with a customer in which the LANDESK Console was unable to successfully push an agent to a Mac device; despite having SSH access when using Terminal.

As a result, I wrote a script that was used to deploy the agent without leveraging the LANDESK console.  I figured the script could be useful for other new customers that may already have Apple Remote Desktop or some other software distribution tool in place and could use this script to deploy the LANDESK agent in their environment.

The entire script can be downloaded from on GitHub inside the Custom SSH Agent Install folder.

The script is quite simple.  The first section establishes the variables.  Replace the path for your core with the appropriate IP address and change the name of the agent to match your unique name.  Remember to properly handles spaces if need be.  And that should it be all you need to change in this script.  Everything else should work in your environment as written.

The subsequent section checks to see if the LANDESK folder already exists on the Mac.  If it does, the script will exit out.  This will ensure you’re not re-installing an agent on a machine that is under management.

If the LANDESK folder path does not exist, we will use curl to download the agent from the defined variables above.

Once the agent DMG is downloaded, we need to mount it and kick off the installer.

With the agent installed, we’ll detach the volulme, remove the agent, and close out our if statement that determined if the folder path existed or not.

There you have it, hopefully that will assist you in getting the LANDESK agent installed remotely, without having to use the LANDESK console.

 

No Comments
  • Sameer Ahmad Halawani
    Posted at 07:24h, 19 November Reply

    We have tried to remotely deploy the agent on devices with no luck, then we have installed it manually but we should be able to remotely deploy it using the LANDESK Console

    • Bennett
      Posted at 23:08h, 03 December Reply

      Sameer, in order to push an agent you have to have ssh access to it. Have you validated that you can connect via SSH manually? Your Macs need to have the Remote Login service in System Preferences > Sharing enabled in order to push – whether you use the LANDESK console or the script in this blog.

Post A Comment

ARE YOU READY TO GET STARTED?
Please fill out your information, and a specialist will reach out to discuss our services in more details.
Your Information will never be shared with any third party.
        
Free Training Videos
Register to gain access to all of our free content.
YOUR PHONE
YOUR NAME
YOUR EMAIL
        
Get Started
Provide us your contact information and we will reach out as quickly as possible.
YOUR PHONE
YOUR NAME
YOUR EMAIL
        
Additional Questions?
Provide us your contact information and we will reach out as quickly as possible.
YOUR PHONE
YOUR NAME
YOUR EMAIL
        
Pay by PO?
Provide us your contact information and we will reach out to help you sign up by PO.
YOUR PHONE
YOUR NAME
YOUR EMAIL
Subscribe Now
Subscribing to our site gives you access to our Apple Admin 101 training videos as well as allowing us to notify you of each new blog post we release.
YOUR PHONE
YOUR NAME
YOUR EMAIL
Pay by PO
Send us your contact information and we will reach out to help you sign up by PO.
YOUR PHONE
YOUR NAME
YOUR EMAIL
Additional Questions?
Send us your contact information and your questions and we will reach out as quickly as possible.
YOUR PHONE
YOUR NAME
YOUR EMAIL
YOUR QUESTIONS
Get Started
Provide us your contact information and we will reach out as quickly as possible.
YOUR PHONE
YOUR NAME
YOUR EMAIL
Free Training Videos
Subscribing to our site gives you access to our Apple Admin 101 training videos as well as allowing us to notify you of each new blog post we release.
FIRST NAME
LAST NAME
PHONE
EMAIL
Subscribe Now
Subscribing to our site gives you access to our Apple Admin 101 training videos as well as allowing us to notify you of each new blog post we release.
FIRST NAME
LAST NAME
PHONE
EMAIL