2 Replies Latest reply on Dec 27, 2010 2:56 AM by Frank NameToUpdate

    Jython does not see authentication profile on Windows system

      Hi all,


      I am trying to connect to my AppServer on a different system using jython from my Windows based System with only the GUI installed.

      Jython does load correctly and I can import the bladelogic.cli class. But jython does not see the profile.


      The exact code does work on the AppServer without any issue.


      mySystem% bljython
      Jython 2.2.1 on java1.6.0_13
      Type "copyright", "credits" or "license" for more information.
      >>> import bladelogic.cli.CLI as blcli
      >>> import os
      >>> os.system("blcred cred -acquire -profile IT -username user -password xxxx")
      Authentication succeeded: acquired session credential
      >>> jli=blcli.CLI()
      >>> jli.setUserName('user')
      >>> jli.setPassword('xxxx')
      >>> jli.setRoleName('INFRA_BLAdmins')
      >>> jli.setAppServerHost('AppServer')
      >>> jli.setServiceProfileName('IT')
      >>> jli.connect()
      Traceback (innermost last):
        File "<console>", line 1, in ?
        File "C:\Program Files\BMC Software\BladeLogic\8.0\NSH\br\jython\bladelogic\cli\CLI.py", line 84, in connect
              at com.bladelogic.cli.CliLoginOperations.getSessionCredentialFromCache(CliLoginOperations.java:177)
              at com.bladelogic.cli.CliLoginOperations.obtainSessionCredential(CliLoginOperations.java:90)
              at com.bladelogic.session.client.SessionLoginManager.connect(SessionLoginManager.java:160)
              at com.bladelogic.session.client.SessionLoginManager.login(SessionLoginManager.java:89)
              at com.bladelogic.cli.CLIMain.loginToAppServer(CLIMain.java:669)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)

      com.bladelogic.session.client.SessionLoginException: com.bladelogic.session.client.SessionLoginException: No authenticat
      ion profile matching service profile name "IT".


      Why does jython not see my profile? Any ideas what I need to configure to get it to work?