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 ( [id://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.

Replies are listed 'Best First'.
Re: Slapping IP addresses on cards
by VinsWorldcom (Prior) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found