0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
~1K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Favorite Tags
4 Posted Topics
[code=python] import re snmpdata = open(snmpwalk_output) patt = re.compile(r"(\.\d+)+ = [A-Z]+\:") out = [ d for d in snmpdata if patt.match(d) ] outfile = open("z.txt","w") outfile.write('\n'.join(out)) outfile.close() [/code]
Is this Python code? a^b is *not* pow(a,b) - you want a**b.
Your import is flawed - try "from math import sqrt" -- Paul
Or just use XP zip compression - right click on the folder, and select Send To/Compressed Folder. XP wont unzip this thing, and neither will Python's zipfile module. -- Paul
The End.
ptmcg