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!