Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Slapping IP addresses on cards

by girarde (Hermit)
on Jan 07, 2012 at 01:19 UTC ( #946695=perlquestion: print w/ replies, xml ) Need Help??
girarde has asked for the wisdom of the Perl Monks concerning the following question:

Dear Brethren and Sistren,

I am seeking a way to bind numerous IP addresses to specified NICs under W2003. I run SharePoint farms with numerous web applications, and when new servers are brought online multiple NICs per server need multiple addresses per NIC. The CPAN modules I have seen all seem to deal with getting IP configuration data, not much on writing it except for DNS server settings.

Yes, I could do this through the GUI. But that is just gross. Not to mention error prone.

Comment on Slapping IP addresses on cards
Replies are listed 'Best First'.
Re: Slapping IP addresses on cards
by VinsWorldcom (Vicar) on Jan 07, 2012 at 02:48 UTC

    You're talking about Windows - wouldn't it make more sense to use a batch script to call netsh.exe, or perhaps look at PowerShell?

      Goodness. I'd managed never even to have HEARD of netsh. Thanks!
Re: Slapping IP addresses on cards
by Anonymous Monk on Jan 07, 2012 at 01:57 UTC

    I am seeking a way to bind numerous IP addresses to specified NICs under W2003.... Yes, I could do this through the GUI. But that is just gross. Not to mention error prone

    All a GUI does is make some API calls, which usually write some registry entries :)

    So first find out the names of API calls or registry entries you need to manipulate , then you can tackle it through Win32::OLE/Win32::API... these win32 tutorials/examples

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://946695]
Approved by muba
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2015-08-30 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (346 votes), past polls