Discussion:
add/rem port rules progrmatically
(too old to reply)
John
2006-11-15 19:29:28 UTC
Permalink
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
Russ Kaufmann
2006-11-15 20:16:59 UTC
Permalink
Post by John
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
John
2006-11-15 20:22:44 UTC
Permalink
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
Post by Russ Kaufmann
Post by John
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
2006-11-15 22:20:21 UTC
Permalink
Post by John
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
Loading...