Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, February 8, 2016 5:26 PM
I am trying to get some info on my array controller remotely on an HP server. HP provides a namespace for this, and a class about the array controller. The following, using the get-WMIObject command, works:
Get-WMIObject -ComputerName server01 -Namespace "root\hpq" -ClassName HPSA_ArrayController
However, this does not:
Get-CimInstance -ComputerName server01 -Namespace "root\hpq" -ClassName HPSA_ArrayController
It gives me the following error: "The WS-Management service cannot process the request. The DMTF class in the repository uses a different major version number from the requested class. This class can be accessed using a non-DMTF resource URI."
What is more puzzling is that if I enter a remote session to server01 and run the Get-CimInstance command (without the computername parameter, of course), it gives me a result as expected. I should also point out that querying information remotely using Get-CimInstance for other namespaces (e.g. root\cimv2) works fine.
Any idea what may be going on?
Eric Hodges
All replies (7)
Monday, February 8, 2016 5:35 PM ✅Answered
I suggest posting in HP management forum for this. It is a side effect of the version and H may have an update or it may be a bug.
\(ツ)_/
Wednesday, February 10, 2016 6:11 AM
Hello,
I agree with Jrv. According to the error message, "The DMTF class in the repository uses a different major version number from the requested class. This class can be accessed using a non-DMTF resource URI.", it seems the class is something special.
Please post in the HP forum to check whether Namespace "root\hpq" can be accessed remotely by using Get-CimInstance command.
Regards,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected].
Wednesday, February 10, 2016 2:14 PM
Thank you both. I have posted a question here in the HP forums. No answer yet, but I'll update this thread if I get a response.
Eric Hodges
Wednesday, February 17, 2016 6:13 AM
Hello,
Any update about the issue? Did you get response from HP? If you get a response, please share the result here so that it can help others with the same question.
Thanks,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected].
Thursday, February 18, 2016 6:59 PM
No updates or responses from HP. If they should ever provide one, I'll update this thread. There is also the link in my previous post if anyone else has the problem and wants to see my forum post and encourage HP to respond to it.
Eric Hodges
Thursday, November 29, 2018 9:24 AM
By default, Get-CimInstance is using the WSMan protocol to work with the remote computers.
Specify the DCOM protocol first, using the New-CimSessionOption and New-CimSession:
$cso = New-CimSessionOption -Protocol Dcom$cs = New-CimSession -ComputerName server01 -SessionOption $csoGet-CimInstance -CimSession $cs -Namespace "root\hpq" -ClassName HPSA_ArrayController
-aleksandar
Aleksandar Nikolić http://powershellers.blogspot.com http://twitter.com/alexandair
Thursday, November 29, 2018 5:19 PM
Please don't add answers that have nothing to do with the question. You are answering and old and answered topic. TRy carefully reading the question before answering.
\(ツ)_/