How To: Refresh the Mac AV License Key on Client Machines.

Version 4

    Verified Product Versions

    Endpoint Manager 9.6Endpoint Manager 2016.x



    From time to time the license Key for Mac Antivirus does not get applied to the client machines at time of install, or it expires and after a new key is applied to the Core some clients may not update, which prevents them from updating their definitions. This document provides a temporary work around to getting the license reapplied to the machine through a Custom Script task in LDMS.




    Mac clients do not update their definitions, and\or show as having an expired license.




    Solution #1


    This method uses the Custom Script method to push the commands to the machine from the Core Server. This only works as a push to devices that are on the network.


    • In the LANDESK Management Suite Console, go to Tools - Distribution - Manage Scripts.
    • Right-click on the "My Scripts" folder, select New Custom Script.
    • Erase EVERYTHING in the editor window. Copy and paste the following into the editor:



    ;  LANDesk(R) Management Suite Custom Script





    ; MACHINES - This section is run once for each machine in the target set.

    ; Commands in this section will be processed in the order they are listed

    ; in the custom script.  This section supports both local (LOCxxx) and remote

    ; (REMxxx) commands.



    REMEXEC01=curl -o /tmp/ldav.key http://%CUSTJOBHOSTIP%/ldlogon/avclient/install/key/ldav.key

    REMEXEC02=sudo /Library/Application\ Support/LANDesk/bin/ldav -w /tmp/ldav.key


    • Name the script "Mac AV Key Refresh", click OK.
    • Refresh your Manage Scripts view in the Console.
    • Right-click the Mac AV Key Refresh script, select "Schedule"
    • Add the desired Mac OSX clients to the task and run it.
    • Double check the clients to verify the key was properly applied.


    Solution #2


    This option uses Software Distribution to distribute a shell script that will download and apply the ldav.key file from the core server.

    • Download the shell script attached to this document.
    • Copy it to your software distribution share, where it can be accessed by clients through an HTTP share.
    • Build a Mac Software Distribution package with this script as the file to be deployed.
    • Schedule and deploy the package.