Openwsman enumerate probléma

0 votes
asked Apr 15, 2016 in IRF tantárgy by kricsi (69 points)  

Sziasztok!

Az alábbi parancsra kapok mindig hibát:

wsman enumerate --hostname localhost -u 104058 -p rjZJGcCv \ 'http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Processor'

A kimenet a következő:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
  <s:Header>
    <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
    <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
    <wsa:RelatesTo>uuid:d059058f-3088-1088-8002-1a2423565000</wsa:RelatesTo>
    <wsa:MessageID>uuid:d076687f-3088-1088-8007-1a2423565000</wsa:MessageID>
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>wsa:DestinationUnreachable</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text xml:lang="en">No route can be determined to reach the destination role defined by the WS-Addressing To.</s:Text>
      </s:Reason>
      <s:Detail>
        <wsman:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InvalidResourceURI</wsman:FaultDetail>
      </s:Detail>
    </s:Fault>
  </s:Body>
</s:Envelope>
Connection failed. response code = 400

A debug módban futtatott openwsman a következő log-ot adja:

Apr 15 18:50:53 [2829] Sock 8 accepted
Apr 15 18:50:53 [2829] Active sockets: 0, Thread Number: 0
Apr 15 18:50:53 [2829] 127.0.0.1:5985 connected IPv4 (socket 8)
Apr 15 18:50:54 [2829] Conn 8: parsing request: [POST /wsman HTTP/1.1
Authorization: Basic MTA0MDU4OnJqWkpHY0N2
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: WS-Management for all
Content-Length: 915

]
Apr 15 18:50:54 [2829] parsing headers (len 186): [Authorization: Basic MTA0MDU4 OnJqWkpHY0N2
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: WS-Management for all
Content-Length: 915

]
Apr 15 18:50:54 [2829] decide_what_to_do: [/wsman]
Apr 15 18:50:54 [2829] is_alias: aliases []
Apr 15 18:50:54 [2829] Done reading request
Apr 15 18:50:54 [2829] Inbound call...
Apr 15 18:50:54 [2829] uri:  http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/C IM_Processor, action: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerat e
Apr 15 18:50:54 [2829] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/ wsmanidentity.xsd
Apr 15 18:50:54 [2829] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schem a/2
Apr 15 18:50:54 [2829] Processing Filters: inbound
Apr 15 18:50:54 [2829] Checking Message ID: uuid:d059058f-3088-1088-8002-1a24235 65000
Apr 15 18:50:54 [2829] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/ wsmanidentity.xsd
Apr 15 18:50:54 [2829] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schem a/2
Apr 15 18:50:54 [2829] Release endpoint: 0x7f7dcdbd8440
Apr 15 18:50:54 [2829] No wsen:Expires
Apr 15 18:50:54 [2829] CIM Enumeration
Apr 15 18:50:54 [2829] username: 104058, password: XXXXX
Apr 15 18:50:54 [2829] Connecting using sfcc XML frontend
Apr 15 18:50:54 [2829] new cimclient: 0xc4003ab0
Apr 15 18:50:54 [2829] new cimclient: 1
Apr 15 18:50:54 [2829] no SelectorSet defined
Apr 15 18:50:54 [2829] method or action: Enumerate
Apr 15 18:50:54 [2829] method or action: Enumerate
Apr 15 18:50:54 [2829] resource uri namespace mismatch
Apr 15 18:50:54 [2829] cimclient destroyed
Apr 15 18:50:54 [2829] enumeration fault
Apr 15 18:50:54 [2829] destroy enuminfo
Apr 15 18:50:54 [2829] Processing Filters: outbound
Apr 15 18:50:54 [2829] destroy op
Apr 15 18:50:54 [2829] Inbound call completed
Apr 15 18:50:54 [2829] Response status=400 (Bad request)
Apr 15 18:50:54 [2829] 8 (null) stopped. 1124 of content data, 1124 now in a buf fer
Apr 15 18:50:54 [2829] Disconnecting 8 ()

Mi lehet a probléma?

Az OpenPegasus is el van indítva természetesen.

Előre is köszönöm!

1 Answer

0 votes
answered Apr 15, 2016 by kovari (2,221 points)  

Vedd ki azt a backslash-t.

commented Apr 15, 2016 by kricsi (69 points)  
Akkor meg ezt a logot adja:

Apr 15 20:41:30 [14642] Sock 8 accepted
Apr 15 20:41:30 [14642] Active sockets: 0, Thread Number: 0
Apr 15 20:41:30 [14642] 127.0.0.1:5985 connected IPv4 (socket 8)
Apr 15 20:41:31 [14642] Conn 8: parsing request: [POST /wsman HTTP/1.1
Authorization: Basic MTA0MDU4OktVcE5VaVlx
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: WS-Management for all
Content-Length: 870

]
Apr 15 20:41:31 [14642] parsing headers (len 186): [Authorization: Basic MTA0MDU4OktVcE5VaVlx
Host: localhost:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: WS-Management for all
Content-Length: 870

]
Apr 15 20:41:31 [14642] decide_what_to_do: [/wsman]
Apr 15 20:41:31 [14642] is_alias: aliases []
Apr 15 20:41:31 [14642] Done reading request
Apr 15 20:41:31 [14642] Inbound call...
Apr 15 20:41:31 [14642] uri: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Processor, action: http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
Apr 15 20:41:31 [14642] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Apr 15 20:41:31 [14642] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2
Apr 15 20:41:31 [14642] Processing Filters: inbound
Apr 15 20:41:31 [14642] Checking Message ID: uuid:5bf72560-308a-108a-8002-062423565000
Apr 15 20:41:31 [14642] namespace: http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
Apr 15 20:41:31 [14642] namespace: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2
Apr 15 20:41:31 [14642] Release endpoint: 0x7f8958669440
Apr 15 20:41:31 [14642] No wsen:Expires
Apr 15 20:41:31 [14642] CIM Enumeration
Apr 15 20:41:31 [14642] username: 104058, password: XXXXX
Apr 15 20:41:31 [14642] Connecting using sfcc XML frontend
Apr 15 20:41:31 [14642] new cimclient: 0x50003140
Apr 15 20:41:31 [14642] new cimclient: 1
Apr 15 20:41:31 [14642] no SelectorSet defined
Apr 15 20:41:31 [14642] method or action: Enumerate
Apr 15 20:41:31 [14642] method or action: Enumerate
Apr 15 20:41:32 [14642] enumInstances() rc=1, msg=Invalid username/password
Apr 15 20:41:32 [14642] *** CMCIClient enumInstances() failed
Apr 15 20:41:32 [14642] cimclient destroyed
Apr 15 20:41:32 [14642] enumeration fault
Apr 15 20:41:32 [14642] destroy enuminfo
Apr 15 20:41:32 [14642] Processing Filters: outbound
Apr 15 20:41:32 [14642] destroy op
Apr 15 20:41:32 [14642] Inbound call completed
Apr 15 20:41:32 [14642] Response status=500 (Internal Error)
Apr 15 20:41:32 [14642] 8 (null) stopped. 919 of content data, 919 now in a buffer
Apr 15 20:41:32 [14642] Disconnecting 8 ()

Nem tetszik neki a username/passwd-öm
commented Apr 15, 2016 by kovari (2,221 points)  
És maga a lekérdezés mit ad? (ezt a logot most nem nyálazom végig) A pegasus csoporthoz amúgy hozzáadtad a usert?
commented Apr 15, 2016 by kricsi (69 points)  
Ja hogy ilyen hozzáadást is kell csinálni... gondoltam átlépem az openpegasusos részt gyakanyagban mondván hogy nem kell, de több időt vesztettem mintha végigmentem volna azon is.
Köszönöm a segítséget!
commented Apr 15, 2016 by kovari (2,221 points)  
Igen, az is kell :) anélkül nem tudsz lekérdezni semmit sem. Nincs mit, jó munkát.
commented Apr 15, 2016 by kricsi (69 points)  
Még egy kérdés: Nekem az van a feladatleírásban, hogy WS-management-el kell megoldanom. Akkor használhatok sima wbemcli lekérdezéseket is vagy csak wsman-os lekérdezéseket?
commented Apr 15, 2016 by kovari (2,221 points)  
Csak wsman. Lásd Összefoglaló rész a jegyzetben.
...