Obtaining network configuration via Python

Shae Erisson shapr at uab.edu
Tue Jul 25 07:02:22 EDT 2000


Micheal Kelly wrote:
> 
> Hi all,
> 
> Quick question:  I'm writing some Python scripts in Linux that need access
> to the system's network configuration - now, I could parse the output of
> ifconfig quite easily (and have for that matter).  However, for various reasons
> I can't and don't want to do this - I'd rather access the network configuration
> info directly from the OS if possible.
> 
> My question is:  Does anyone know how to do this in Python under Linux?
> Is there a module or library I can use?

I ran across this yesterday, hope it helps:

http://www.linuxcare.com.au/projects/gnetstat/
-- 
Shae Matijs Erisson - http://www.webwitches.com/~shae/
VirtualPairProgramming Wanted - Linux/Emacs/Python/Speak Freely
.fi: rakastan ohjelmointia - python kengittää aasia



More information about the Python-list mailing list