Access to sysctl on FreeBSD?

Skye spoier at gmail.com
Tue May 20 12:26:11 EDT 2008


How do I access the sysctl(3) call from Python on BSD?

Specifically I want to retrieve:

$ sysctl -d net.inet.ip.stats
net.inet.ip.stats: IP statistics (struct ipstat, netinet/ip_var.h)

So I'll need some way of getting to struct ipstat from Python as well

Thanks,
Skye




More information about the Python-list mailing list