|
||||||||
|
|
#1
|
|
I have a C++ COM app that is trying to manage NLB using WMI.
I am using "MicrosoftNLB_" classes for this. I could bind the NLB to NIC and also could modify the cluster setting. Now i am trying to add/rem port rules to an NLB cluster. None of the "MicrosoftNLB_" classes have methods to add/rem port rules. I tried creating a new instance of "MicrosoftNLB_PortRuleEX" using "IWBemWebServices::PutInstance". Any pointers ? Thanks -John John |
|
#2
|
|||
|
|||
|
"John" <(E-Mail Removed)> wrote in message
news:ndK6h.47$_(E-Mail Removed)... >I have a C++ COM app that is trying to manage NLB using WMI. > I am using "MicrosoftNLB_" classes for this. > I could bind the NLB to NIC and also could modify the cluster setting. > > Now i am trying to add/rem port rules to an NLB cluster. > None of the "MicrosoftNLB_" classes have methods to add/rem port rules. > I tried creating a new instance of "MicrosoftNLB_PortRuleEX" using > "IWBemWebServices::PutInstance". > > Any pointers ? Do it manually? <G> -- Russ Kaufmann MVP - Windows Server - Clustering ClusterHelp.com, a Microsoft Certified Gold Partner Web http://www.clusterhelp.com Blog http://msmvps.com/clusterhelp |
|
#3
|
|||
|
|||
|
that doesn't help.
I am trying to automate adding and removing port rules based on certain runtime events; hence can't ask user to manually add it. I thought WMI is supposed to expose the programmatic mgmt of Windows (including NLB) . Is there any other work around? Thanks -John Russ Kaufmann wrote: > "John" <(E-Mail Removed)> wrote in message > news:ndK6h.47$_(E-Mail Removed)... > >>I have a C++ COM app that is trying to manage NLB using WMI. >>I am using "MicrosoftNLB_" classes for this. >>I could bind the NLB to NIC and also could modify the cluster setting. >> >>Now i am trying to add/rem port rules to an NLB cluster. >>None of the "MicrosoftNLB_" classes have methods to add/rem port rules. >>I tried creating a new instance of "MicrosoftNLB_PortRuleEX" using >>"IWBemWebServices::PutInstance". >> >>Any pointers ? > > > Do it manually? <G> > > |
|
#4
|
|||
|
|||
|
"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)... > that doesn't help. > I am trying to automate adding and removing port rules based on certain > runtime events; hence can't ask user to manually add it. > > I thought WMI is supposed to expose the programmatic mgmt of Windows > (including NLB) . > > Is there any other work around? I am sorry, John, but I know of no way to automate the change of port rules. Why do they need to change? You should be able to set them up once and leave them alone until you need to install a new application or component that uses a new port. In which case, you will test it in a test environment and identify the rule change. -- Russ Kaufmann MVP - Windows Server - Clustering ClusterHelp.com, a Microsoft Certified Gold Partner Web http://www.clusterhelp.com Blog http://msmvps.com/clusterhelp |
![]() |
| Tags |
| add or rem, port, progrmatically, rules |
| Thread Tools | |
| Display Modes | |
|
|