#!/usr/bin/python import netsnmp import time sess = netsnmp.Session(Version = 1, DestHost = 'localhost', Community = 'public') time.sleep(5) i = 0 while (i < 10000): i = i + 1 if (i % 100 == 0): print i sess = netsnmp.Session(Version = 1, DestHost = 'localhost', Community = 'public') time.sleep(5) results: user 21147 39.0 0.2 @@6752@@ 4348 pts/4 S+ 07:49 0:00 python pymemtest user 21147 70.3 0.2 @@6884@@ 4424 pts/4 R+ 07:49 0:14 python pymemtest user 21147 77.0 0.3 @@7396@@ 4884 pts/4 R+ 07:49 1:08 python pymemtest