Original computing articles by a systems administrator

Category Archives: Python

Creating a Histogram of TCP Window Sizes from a Packet Capture using Python

Although wireshark is a very useful tool there are some limitations that bother me: Wireshark Out of Memory errors can be frustrating Although advanced IO graphing provides a lot power it is still limited I have found that scapy and pylab can fill some of the gaps. Here is an example using the python interactive… Continue Reading

OpenVZ Bean Counters Nagios Script

“OpenVZ is container-based virtualization for Linux. OpenVZ creates multiple secure, isolated containers (otherwise known as VEs or VPSs) on a single physical server enabling better server utilization and ensuring that applications do not conflict.” For each of these containers or VEs, there are resource limits. The psuedo file system, /proc, tracks various process and kernel… Continue Reading

pyGnomeFind: A GUI frontend to GNU Find

I have written a graphical front end to the GNU find utility called pyGnomeFind. It does not include all of the features of the actual command line utility but does cover most of the essentials. The current version is a testing/preview version. It was written using Python, pyGtk, and Glade. You can get a copy… Continue Reading

Learning while Reviewing: Python and Subnetting

I am currently learning Python, but I also needed to review subnetting. I have found that one of the best ways to stretch my synapses is to combine learning something new with reviewing something that I learned a while back. To accomplish my review while still learning a new skill I decided to write a… Continue Reading

Getting Command Line Columns to Line up with Python

I created a solution for a program I am writing that makes columns line up when outputted to the command line. I am new to Python, and am hoping I might get some input on this topic. In the text file that the program reads, the fields (columns) are delimited by ‘$’ and the records… Continue Reading