Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Slapping IP addresses on cards

by girarde (Friar)
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
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

Re: Slapping IP addresses on cards
by VinsWorldcom (Priest) 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!

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 exploiting the Monastery: (11)
As of 2014-12-19 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (83 votes), past polls