Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows Server Networking

add/rem port rules progrmatically

Reply
 
Thread Tools Display Modes
  #1  
Old 11-15-2006, 07:29 PM
Default add/rem port rules progrmatically



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
Reply With Quote
  #2  
Old 11-15-2006, 08:16 PM
Russ Kaufmann
Guest
 
Posts: n/a
Default Re: add/rem port rules progrmatically

"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


Reply With Quote
  #3  
Old 11-15-2006, 08:22 PM
John
Guest
 
Posts: n/a
Default Re: add/rem port rules progrmatically

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>
>
>

Reply With Quote
  #4  
Old 11-15-2006, 10:20 PM
Russ Kaufmann
Guest
 
Posts: n/a
Default Re: add/rem port rules progrmatically

"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


Reply With Quote
Reply

Tags
add or rem, port, progrmatically, rules

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.