I've been looking at both WMI and the native clustering APIs and can find
nothing that allows me to programmatically update the cluster configuration.
To make things even more difficult, it doesn't look like the PowerShell
commandlet was available until R2 (but maybe I'm wrong). The same PS command
I use to update the Cluster configuration in Server 2008 R2, I can not get to
work in Server 2008 RTM.
So to be clear, in Server 2008 RTM, I have been unable to find any API call
using WMI, the native cluster APIs, or even PowerShell that will allow me to
refresh the virtual machine configuration.
I have been looking at updating the cluster database via direct Registry
edits and I think I can make that work, but to go to that extreme seems to be
a bit of a hack and prone to error ... it's something I would prefer to not
to have to do.
Any suggestions?
"RCan" wrote:
> Did you also overlooked WMI here ?
>
> Regards
> Ramazan
>
> "DLN" <> wrote in message
> news:8FBA592D-2C5E-401D-8E28-...
> > I was afraid of that. I've combed the Clustering and Automation APIs
> > several
> > times and there doesn't seem to be anything that pertains to refreshing
> > the
> > cluster configuration in either. As of late there seems to be a few
> > operations that PowerShell appears to be the only option (live migration
> > in
> > Hyper-V R2 is another one that is PS specific). I hope this isn't a trend
> > ... PS is a (very) poor substitute for a dedicated API.
> >
> > "RCan" wrote:
> >
> >> Hi DLN,
> >>
> >> I personally don't know about the availibility of an scriptable method
> >> for
> >> function "refresh VM config..." but generally many failover cluster
> >> funtions/commands are programmable.
> >> sorry for being not clear enough before but as PS is not an option pls
> >> check
> >> the following links around all available failover cluster API's :
> >>
> >> Failover Cluster APIs
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> The Failover Cluster WMI Provider
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> Virtualization WMI Provider
> >> http://msdn.microsoft.com/en-us/libr...92(VS.85).aspx
> >>
> >> Failover Cluster Administrator Extension Functions and Interfaces
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> MSCluster_Resource Class
> >> http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
> >>
> >> Hope the links above should give you the needed informations.
> >>
> >> Regards
> >> Ramazan
> >>
> >> "DLN" <> wrote in message
> >> news:88DF0B7B-4941-40A1-95C8-...
> >> > Hi Ramazan,
> >> >
> >> > I don't quite understand your response - is PowerShell the only way to
> >> > accomplish this task? The provided link provides a reference to a PS
> >> > cmdlet,
> >> > but as I mentioned we are not able to use PowerShell in our
> >> > environment,
> >> > so
> >> > it won't work.
> >> >
> >> > If there's a link you could point me to that references a WMI API, I
> >> > would
> >> > be grateful.
> >> >
> >> > Regards.
> >> >
> >> > "RCan" wrote:
> >> >
> >> >> Hi DLN,
> >> >>
> >> >> yes as far as I'm aware there is WMI or Powershell possible.
> >> >> for Powershell the command-let is called
> >> >> "Update-ClusterVirtualMachineConfiguration".
> >> >>
> >> >> More details can you find here :
> >> >> http://technet.microsoft.com/en-us/l.../ee461058.aspx
> >> >>
> >> >> Regards
> >> >> Ramazan
> >> >>
> >> >> "DLN" <> wrote in message
> >> >> news:946800A0-E7B8-47EC-9B84-...
> >> >> > Hello all,
> >> >> >
> >> >> > When dealing with Hyper-V (RTM not R2) based VMs in the Failover
> >> >> > Cluster
> >> >> > Management console, there is an option at the resource group level
> >> >> > to
> >> >> > “Refresh virtual machine configuration”. Does anybody know if there’s
> >> >> > an
> >> >> > API
> >> >> > (either native or WMI based) that allows one to execute this
> >> >> > command?
> >> >> > I’m
> >> >> > also open to using the “cluster” command line tool to perform this
> >> >> > task,
> >> >> > but
> >> >> > I can’t seem to find the correct arguments that allow me to do it.
> >> >> >
> >> >> > I’ve seen references to using PowerShell to do this sort of thing,
> >> >> > but
> >> >> > in
> >> >> > our environment PS (or anything that calls into .NET for that
> >> >> > matter)
> >> >> > is
> >> >> > not
> >> >> > an option.
> >> >> >
> >> >> > Thanks
> >> >>