Symantec Management Platform (Notification Server)

 View Only
  • 1.  agent and all plugins install via command lines outside of altiris

    Posted Sep 06, 2011 09:27 AM

    Ok currenlty we are not using deployment server for deploying our os yet.

     

    So basically I script my install and as the last part I also install the agent and all the plugins.  This seems unreliable and I don't know if it is because the agent is communicating with the NS during the plugin installs causing the policy installs to kick off or what.  Does anyone have a solution or suggestion for this?  Is there a recommended order?  Do you do something special or different?

    I have attached what I execute to complete the install but every once in awhile I will run into some kind of error.

    This is based off of these command lines except for the deployment server because this is incorrect and they were supposed to update this article.

    http://www.symantec.com/business/support/index?page=content&id=HOWTO10261

     

     :380
    echo **********************************************************************
    echo *                   380 - SMP Agent Install                          *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,380 Symantec Altiris Agent: Begin >> c:\RISlog\ScriptPack.log
    rem START /WAIT c:\install2\Symantec\AltirisAgent\AeXNSC.exe -s -a ns=ber-ap15.motorwheelcvs.com nsweb=http://ber-ap15.motorwheelcvs.com/Altiris /s
    START /WAIT c:\install2\Symantec\AltirisAgent\AeXClientUpgrade.exe
    echo %date%,%time%,errorlevel: %errorlevel%,380 Symantec Altiris Agent: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   381 - Power Scheme Agent Install                 *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,381 Symantec Power Scheme Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\PowerAgent
    START /WAIT msiexec.exe /i Altiris_PowerSchemeAgent_x86.msi /qn ALLUSERS=1 REBOOT=ReallySuppress REBOOTPROMPT="S"
    echo %date%,%time%,errorlevel: %errorlevel%,381 Symantec Power Scheme Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   382 - Software Update Agent Install              *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,382 Symantec PatchManagement Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\PatchAgent
    START /WAIT MsiExec.exe /qn REBOOT=ReallySuppress /i Altiris_PatchMgmtAgent_Win32_7_0.msi
    echo %date%,%time%,errorlevel: %errorlevel%,382 Symantec PatchManagement Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   383 - Out of Band Agent Install                  *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,383 Symantec Out of Band Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\OOBAgent
    START /WAIT Slaunch32.exe /inifile:OOBTaskAgent.ini
    echo %date%,%time%,errorlevel: %errorlevel%,383 Symantec Out of Band Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   384 - Application Metering Agent Install         *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,384 Symantec Application Metering Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\AppMeterAgent
    START /WAIT msiexec.exe /i AMAgentSetup.msi /qn REBOOT=ReallySuppress ALLUSERS=1
    echo %date%,%time%,errorlevel: %errorlevel%,384 Symantec Application Metering Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   385 - Software Management Solution Agent Install *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,385 Symantec Software Management Solution Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\SMSolutionAgent
    START /WAIT msiexec.exe /i "Software Management Solution Agent_7_0_rev1.msi" /qn
    echo %date%,%time%,errorlevel: %errorlevel%,385 Symantec Software Management Solution Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   386 - Inventory Agent Install                    *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,386 Symantec Inventory Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\InvAgent
    START /WAIT msiexec.exe /i Symantec_InventoryAgent_x86.msi /qn REBOOT=ReallySuppress ALLUSERS=1
    echo %date%,%time%,errorlevel: %errorlevel%,386 Symantec Inventory Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   387 - Deployment x86 Agent Install               *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Deployment Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\deployAgent
    START /WAIT msiexec.exe /i "Altiris_DeploymentSolutionAgent_7_1_x86.msi" skipaim=1 /qn REBOOT=ReallySuppress
    echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Deployment Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    echo **********************************************************************
    echo *                   388 - PCAnywhere Agent Install                   *
    echo **********************************************************************
    echo %date%,%time%,errorlevel: %errorlevel%,388 Symantec PCAnywhere Plug-in: Begin >> c:\RISlog\ScriptPack.log
    cd c:\Install2\Symantec\pcAAgent
    START /WAIT pcAClientInstallManager.exe /iall
    echo %date%,%time%,errorlevel: %errorlevel%,388 Symantec PCAnywhere Plug-in: End >> c:\RISlog\ScriptPack.log
    ECHO errorlevel: %errorlevel%
    IF ERRORLEVEL 1 GOTO fail
    ECHO errorlevel: %errorlevel%
    cd c:\install2
    :389
    echo **********************************************************************
    echo *                   389 - SMP Agent File Cleanup                     *
    echo **********************************************************************
    RD /S /Q c:\install2\symantec

     

    What does the rest of the community do?  Simply just installing the agent and then waiting for the agent to install via policy just does not work.  Don't ask me why but it never has.  I have had multiple suggestions from support and never an answer that gets them all installed.  As of a month ago I still had machines missing agent plugins that have been sitting out there for over a year.  We of course are not using these solutions yet so not of any concern but I want to just eliminate this problem and always know all new machines will have the agent and all the plugins upon deployment.



  • 2.  RE: agent and all plugins install via command lines outside of altiris
    Best Answer

    Trusted Advisor
    Posted Sep 07, 2011 05:59 PM

    I'm doing basically the same thing using DS for migration but worked with a partner who advised us to put a 10 second ping/wait command after each subagent installation.  Usually the agent restarts when you install a new plugin and the wait allows the agent to start fully before attempting the next plugin install.



  • 3.  RE: agent and all plugins install via command lines outside of altiris

    Posted Sep 08, 2011 04:45 PM

    HighTower,

    Great suggestion and I have started to do the same.  Thank you for this for now it appears to be working much better but have only tested twice.

     

    For everyone else the code that does this is:

    rem  **********************************************************************
    rem  *                       wait 10 seconds to Begin                     *
    rem  **********************************************************************
    ping 1.1.1.1 -n 1 -w 10000 > nul



  • 4.  RE: agent and all plugins install via command lines outside of altiris

    Posted Sep 14, 2011 09:12 AM

    I'm marking the suggested ping delay as a solution but would always take additional recommendations to improve this process in anyway.  I'm sure this would also be very helpful to many other users also.



  • 5.  RE: agent and all plugins install via command lines outside of altiris

    Posted Sep 15, 2011 06:18 AM

    Hi, jlawson and others:

    You can bet your money :)

    This is extremely useful.

    Did anyone tried to create a script like this for Unix/Linux? That would do me really happy :)

     

    Regards:

           Falquian