How to Deploy the Operations Manager 2007 Agent Using MOMAgent.msi from the Command Line
You can use the following command-line examples to deploy the Operations Manager 2007 agent by using MOMAgent.msi, also referred to as a manual install.
Important
A Management Group must be configured to accept agents installed with MOMAgent.msi or they will be automatically rejected and therefore not display in the Operations console. For more information, see How to Configure Security for Manual Agent Installs Setting for an Operations Manager 2007 Management Group. If a Management Group is configured to accept manually installed agents after the agents have been manually installed, the agents will display in the console after approximately one hour.
The first command-line example does not use Active Directory Domain Services to assign computers to Management Groups, and the second example does use Active Directory Domain Services. The account used to run MOMAgent.msi must have administrative privileges on the targeted computers.
Important
Each agent installed with MOMAgent.msi must be approved for a Management Group. For more information, see How to Approve an Operations Manager 2007 Agent Installed for a Management Group Using MOMAgent.msi.
MOMAgent.msi can be found in the Operations Manager 2007 installation media and the Management Server installation directory. For the list of MOMAgent.msi custom public properties, see Operations Manager 2007 Reference.
Important
The Operations Manager 2007 agent requires the Microsoft XML 6.0 Parser. You can download the MSXML 6.0 Parser, also referred to as Microsoft Core XML Services (MSXML) 6.0, from https://go.microsoft.com/fwlink/?LinkId=76343. The MSXML 6.0 Parser is installed automatically with the agent if the agent is deployed from the Operations Manager 2007 Operations Console. For more information see about deploying the agent form the console, see How to Deploy the Operations Manager 2007 Agent to Windows-Based Computers from the Operations Console.
If an agent is manually deployed to a domain controller, and an Active Directory Management Pack is later deployed, errors might occur during deployment of the Management Pack. To prevent errors from occurring before deploying the Active Directory Management Pack, or to recover from errors that might have already occurred, you will need to deploy the Active Directory Management Pack helper object by deploying the file oomads.msi on the affected domain controller. The file oomads.msi can be found on the computer hosting the agent at C:\Program Files\System Center Operations Manager 2007\HelperObjects. For more information, see the section "Agent-Managed Domain Controllers" in the topic Configuring Objects to Be Managed by Operations Manager 2007
To deploy the Operations Manager 2007 agent from the command line
Use local administrator privileges to log on to the computer.
Open the command window.
At the prompt, for example, type the following:
Important
Microsoft Windows Installer public properties must be uppercase, such as PROPERTY=value. For more information about Windows Installer, see https://go.microsoft.com/fwlink/?LinkId=70004.
%WinDir%\System32\msiexec.exe /i \\path\Directory\MOMAgent.msi /qn USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=MG1 MANAGEMENT_SERVER_DNS=MS1.Domain1.net SECURE_PORT=Port Number ACTIONS_USE_COMPUTER_ACCOUNT=0 ACTIONSUSER=AgentAction ACTIONSDOMAIN=Domain1 ACTIONSPASSWORD=Password#2007
The preceding command-line example will install and configure the Operations Manager 2007 Agent:
To get its Management Group settings from properties set on the command line (USE_SETTINGS_FROM_AD=0).
Sets the Management Group the computer will be managed by to MG1 (MANAGEMENT_GROUP=MG1).
Sets the Management Server FQDN to MS1.Domain1.net (MANAGEMENT_SERVER_DNS=MS1.Domain1.net). To use a gateway server, enter the gateway server FQDN as MANAGEMENT_SERVER_DNS.
Important
If the computer's DNS and Active Directory names differ, the MANAGEMENT_SERVER_AD_NAME property would also need to be set to the fully qualified Active Directory Domain Services name.
Sets the health service port number (SECURE_PORT)
Sets the Agent Action account to a specified user account, as opposed to Local System (ACTIONS_USE_COMPUTER_ACCOUNT=0).
Sets the Agent Action account to AgentAction (ACTIONSUSER=AgentAction).
Sets the Agent Action account domain to Domain1 (ACTIONSDOMAIN= Domain1).
Sets the Agent Action account password to Password#2007 (ACTIONSPASSWORD= Password#2007).
To deploy the Operations Manager 2007 agent from the command line and configure the agent to get Management Group settings from Active Directory Domain Services
Use local administrator privileges to log on to the computer.
Open the command window.
At the prompt, type the following:
%WinDir%\System32msiexec /i \\path\Directory\MOMAgent.msi /qn USE_MANUALLY_SPECIFIED_SETTINGS=0
The preceding command line will install and configure the Operations Manager 2007 Agent to not get Management Group settings from the command line (USE_MANUALLY_SPECIFIED_SETTINGS=0).
See Also
Tasks
How to Approve an Operations Manager 2007 Agent Installed for a Management Group Using MOMAgent.msi
How to Configure Security for Manual Agent Installs Setting for an Operations Manager 2007 Management Group
How to Deploy the Operations Manager 2007 Agent to Windows-Based Computers from the Operations Console
How to Deploy the Operations Manager 2007 Agent Using the Agent Setup Wizard
Concepts
About Deploying Operations Manager 2007
About Operations Manager 2007
Configuring Objects to Be Managed by Operations Manager 2007