Python Admin Scripts

Chris Tavares cct at tavaresstudios.com
Fri Mar 28 01:58:22 EST 2003


"Norm" <normjunk at yahoo.com> wrote in message
news:fb860b97.0303270912.5dd0070f at posting.google.com...
> Many of you must be Linux/NT admins.  What I am looking for are
> projects to try out on Python.
>
> How have you found Python to be useful in making the job easier?
>

Yep.

> What tasks have you automated with Python?
>

My most recent python project started as a request from my father. He needed
to be able to connect to his computers inside his house, but they were on a
consumer DSL/Cable modem line with DHCP. dyndns.org didn't work for him,
because he was using a hardware router/firewall. So the PC didn't have the
WAN network address; only the router had it.

So, what he asked me for was a tool that would query the router for it's IP
address programatically. He then uploads the results to his public web page,
and can get the ip address from there.

A quick tour through urllib and httplib, plus some packet traces to see how
the routers do logins, and I have the script for him.

Then he brought me a different model router. And then another one. And then
*another* one. But that's a different story...

-Chris






More information about the Python-list mailing list