Ad Widget

Collapse

vmbix connection problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Syl20
    Junior Member
    • Oct 2015
    • 6

    #1

    vmbix connection problem

    Hello,

    I'm encountering an issue when I try to connect vmbix.

    When I try to connect directly with this following command it's ok:

    Code:
    [root@QYVZL1023028 sbin]# ./vmbix -P 12050 -u "vsphere.local\\zabbix" -p "mypassword" -s https://vcenter.mydomain/sdk
    log4j:WARN No appenders could be found for logger (com.vmware.vim25.ws.XmlGenDom).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    16:20:21.312 [main] INFO net.dav3860.VmBix - starting server on port 12050
    16:20:21.323 [main] INFO net.dav3860.VmBix - server started

    But if i try to launch the deamon with the same parameters I have this error message :
    Code:
    [root@QYVZL1023028 sbin]# service vmbixd start
    Démarrage de vmbixdÂ*:                                    [  OK  ]
    [root@QYVZL1023028 sbin]# log4j:WARN No appenders could be found for logger (com.vmware.vim25.ws.XmlGenDom).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    com.vmware.vim25.InvalidLogin
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
            at java.lang.Class.newInstance(Class.java:374)
            at com.vmware.vim25.ws.XmlGenDom.fromXml(XmlGenDom.java:219)
            at com.vmware.vim25.ws.XmlGenDom.parseSoapFault(XmlGenDom.java:147)
            at com.vmware.vim25.ws.XmlGenDom.fromXML(XmlGenDom.java:105)
            at com.vmware.vim25.ws.SoapClient.unMarshall(SoapClient.java:212)
            at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:93)
            at com.vmware.vim25.ws.VimStub.login(VimStub.java:1732)
            at com.vmware.vim25.mo.SessionManager.login(SessionManager.java:153)
            at com.vmware.vim25.mo.ServiceInstance.login(ServiceInstance.java:238)
            at com.vmware.vim25.mo.ServiceInstance.constructServiceInstance(ServiceInstance.java:131)
            at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:104)
            at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:94)
            at net.dav3860.VmBix.updateConnection(VmBix.java:435)
            at net.dav3860.VmBix.server(VmBix.java:487)
            at net.dav3860.VmBix.main(VmBix.java:234)
    I found nothing about this error... I can see the com.vmware.vim25.InvalidLogin issue but the parameters are corrects..

    Any idea ?

    thanks for your help

    Sylvain
  • Jason
    Senior Member
    • Nov 2007
    • 430

    #2
    Is your username in domain\name format or just name?

    I've found that if it's in domain\name then that works on command line, but in file it needs to be domain\\name to work properly.

    Comment

    • Syl20
      Junior Member
      • Oct 2015
      • 6

      #3
      Hi Jason

      I tried different things
      -domain\name
      -domain\\name
      -domain@name
      -name@domain
      -local vmware account

      Nothing work..

      Comment

      Working...