EM12cR3 Windows Agent Deployment

Embed Size (px)

Citation preview

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    1/16

    EM12cR3 Windows Host discovery and Agent Deployment Procedure

    Install and Configure Cygwin on Windows 32 hosthttp://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.

    htm#CBHIAFGI

    Step 1. Making Sure we dont have any SSH client installed already

    1.2 Ensure OpenSSH\bin and mksnt are not in your PATH environment variable. Ifthey are, remove them by doing the following:

    Right-click on My Computer and go to Properties.

    In the System Properties window, click Advanced.In this tab, click Environment Variables.

    Here, search for the PATH system variable, select it, and if the OpenSSH\bin andmksnt are present in PATH, click Edit.

    In the Edit System Variable dialog box, delete these two values from PATH,then clickOK.

    http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#CBHIAFGIhttp://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#CBHIAFGIhttp://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#CBHIAFGIhttp://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#CBHIAFGI
  • 7/29/2019 EM12cR3 Windows Agent Deployment

    2/16

    1.2 Stop the SSH Daemon if it is running from OpenSSH, MKS or any other vendor. Ifthe SSH Daemon is running, stop it by doing the following:

    Right-click on My Computer, and select Manage.

    In the Computer Management window, in the left pane, expand Services andApplications, and select Services.

    In the right pane, click the SSH Daemon/MKS Secure Shell service, then click theStop button.

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    3/16

    Step 2: Installing CYGWIN2.1 download the software

    http://www.cygwin.com/

    32bit softwarehttp://cygwin.com/setup-x86.exe

    64 bit softwarehttp://cygwin.com/setup-x86_64.exe

    http://www.cygwin.com/http://cygwin.com/setup-x86.exehttp://cygwin.com/setup-x86_64.exehttp://www.cygwin.com/http://cygwin.com/setup-x86.exehttp://cygwin.com/setup-x86_64.exe
  • 7/29/2019 EM12cR3 Windows Agent Deployment

    4/16

    2.2 copy the software to server2.3 check whether internet is working on the server, If not get temporary proxysetup done for the server

    2.3: Start the On the Choose Installation Type screen, select Install from Internet,then click Next.

    2.4 On the Choose Installation Directory screen, enter C:\cygwin as the RootDirectory, then click Next.

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    5/16

    2.5 On the Select Local Package Directory screen, select a directory on your localmachine where you want to store the downloaded installation files, then click Next.

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    6/16

    2.6 On the Select Connection Type screen, select appropriate settings to connect tothe internet, then click Next.

    2.7 On the Choose Download Site(s) screen, select any site from the available list,then click Next.

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    7/16

    2.8 On the select packages screen, ensure that you select the following packages,then click Next:

    2.9 After selecting the packages and clicking Next, the Resolving Dependenciesscreen is displayed. Click Next to proceed.

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    8/16

    2.10 On the Installation Status and Create Icons screen, do not make any changes.Click Finish to complete the installation process.

    Step 3 : Configuring SSH After Installing Cygwin

    3.1 After you install Cygwin, navigate to the C:\cygwin directory, open the

    Cygwin.bat file in edit mode using any editor, and add the following line beforeinvoking the bash shell.

    set CYGWIN=binmode ntsec

    For example, here are the contents for the Cygwin.bat file after adding the aboveline:

    @echo off

    C:chdir C:\cygwin\bin

    set CYGWIN=binmode ntsecbash --login i

    3.2To verify if Cygwin (cygrunsrv) is installed properly, run C:\cygwin\Cygwin.bat,and execute the following command:

    cygrunsrv h

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    9/16

    If Cygwin is installed properly, then all the Cygwin help options are displayed on thescreen. However, if this command returns an error message, then you may have toreinstall Cygwin.3.3To install the SSHD service, run C:\cygwin\Cygwin.bat, and execute thefollowing command:

    ssh-host-configAfter running the command, you are prompted the following questions:

    *** Query: Should privilege separation be used? : yes*** Query: New local account 'sshd'? : yes*** Query: Do you want to install sshd as a service?*** Query:

    : yes*** Query: Enter the value of CYGWIN for the deamon: [] binmode ntsec*** Query: Do you want to use a different name? (yes/no) yes/no

    At this point, if you want to use the same name, that is cyg_server,enter no. You are then prompted the following questions:

    *** Query: Create new privileged user account 'cyg_server'? (yes/no)yes*** Query: Please enter the password:*** Query: Renter:However, if you want to use a different name, enter yes. You are then

    prompted the following questions:

    *** Query: Enter the new user name: cyg_server1*** Query: Reenter: cyg_server1*** Query: Create new privileged user account 'cyg_server1'? (yes/no)yes

    *** Query: Please enter the password:*** Query: Reenter:If the configuration is successful, you will see the following

    message:

    Host configuration finished. Have fun!

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    10/16

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    11/16

    3.4 Perform the following steps to start the SSH daemon:

    Right-click on My Computer, and select Manage.

    In the Computer Management dialog box that appears, go to Services andApplications, and select CYGWIN sshd.

    Click CYGWIN sshd, then click the Start button.

    Step 4 : Prepare the host for pushing agent

    4.1 create a directory 12.1.0.3_agent under product directory of oracle home.

    Create Directory

    4.2 get the dbsnmp user account unlocked

    SQL> alter user dbsnmp identified by ######### account unlock;

    User altered.

    Step 5 : Push agent from 12cR3 oms

    5.1.Setup -> add target -> add target manually

    5.2 Type the hostname and choose the platform from drop down list

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    12/16

    5.3 Specify the directory we created step 4.1Use the port 3873Use named credential NC_HOST_WIN%

    And press Ok

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    13/16

    5.4 wait while the installation completes

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    14/16

    5.5 click on done

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    15/16

    Step 6 :ADD database targets

    6.1 Setup -> add target -> add target manually

    6.2 type the hostname we just added to en12c in step 5

  • 7/29/2019 EM12cR3 Windows Agent Deployment

    16/16

    6.3 type in the dbsnmp password and test connection groups

    6.4 while adding the target make sure , please specify the location of the databasein details.