1 Reply Latest reply: Aug 16, 2013 1:44 PM by Loc Nhan -Oracle RSS

    connection to OMS from emcli

    Andrey Goryunov

      Hi,

       

      I have EM 12c rel 3 installed on Linux and am trying to connect to it from emcli in interactive mode from windows machine

      I installed emcli advanced kit and did setup for it so able to execute verbs

       

      However attempts to connect to OMS in interactive mode lead to the error.

       

      C:\MyDocs\oracle\em\emcli>emcli

      Oracle Enterprise Manager 12c EMCLI with Scripting option Version 12.1.0.3.0.

      Copyright (c) 1996, 2013 Oracle Corporation and/or its affiliates. All rights reserved.

       

       

      Type help() for help and exit() to get out.

       

       

      emcli>set_client_property('EMCLI_OMS_URL','https://192.168.1.17:7799/em')

      emcli>set_client_property('EMCLI_TRUSTALL','true')

      emcli>login(username='sysman',password='sys_pwd')

      Error: Connection to the current OMS could not be established. Check the log files for further details

       

       

      emcli>

       

      At the same time I have no problems to connect to OMS from emcli on the OMS host

        • 1. Re: connection to OMS from emcli
          Loc Nhan -Oracle

          To rule out any network/firewall causes, verify if you can to connect to the OMS host on port 7799 from the Windows machine in question.

           

          For example, if you have telnet on the machine, you can try the following:

           

          $ telnet  192.168.1.17 7799

           

          You should see something like:

          Trying ... 192.168.1.17 ..

          Connected to <hostname> (192.168.1.17).

          Escape character is '^]'.

           

          You can also check if you are able to connect to the console on URL https://192.168.1.17:7799/em from the Windows machine.

           

          Regards,

          - Loc