Hi.! I would try to add sensor hyper v cluster shared Vol. Disk but i receive the error "The term 'Get-ClusterSharedVolume' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
How can i solve this.?
Thank you..!
Article Comments
Hyper v is running on Windows server 2008 R2. I run this command on powershell and run without errors, but in the sensor, when i add this for the server give me the error. Thanks.
Oct, 2015 - Permalink
Are the windows credentials within the device settings those from a system administrator? If not, can you try one?
Oct, 2015 - Permalink
Yes, i have the administrator windows credentials configured in the device, but i see the error.
Oct, 2015 - Permalink
Can you execute this in an administrative PowerShell console:
Enable-PSRemoting –force
If it's already enabled, execute this:
Get-Item –Path WSMan:\localhost\Client\TrustedHosts
Is the PRTG server already in that list? If not:
Set-Item –Path WSMan:\localhost\Client\TrustedHosts –Value your.prtg.server.fqdn.or.ip
Is this a sensor on a remote probe or on the core server?
Oct, 2015 - Permalink
Are you running the latest PRTG version as well (see www.paessler.com/prtg/history/stable)?
Nov, 2015 - Permalink
I'll forward this case to one of our developers; we'll be in touch as soon as we have something.
Nov, 2015 - Permalink
Does Import-Module FailoverClusters;
work properly? That's the module we're using. You'll need to have the Failover Clustering feature installed in order for this to get loaded - is that installed?
Nov, 2015 - Permalink
yes, it is installed, i run the command Get-Module -ListAvailable and see the module FailoverClusters in the list.
Nov, 2015 - Permalink
Okay, let's reproduce the sensors steps:
- Login via Remote Desktop on the probe system
- Open up PowerShell
Enter-PSSession -ComputerName target.domain.com -Credential user@domain.com
(replace the fqdn and the credentials accordingly)- Enter the password in the popup that appears
- Execute the following commands:
- Import-Module FailoverClusters;
- Get-ClusterSharedVolume;
Does this work properly?
Nov, 2015 - Permalink
Yes, Work and give me the basic information about cluster disks. Only i need in adition run PowerShell as administrator and run without error. I think the error is like the sensor don´t has the Import-Module line. It is posible.? Can i add this line or validate the script or something.?
Thanks.
Nov, 2015 - Permalink
The sensor actually has this Module-Import line...I'm afraid that we're running out of ideas here : /
Nov, 2015 - Permalink
Colleague told me that you could also try the WMI Volume sensor - it should also be able to access the shared cluster volumes; can you try that? :)
Nov, 2015 - Permalink
I try your recomendation, but only show me one of two cluster volumes. I change the device to monitor with the core probe (not with remote probe that i receive the error of this tread), and add the server probe to the same domain that cluster and it's working.! Thanks for your help and your ideas for solve this problem.
Best Regards,
Marcos.
Nov, 2015 - Permalink
Ah okay, so it was some kind of problem with the credentials (more or less). Thanks for sharing! :)
Nov, 2015 - Permalink
Hi Marco,
have you tried executing Get-ClusterSharedVolume within a PowerShell session? What Windows version is running on the HyperV-Server?
Oct, 2015 - Permalink