Automating agent deployment

Hi,
When using the mma agent for SCOM (link below), is there a way to automate deployment of this exe? It's not the agent that comes with SCOM, it's the one Microsoft further developed:
http://www.microsoft.com/en-gb/download/details.aspx?id=40316
Thanks

Hi GSS1,
You can automate in this way. Make a CSV file with name of the servers in it and using the below powershell command
(Works in Windows powershell) you can do a bulk install of agents via SCOM powershell by using the CLI discovery wizard.
Refer this thread of mine: 
http://social.technet.microsoft.com/Forums/en-US/9c637551-83aa-4ef2-a777-c47a501e7e02/ops-manager-2007-r2-to-ops-manager-2012-r2-bulk-agent-migration-via-power-shell-for-different?forum=operationsmanagergeneral
Just use the below script to do it. Just change the highlighted/bolded lines as per your request (i.e Management server name, file location)
=============================================
#Import PowerShell Modules 
import-module OperationsManager
#import-module ActiveDirectory
#Connect to OpsMgr Management Group
Start-OperationsManagerClientShell -ManagementServerName: "ManagementServerName"
-PersistConnection: $true -Interactive: $true;
Function InstallSCOMAgent {
    param ($TargetAgentList )
$Agents = $TargetAgentList
$PrimaryMgmtServer = Get-SCOMManagementserver -Name ManagementServerName
Install-SCOMAgent -Name $Agents -PrimaryManagementServer $PrimaryMgmtServer
$list = Import-Csv -Path 'CSV
file location'
foreach ($entry in $list)
    $objComputer = $objResult.Properties;
    # Get the computer ping properties
    $computer = $entry.ServerName
    # Ping the computer
    $pingStatus = Get-WmiObject -Class Win32_PingStatus -Filter "Address = '$computer'";
    if($pingStatus.StatusCode -eq 0)
        #If computer is up, write message and launch agent install
        Write-Host -ForegroundColor Green  "Reply received from $computer.";
                InstallSCOMAgent $Computer
    else
        #Else, just write a message indicating computer unreachable 
        Write-Host -ForegroundColor Red "No Reply received from $computer.";
Gautam.75801

Similar Messages

  • Oracle Enterprise Manager Agent deployment (Installation and Configuration) Error

    Hello,
    I am trying to create an agent on a linux server using Oracle Enterprise Manager 12.1.0.3. The user is created with root privilege on the server, by change /etc/sudoers entry username the same as the root entry. After that I tried to add host target by clicking Setup->Add Target->Add target Manually->Add Host Targets in the Oracle Enterprise Manager.
    In the Add Target view: I clicked on add, then I entry host and platform information. After that I click next. Then I provided the Linux x86-64 : Installation Details for
    Installation Base Directory, Instance Directory, Name Credential ... then click next. then click Deploy Agent.
    In the Add Host Status view: stages Initialization and Remote Prerequisite Check successfully passed, but in the stage Agent Deployment, it failed in the Installation and Configuration phrase of the Agent Deployment stage.
    The log content is shown below. There are numerous SEVERE Errors. But I don't have much experience in dealing with these type of problems. I thank you in advance for all the helps.
    lf
    WARNING: Validation of XML schema is disabled because AggregateDescriptions.xsd could not be found
    INFO: Creating new CFM connection
    INFO: Creating a new logger for oracle.sysman.top.agent
    INFO: Unmarshalling /users/ncgf/em_agent/core/12.1.0.3.0/inventory/ContentsXML/ConfigXML/oracle.sysman.top.agent.12_1_0_3_0.xml
    INFO: Creating a new logger for OuiConfigVariables
    INFO: Unmarshalling /users/ncgf/em_agent/core/12.1.0.3.0/inventory/ContentsXML/ConfigXML/OuiConfigVariables.1_0_0_0_0.xml
    INFO: Aggregate Description oracle.sysman.top.agent:12.1.0.3.0:common successfully loaded
    INFO: Aggregate Description OuiConfigVariables:1.0.0.0.0:common successfully loaded
    INFO: Successfully returning from CfmFactory.connect()
    INFO: Cfm.save() was called
    INFO: Cfm.save(): 2 aggregate instances saved
    INFO: oracle.sysman.top.agent:IAction.perform() was called on {Action state:configuration in CfmAggregateInstance: oracle.sysman.top.agent:12.1.0.3.0:common:family=CFM:oh=/users/ncgf/em_agent/core/12.1.0.3.0:label=1}
    INFO: Framework waiting for Action to complete at 15:08:10.272
    INFO: CfwProgressMonitor:actionProgress:About to perform Action=configuration Status=is running with ActionStep=0 stepIndex=0 microStep=0
    WARNING: Skipping environment variable line: "}": oracle.sysman.emCfg.common.CfwException: A non-empty environment line must contain "=": }
    WARNING: Failed to read environment variable file /users/ncgf/em_agent/core/12.1.0.3.0/install/envVars.properties: java.io.FileNotFoundException: /users/ncgf/em_agent/core/12.1.0.3.0/install/envVars.properties (No such file or directory)
    INFO: oracle.sysman.top.agent:About to execute plug-in Agent Configuration Assistant
    INFO: oracle.sysman.top.agent:The plug-in Agent Configuration Assistant is running
    INFO: oracle.sysman.top.agent:Internal PlugIn Class: oracle.sysman.agent.config.AgentConfiguration
    INFO: oracle.sysman.top.agent:Classpath = /users/ncgf/em_agent/core/12.1.0.3.0/oui/jlib/srvm.jar:/users/ncgf/em_agent/core/12.1.0.3.0/jlib/agentConfig.jar:/users/ncgf/em_agent/core/12.1.0.3.0/jlib/emConfigInstall.jar:/users/ncgf/em_agent/core/12.1.0.3.0/sysman/jlib/emagentSDK.jar:/users/ncgf/em_agent/core/12.1.0.3.0/modules/oracle.http_client_11.1.1.jar:/users/ncgf/em_agent/core/12.1.0.3.0/sysman/jlib/log4j-core.jar
    INFO: oracle.sysman.top.agent:AgentConfiguration:agent configuration has been started
    INFO: oracle.sysman.top.agent:Parametes passed to agent configuration are:
    1.ORACLE_HOME=/users/ncgf/em_agent/core/12.1.0.3.0
    2.AGENT_PORT=3872
    3.ORACLE_HOSTNAME=nsn175-89.us.oracle.com
    4.b_doDiscovery=false
    5.AGENT_BASE_DIR=/users/ncgf/em_agent
    6.AGENT_INSTANCE_HOME=/users/ncgf/em_agent/agent_inst
    7.s_hostname=nsn175-89.us.oracle.com
    8.OMS_HOST=nsn175-105.us.oracle.com
    9.b_startAgent=false
    10.b_secureAgent=true
    11.b_chainedInstall=false
    12.b_forceConfigure=false
    13.EM_UPLOAD_PORT=4904
    14.b_forceAgentDefaultPort=false
    15.s_staticPorts=
    16.PROPERTIES_FILE=
    b_skipValidation=false
    INFO: oracle.sysman.top.agent:Validating OMS_HOST and EM_UPLOAD_PORT
    INFO: oracle.sysman.top.agent:Validating with http protocol ...
    INFO: oracle.sysman.top.agent:URL framed is:http://nsn175-105.us.oracle.com:4904/empbs/genwallet
    SEVERE: oracle.sysman.top.agent:Connection refusedUnexpected end of file from server
    INFO: oracle.sysman.top.agent:Validating with https protocol ...
    INFO: oracle.sysman.top.agent:URL framed is:https://nsn175-105.us.oracle.com:4904/empbs/genwallet
    SEVERE: oracle.sysman.top.agent:The EM_UPLOAD_PORT passed is a secure port. Hence AGENT_REGISTRATION_PASSWORD or s_encrSecurePwd should be passed
    INFO: oracle.sysman.top.agent:EM Protocol Switch determined: https
    INFO: oracle.sysman.top.agent:Performing free port detection..
    INFO: oracle.sysman.top.agent:Trying for host : nsn175-89/10.134.175.89 and port : 3872
    INFO: oracle.sysman.top.agent: Trying for host : /127.0.0.1 and port : 3872
    INFO: oracle.sysman.top.agent:** Agent Port Check completed successfully.**
    INFO: oracle.sysman.top.agent:Agent Port from User Passed Port3872
    INFO: oracle.sysman.top.agent:Paths after canonical format conversions are :
    1. state_dir=/users/ncgf/em_agent/agent_inst
    2. agentBaseDir=/users/ncgf/em_agent
    3. oraHome=/users/ncgf/em_agent/core/12.1.0.3.0
    INFO: oracle.sysman.top.agent:Parent directory of agent instance home:/users/ncgf/em_agent
    INFO: oracle.sysman.top.agent:AgentConfiguration:perform:AgentPortHandler for /users/ncgf/em_agent/core/12.1.0.3.0 and hosts=nsn175-89.us.oracle.com returned Port to Use=3872
    INFO: oracle.sysman.top.agent:Instantiating emctl.template file #DEFAULT_EMSTATE# with /users/ncgf/em_agent/agent_inst
    INFO: oracle.sysman.top.agent:Writing the following contents into /users/ncgf/em_agent/core/12.1.0.3.0/install/oragchomelist
    INFO: oracle.sysman.top.agent:/users/ncgf/em_agent/core/12.1.0.3.0:/users/ncgf/em_agent/agent_inst
    INFO: oracle.sysman.top.agent:Both /etc/oragchomelist and /var/opt/oracle/oragchomelist does not exist.
    INFO: oracle.sysman.top.agent:Executing emctl deploy agent command...
    INFO: oracle.sysman.top.agent:AgentConfiguration: Executing emctl deploy agent command...
    INFO: oracle.sysman.top.agent:Executing the command: /users/ncgf/em_agent/core/12.1.0.3.0/bin/emctl deploy agent -L -o nsn175-105.us.oracle.com:4904 -N /users/ncgf/em_agent/agent_inst nsn175-89.us.oracle.com:3872 nsn175-89.us.oracle.com
    INFO: oracle.sysman.top.agent:Creating shared install...
    INFO: oracle.sysman.top.agent:Source location: /users/ncgf/em_agent/core/12.1.0.3.0
    INFO: oracle.sysman.top.agent:Destination (shared install) : /users/ncgf/em_agent/agent_inst
    INFO: oracle.sysman.top.agent:Secure Mode: No
    INFO: oracle.sysman.top.agent:DeployMode : agent
    INFO: oracle.sysman.top.agent:
    INFO: oracle.sysman.top.agent:Creating directories...
    INFO: oracle.sysman.top.agent:Creating private.properties...
    INFO: oracle.sysman.top.agent:Creating blackouts.xml...
    INFO: oracle.sysman.top.agent:Creating targets.xml...
    INFO: oracle.sysman.top.agent:Creating emctl control program...
    INFO: oracle.sysman.top.agent:Creating emtgtctl control program...
    INFO: oracle.sysman.top.agent:Agent will not be secured.
    INFO: oracle.sysman.top.agent:Secure REPOSITORY_URL found. New agent should be configured for secure mode
    INFO: oracle.sysman.top.agent:Secure emdWalletSrcUrl found. New agent should be configured for secure mode
    INFO: oracle.sysman.top.agent:Oracle Enterprise Manager Cloud Control 12c Release 3
    INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
    INFO: oracle.sysman.top.agent:Property 'agentTZRegion' is  missing from /users/ncgf/em_agent/agent_inst/sysman/config/emd.properties. Updating it...
    INFO: oracle.sysman.top.agent:An agentTZregion of 'US/Pacific' is installed in /users/ncgf/em_agent/agent_inst/sysman/config/emd.properties.
    INFO: oracle.sysman.top.agent:The command: /users/ncgf/em_agent/core/12.1.0.3.0/bin/emctl deploy agent -L -o nsn175-105.us.oracle.com:4904 -N /users/ncgf/em_agent/agent_inst nsn175-89.us.oracle.com:3872 nsn175-89.us.oracle.com completed with status=0
    SEVERE: oracle.sysman.top.agent:Securing of agent step will be skipped because of the following reasons:
    1. Agent Registration Password was not passed.
    2. b_secureAgent was passed as false
    3. The flag -forceConfigure was assed from agentDeploy.sh
    INFO: oracle.sysman.top.agent:Plugin File:/users/ncgf/em_agent/plugins.txt
    INFO: oracle.sysman.top.agent:Plugin Homes found.
    INFO: oracle.sysman.top.agent:Executing command :/users/ncgf/em_agent/core/12.1.0.3.0/perl/bin/perl /users/ncgf/em_agent/core/12.1.0.3.0/bin/AgentPluginDeploy.pl -oracleHome /users/ncgf/em_agent/core/12.1.0.3.0 -agentDir /users/ncgf/em_agent -pluginIdsInfoFile /users/ncgf/em_agent/plugins.txt -action configure -emStateDir /users/ncgf/em_agent/agent_inst
    INFO: oracle.sysman.top.agent:
    INFO: oracle.sysman.top.agent:
    INFO: oracle.sysman.top.agent:The Agent emStateDir location passed is /users/ncgf/em_agent/agent_inst
    INFO: oracle.sysman.top.agent: The log file is /users/ncgf/em_agent/agent_inst/install/logs/agentplugindeploy_2013_10_16_15_08_11.log
    INFO: oracle.sysman.top.agent: The temp file created to check R/W permissions in Oraclehome: /users/ncgf/em_agent/core/12.1.0.3.0 is /users/ncgf/em_agent/core/12.1.0.3.0/rwFile
    INFO: oracle.sysman.top.agent:Plugin command completed with status=0
    INFO: oracle.sysman.top.agent:Executing command :/users/ncgf/em_agent/agent_inst/bin/emctl listplugins agent -type all
    INFO: oracle.sysman.top.agent:Oracle Enterprise Manager Cloud Control 12c Release 3
    INFO: oracle.sysman.top.agent:Oracle Enterprise Manager Cloud Control 12c Release 3
    INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
    INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
    INFO: oracle.sysman.top.agent:---------------------------------------------------------------
    INFO: oracle.sysman.top.agent:---------------------------------------------------------------
    SEVERE: oracle.sysman.top.agent:ERROR: The Management Agent configuration failed. The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed, or this plug-in may not be present in the Management Agent software. Ensure that the Management Agent software has the oracle.sysman.oh monitoring plug-in, if not then retry the operation. If the agent software has the oracle.sysman.oh monitoring plug-in, view the plug-in deployment log /users/ncgf/em_agent/agent_inst/install/logs to check if the plug-in configuration for the oracle.sysman.oh monitoring plug-in failed.
    SEVERE: oracle.sysman.top.agent:Agent configuration has failed
    INFO: oracle.sysman.top.agent:AgentConfiguration:agent configuration finished with status = false
    INFO: oracle.sysman.top.agent:AgentConfiguration:agent configuration finished with status = false
    INFO: oracle.sysman.top.agent:The plug-in Agent Configuration Assistant has failed its perform method
    INFO: Cfm.save() was called
    INFO: Cfm.save(): 2 aggregate instances saved
    INFO: done waiting for Action from 15:08:10.272
    Thank you for your help AkankshaSheoranKaler. I have executed the following command based on your request. If there is any issue, please let me know. Thanks!
    "Can you run this command to make sure that the agents bits were downloaded correctly : oms home /bin /emcli verify_updates
    Share the output of the command. I am suspecting this is a know issue (Bug 17300008) but i will wait for your output.  Also if you can open an SR with oracle support to track this issue and its resolution. "
    [ncgf@nsn175-105 bin]$ ./emcli setup -url=https://nsn175-105.us.oracle.com:7803/em -u sername=SYSMAN
    Oracle Enterprise Manager 12c 3.
    Copyright (c) 1996, 2013 Oracle Corporation and/or its affiliates. All rights reserve d.
    The configuration directory "/users/ncgf" may not be local. See the "dir" option in t he help for the setup command.
    Do you want to continue using this directory? [yes/no] yes
    Enter password
    Emcli setup successful
    [ncgf@nsn175-105 bin]$ ./emcli verify_updates
    Verifying updates. Starting validation...
    Type       : Plug-in
    Description: Demo Hostsample Test Plugin
    Attributes
            Version: 1201000100
            Revision: 0
            OS Platform: Generic Platform
            Plug-in Name: Demo Host Sample Plugin
    Archives are missing from the Software Library. Unable to determine the URL for downloading the update. The update might not have come from Oracle Enterprise Manager Store.
    For each update with missing archives, emcli import_update can be used with a -force option to re-upload the archives to the Software Library.

       Hello AkankshaSheoranKaler
    We have done the following, but we aren't able to resolve this issue. Thank you for your help!
    lf
    “This  happen if the software library is not accessible, readable or unmounted (if it is in shared file system).”
    On Enterprise Manager server [nsn175-105], we did the following:
    1. we modified /etc/exports to include this line: /export *(rw,no_root_squash,sync)
    we start nfs service by executing command “service nfs start”.  
    On Management Agent server (nsn175-89), we verified that we are able to mount /export directory of EM server.
    On Management Agent server, we started firefox browser and were able to run successfully https://nsn175-105.us.oracle.com:4904/empbs/genwallet
    After making this change, we ran agent deployment again. We encountered the same error as shown above.
    “You can fix the software library or you can download the agent bits in offline mode.”
    For fixing the software library, select Setup->Provision and Patching->Offline Patching, then select Offline Patching radio button, download: https://updates.oracle.com/download/em_catalog.zip. Next upload this zip file.
    “Try downloading the bits again”
    We are not sure what agent bits are. Would you please explain this and provide procedure how we can download this?
    (Here I have attempted to fix the software library, but I am new to Enterprise Manager and not sure how to interpret this).

  • Install agent on solaris 10 using agent deploy application?

    Hi all,
    I have installed 10g grid control on solaris 10 with new repository database on same machine.
    The OMS, and agent is running on grid host.
    Now I want to add other hosts (targets) into grid. For this, I have to install agent on target hosts. I am using agent deploy application method for installation of agent.
    It is giving error
    Istall --> Failed
    "Pre-Install Script is Not Executed, Install is Failed, Run root.sh is Not Executed, Post-Install Script is Not Executed, Collection of Logs is Success"
    version for agent and OMS is 10.2.0.1 and for repository database is 10.1.04
    any idea, how to troubleshoot this?

    Did you get answer? I had same problem on agent 10.2.0.4 deployment on linux 2.6.9-55.ELsmp.

  • SCOM 2012 R2 Agent Deployment - Uninstall Old and Install New

    By chance anyone come up with a scripted method for removing an existing SCOM 2012 SP1 agent and installing a new 2012 R2 agent? While I've come across a few scripts I'm trying to kill a few birds with one stone. This is a cross-domain attempt where the
    SCOM servers sit in one domain and the member servers are scattered across multiple domains. Member servers range from Windows Server 2003, 2008, and 2012. In most cases the servers have the 2012 SP1 agent installed and in some cases there are multiple management
    groups from previous SCOM standups. In addition there's a separate DEV SCOM 2012 R2 environment to manage DEV/QA servers. Active Directory Integration is configured and I have the necessary security groups created. There is a group policy created which is
    filtered to just that security group. So the plan is to simply drop the servers into the correct group and have the agent installed via group policy start up script. ADI should have DEV servers appear in DEV SCOM and PROD in PROD SCOM.
    Although there are ways to facilitate agent deployment via the console I need to perform a staged migration against a ton of server so as to not impact the existing production environment. So I'd rather do this remotely to pre-selected servers. This process
    should involve removing the existing agent, installing the new one, and if possible removing any existing management groups. So far I've come up with the following:
    Uninstall SCOM Agent:
    %WinDir%\System32\msiexec.exe /x <path>\MOMAgent.msi /qb
    Install SCOM Agent:
    msiexec.exe /i \\path\Directory\MOMAgent.msi /qn /l*v \logs\MOMAgent_install.log USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=<MG_Name> MANAGEMENT_SERVER_DNS=<MSDNSName> ACTIONS_USE_COMPUTER_ACCOUNT=0 ACTIONSUSER=<AccountUser> ACTIONSDOMAIN=<AccountDomain>
    ACTIONSPASSWORD=<AccountPassword>
    Remove Management Group via Script
    http://gallery.technet.microsoft.com/Remove-a-Management-group-336c849a/view/Discussions#content
    I'm guessing this wheel has already been invented or maybe there's a better way. So I'm open to ideas or suggestions.
    Any responses appreciated.

    Wow! 4 days and no responses, not good Microsoft SCOM Community. So here's a status on this issue.
    As stated I have Active Directory Integration configured which means:
    I see the OperationsManager container in AD: dev_scom
    I see the HealthService SCP and separate OU's for each of my management servers.
    I have an ADI security group containing my management servers and scom action account.
    I have an Agent security group which will contain servers the scom agent will be deployed via group policy.
    I also have an AD LDAP query set to target the SCOM agent group.
    (&(objectCategory=group)(name=DSCOM_ADI))
    I finally get the script to install via the following steps:
    Reference:
    http://technet.microsoft.com/en-us/library/cc754995.aspx
    http://technet.microsoft.com/en-us/library/cc770556.aspx
    http://blog.coretech.dk/msk/install-a-scom-2012-agent-silent/
    1. Launch Notepad ++ and enter the following:
    msiexec /i
    \\server.yourdomain.com\opsmgragent\%Processor_Architecture%\MOMAgent.msi USE_SETTINGS_FROM_AD=1 MANAGEMENT_GROUP=DEV_SCOM MANAGEMENT_SERVER_DNS=YourSCOMsrvr1.yourdomain.com ACTIONS_USE_COMPUTER_ACCOUNT=0 USE_MANUALLY_SPECIFIED_SETTINGS=0 ACTIONSUSER=svc_dscom
    ACTIONSDOMAIN=yourdomain ACTIONSPASSWORD=YourPassword! AcceptEndUserLicenseAgreement=1 /qn /l*v c:\scom2012r2mmainstall.log
    2. Save the script to a name of your choice. For me it's installdopsmgragent.cmd. Watch the extensions as you may end up saving it as installdopsmgragent.cmd.txt.
    Note: Make note of this steps in the reference articles listed above:
    "In the Add a Script dialog box, do the following:
    In the Script Name box, type the path to the script, or click Browse to search for the script file in the Netlogon shared folder on the domain controller."
    It's been a while since having to use a startup script so it took me a minute to figure this out. "getting too old 'fer this..."
    3. Copy the script to the Netlogon folder which is located in the following directory on my Windows 2012 server: E:\SYSVOL\sysvol\yourdomain.com\scripts
    4. Launch the group policy management console, create a new policy, edit it, and navigate to the following location:
    Computer Configuration > Policies > Windows Settings > Scripts (Startup/Shutdown)
    5. Double-click Startup to open the Startup Properties window.
    6. Click Add and browse to the location of the script which you copied to the Netlogon share.
    7. Click OK to close the Startup Properties window.
    8. Close the Group Policy Management Editor.
    9. Link the policy to an OU containing the servers.
    10. Add the SCOM Agent group to the Security Filtering area of the group policy. I also remove Authenticated Users.
    Note: make sure you have a few test servers in your Agent security group.
    11. Drop to a command line and run gpupdate /force. You can also use gpupdate /force /sync but you will have to reboot the box you're running this from.
    12. Log into one of the servers you have slated to deploy the agent to, drop to a command line, and run the same gpupdate command.
    13. Follow this with a gpresult /r command to ensure that you see the policy applied in the Computer Settings area.
    14. Reboot the server and you should see the startup script run.
    15. Log into the server and launch the Control Panel.
    16. If all went well you'll see the "Microsoft Monitoring Agent" icon.
    17. Launch Event Viewer, navigate to the Operations Manager events node located under Applications and Services Logs and validate the logs.
    17. If all didn't go well check the error log located, for me, on the C:\scom2012r2mmainstall.log
    My issue: I don't see the management info in the Agent properties.
    I installed this last night and waited until the next day still no changes. Event logs show the following:
    Event ID: 2011 The Health Service did not find any policy in Active Directory
    Event ID: 2003 No management groups were started.  This may either be because no management groups are currently configured or a configured management group failed to start.  The Health Service will wait for policy from Active Directory configuring
    a management group to run.
    I see the HealthService is Running in Task Manager on this server and of course I don't see anything listed in the Management Groups registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HealthService\Parameters\
    I don't want to manually add the management group info. Checking as I may have missed something in one of the switches. 
    Any responses appreciated.

  • How to recover from failed 12c agent deployment

    Greetings,
    I am in the process of upgrading to OEM 12c using the 2-System method and I am slowly making progress. Using the OEM 12c Upgrade Console I was able to get the Deploymnet/Configuration step to succeed but the Check Agent Readiness Step failed. I found the error in the <Agent_Instance_Home>/sysman/log/gcagent.log file on the target machine - ORA-12505, TNS:listener does not currently know of SID given in connect descriptor.
    Once I resolve that is it simply a matter of going to the Upgrade Console -> Deploy and Configure Agents page, select the cleanup failed deployments tab and go from there or is there something else I must do. I haven't been able to find specific instructions on how to proceed in such a situation.
    Thank you.
    Bill Wagman

    Hi Bill,
    Yes your understanding is correct, just slect the option " cleanup failed deployments " while doing the agent deployment and it will take care of everything.
    I also see that you have posted few queries in the forum about EM upgrade , i suggest you open an SR with oracle support , so that they can guide you through the upgrade process and help you in case of any issues. In case you have already opened an SR with support then pls ignore this suggestion. :)
    Regards
    Akanksha

  • Automation of deployment on Oracle 10g App Server

    Hi,
    Iam trying for automation of deployment on Oracle 10g Application Server.
    Oracle 10g (10.1.3.1.0) ant-oracle-classes.jar
    Any pointers for the same will be very very helpful.
    I googled for the documentation of [i]ant-oracle-classes.jar. But could not get any valid results. Can someone please help me out.
    If anyone has used/implemented the automation either thru Ant Tasks or J2EE Deployment API.
    Iam kinda badly stuck and Iam not getting any kind of help in Oracle Forums or even by googling, please please help me out.
    Regards,
    Prashanth Babu.

    Duplicate post:
    Oracle 10g App Server
    regards

  • Automated Database Deployment

    Hi,
    I am working on automated database deployment. I have scripted all my database scripts and created a project and solution.
    If I want to implement the new environment from the script I can use msbuild/sqlpackage to apply the all my scripts into that environment.
    I just want to apply only changes into test/prod environment ie., changes like ALTER TABLE, ALTER PROCEDURE,ALTER VIEW to the test/prod environment.
    I am pretty well aware of Redgate SQL Source control explorer and don't want to use it. I looking for MS utilities which can do the same.
    Regards,
    kccrga
    -kccrga http://dbatrend.blogspot.com.au/

    I am worked on this topic for a while and found MS Build can perform everything that other external tools can do.
    MS Build is freeware and when we integrate it with Team city it does wonders!
    -kccrga http://dbatrend.blogspot.com.au/

  • Cloud Control 12c Manual Agent deployment failed

    Agent Deployment fails
    •     EMCC 12c OMS Server node1 with os-username oemgrid
    •     Created the same os account on target server and granted it the same OS privs i.e., (dba os role).
    •     Initialization Phase -> Successful
    •     Remote Prerequisite check -> Successful
    •     Agent Deployment Failed
    ERROR: Execution of command /u01/emcc/agent12c/ADATMP_2011-10-22_23-50-30-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=rac1.respecti.com AGENT_BASE_DIR=/u01/emcc/agent12c OMS_HOST=emcc.respecti.com EM_UPLOAD_PORT=1159 AGENT_INSTANCE_HOME=/u01/emcc/agent12c/agent_inst b_doDiscovery=false b_startAgent=false 2>/u01/emcc/agent12c/ADATMP_2011-10-22_23-50-30-PM/logs
    CAUSE: Error Message Not Available. Exit Code 1.
    Agent Directory on Target is /u01/emcc/agent12c Owner:Group is oemgrid:dba from “/emcc/agent12c” . The “/u01” is owned by username “rac”.
    Red Hat Linux 5.6 64bit
    Any ideas on how to resolve this issue?
    AGENT_BASE_DIR=/u01/emcc/agent12c
    Validating the OMS_HOST & EM_UPLOAD_PORT
    Executing command : /u01/emcc/agent12c/core/12.1.0.1.0/jdk/bin/java -classpath /u01/emcc/agent12c/core/12.1.0.1.0/jlib/agentInstaller.jar:/u01/emcc/agent12c/core/12.1.0.1.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/emcc/agent12c/core/12.1.0.1.0 /u01/emcc/agent12c/ADATMP_2011-10-22_23-50-30-PM /u01/emcc/agent12c -prereq
    Validating oms host & port with url: http://emcc.respecti.com:1159/empbs/genwallet
    Validating oms host & port with url: https://emcc.respecti.com:1159/empbs/genwallet
    Return status:3
    Unzipping the agentcoreimage.zip to /u01/emcc/agent12c ....
    12.1.0.1.0_PluginsOneoffs_226.zip
    Executing command : /u01/emcc/agent12c/ADATMP_2011-10-22_23-50-30-PM/unzip -o /u01/emcc/agent12c/ADATMP_2011-10-22_23-50-30-PM/12.1.0.1.0_PluginsOneoffs_226.zip -d /u01/emcc/agent12c
    Checking the ownership of agent base directory:/u01/emcc/agent12c
    Checking for proper ownership on the agent base directory.
    Checks whether the agent base directory is owned by the agent user oemgrid and that its parent directory is owned by either the agent user or root.
    Login name is : oemgrid & file owner is : oemgrid
    ERROR : root dir is not owned by root user.

    Ensure that the root user owns the root directory. This is a prerequisite for installing an agent (in silent as well as GUI mode).
    See the prerequisite about "Installation Base Directory Requirements"in the Prerequisites section of the install guide:
    For Silent Instal (row 11): http://download.oracle.com/docs/cd/E24628_01/install.121/e22624/install_agent.htm#BABCFEGE
    For GUI Install (row 17) : http://download.oracle.com/docs/cd/E24628_01/install.121/e24089/install_agent_usng_rsp.htm#CEGIAADH
    Thanks!
    Edited by: user765751 on Oct 27, 2011 8:12 PM

  • ZCM Agent deployment for OS X Forum?

    Sorry for posting this in the Linux forum, but is there an agent
    deployment forum for the Mac agent?

    novell.support.zenworks.configuration-management.11.agent-deployment.mac
    On 2/26/2013 2:19 PM, Mike wrote:
    > Sorry for posting this in the Linux forum, but is there an agent
    > deployment forum for the Mac agent?
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • Mass Agent Deployment, fails when install

    After trying to install, sometimes not only one, the Mass Agent Deployment, release 10.1.0.3, in Linux RED HAT 3 ES/AS, when trying to run runInstaller, I have ever the same response, 'TMP directory is full or cannot write files in Orainst<timestamp> directory, needing 60 MB of free space.
    I have 16 GB of free space.
    Any help?
    thanks in advanced.
    regards.

    I solved it by doing following steps on the OMS server:
    # unzip <OMS_HOME>/agent_download/10.2.0.1.0/hpunix/prereqs/prereq_hpunix.jar
    # cd /oracle/product/oms10g/sysman/agent_download/
    # cd 10.2.0.1.0/hpunix/prereqs/prereqs/agent
    # vi oui_refhost.xml
    In this file replace the <PACKAGE VALUE= lines for something you have already installed, I used the secure shell package, which you must have installed to use agent deployment:
    <OPERATING_SYSTEM>
    <VERSION VALUE="B.11.11"/>
    <ARCHITECTURE VALUE="PA_RISC2.0"/>
    <NAME VALUE="HP-UX"/>
    <VENDOR VALUE="HP Corp"/>
    <PACKAGES>
    <PACKAGE VALUE="T1471AA" VERSION="0.0" />
    <PACKAGE VALUE="Secure_Shell" VERSION="0.0" />
    </PACKAGES>
    # zip -r prereqs.zip META-INF
    # zip -r prereqs.zip prereqs
    # mv prereqs.zip prereq_hpunix.jar
    After doing this retry the procedure.

  • Update:: New OTN Mass Agent Deployment page

    Hello Everyone,
    We have been seeing lot of customers downloading wrong Agent software from the OTN for the respective platforms and then in turn the installation fails.
    So we have revamped the OTN mass agent deployment page and came up with new page(http://www.oracle.com/wocportal/page/wocprod/ver-DRAFT/ocom/technology/software/products/oem/htdocs/agent/test-otn_0.html), which is Live now.
    The new page classifies the Agent software based on the platforms names (32 / 64 bit) and further classifies based on the Agent releases.
    This will leave us with no gap of downloading the wrong agent software for a 32 or 64 bit platform.
    Thanks and Regards
    Akanksha

    I don't know if it is possible to uninstall the agent from the GUI. We don't have the provisioning pack. I guess it may be possible to create a job that would run the installer in silent mode to do an un-install. We have just done them interactively on the target server - going under agent_home/oui/bin & running the installer. Then if there is anything left over from the agent_home, after the installer updates the central inventory file.
    If run the install interactively on the target server, you should get a meaningful error message. I would guess that it sees that the agent already exists from the inventory. You could try launching the installer from the oracle server software home & then remove the "orphaned" agent home.
    Thanks,
    Brian

  • Agent Deployment, Operation Timed Out - Solaris v5.10

    Hello,
    The agent has been gray since we upgraded to 2012R2, living on agent version 1.4.xxx. I tried to push an update to the agent but it failed. When I attempt to manually start/restart the agent, I get the following error. 
    ~>/opt/microsoft/scx/bin/tools/scxadmin -start
    svc:/application/management/scx-cimd:default enabled.
    svcadm: Instance "svc:/application/management/scx-cimd:default" is in maintenance state.
    RETURN CODE: 3
    After this, I put the machine into maintenance mode, and took it back out, and again tried to restart the agent. No luck.
    When I navigate to the directory, it clearly appears the SCOM directory does not exist. 
    Then I followed up by deleting the agent off of the SCOM console and now I am trying to deploy the agent. However, I get the following error:
    Failed during SSH discovery. Exit code: -2147221248
    Standard Output:
    Standard Error:
    Exception Message:Operation timed out
    Any idea guys?

    Verify you have removed and cleaned up the agent from the Solaris system by running the following on it.
    pkgrm MSFTscx
    Check
    the following as well for error -2147221248
    Possible causes:
    (Case A)
    The user credential provided for agent deployment or certificate signing does not have a home directory
    (Case B)
    Sudo elevation was selected in the user credential input, but the user credential provided is not correctly configured to use passwordless sudo elevation or the required sudo elevation privileges were not granted for the user account used in discover
    Resolutions:
    (Case A)
    Verify that the user has a home directory at:  /home/<username> and that the user is able to write to this directory
    (Case B)
    Review sudo elevation configuration documentation and verify user configuration for sudo. 
    Note that passwordless sudo must be configured. 
    Regards,
    -Steve

  • Mass Agent Deployment

    Can I download and install Mass Agent Deployment 10.2.0.4 on my target host instead of install agent 10.2.0.2 then upgrade agent to 10.2.0.4?
    any diffrence?
    Thanks.

    if the agent is available for your platform for mass agent deployment (http://www.oracle.com/technology/software/products/oem/htdocs/agentsoft.html) then this is possible.
    Best regards,
    Martin
    www.ora-solutions.net

  • Where can Iget Agent deploy application?

    Hi
    All
    Where can Iget Agent deploy application? is it a software? Is it comes with 10g grid control dvd?
    Thanks,
    Vishal

    Ok I got it. once we install the grid control there is one option called agent installation.
    Anyways thanks for your effort.
    Thanks,
    Vishal

  • SCCM Client Agent Deployment - Internet based client scenario

    Hi There,
    I need to deploy SCCM 2012 client agent and certificate to the machines not connected to the corporate LAN. I know that SCCM agent and certificate needs to be installed manually on them ( or via Group Policy ).... but here I'm talking about 2000 internet
    based machines.
    Can you please let me know the enterprise level best practice to capture those 2000 internet based machines.
    50% of these machines may not come on corporate network for very long time....so cannot capture them by Group Policy... How to capture those machines.... Has anyone worked on a solution to create some kind of portal etc...whose link we can provide to the
    users via email for them to just click and that installs both SCCM client agent and certificate....just a thought.
    Regards,
    Sam

    There is no best practice as that would imply that every organization is the same and should do it the same way.
    Ultimately, this challenge is unique to your organization -- not the specific ConfigMgr details, but how best to get it done within the resources and security posture of your organization.
    If your users are local admins and you have a VPN solution, then you can potentially just send them batch files to run (that install a cert and install the client agent) when they are connected via VPN. You could potentially expose both via an HTTP download
    and the CA web issuance pages also or using certutil (assuming the user has local admin permissions again). There simply are too many variables that are unique and specific to your environment to be able to describe any sort of complete solution.
    Ultimately, it comes down to two parts, neither of which is overly complicated (or magic):
    1. Request and install client auth certificate.
      - Must be done as local admin
      - Can be automated using certutil and PowerShell
    2. Install ConfigMgr client agent
      - Must be done as local admin
      - Must be initiated by running ccmsetup (with appropriate switches and properties)
      - Must have access to rest of client setup files either locally, via the Internet DP, or Internet MP
      - Must be able to communicate with MP
    I have seen folks publish scripts for this and web pages even so a little web searching may turn one of these up.
    Jason | http://blog.configmgrftw.com

Maybe you are looking for

  • How to create web-screen for own-created program

    Hi experts! Could you please  suggest me: Some of our end-users have to work with WEBGUI interface. In T-code VL02N we have our userexit SAPLZSDEXIT (Screen 0110). And in WEBGUI we don't see this tab in VL02N. I think I have to generate web-interface

  • Settings application is missing, how do I get it back?

    I went to add another wifi network and find that the settings application is nowhere to be found. I understand I need this to create another network connection. How do I recover it? Curt

  • Setting sql for a column

    Hi, is there a way to set sql query for a column? the query should take value from column in the table. in my case, it has come down for a need to have a nested select query inside my query: select app.application_id, (SELECT LISTAGG(typ.verification

  • Updating podcasts: Full menu not available

    I cannot force my podcasts to update by choosing the menu on the podcast when there is no specific podcast available on my iTunes. The full menu is available when the Podcast gropu has at least one specific podcast in it.

  • Need help with installing drivers

    I recently installed Windows 7 Professional and have been having trouble with installing the drivers necessary for sound, USB, graphics, etc. I have the Windows drivers on an external drive, but the OS won't recognize an external drive because it nee