
UCC Code Repository
Parent Directory
|
Revision Log
Initial import.
b0VIM 6.3 7GD p root typhaon /var/www/portconf/pycisco.py U3210#"! U tp x f y | A \ ad % x r q . * ) } d #
h
b
a
?
9
8
| e b "
e
D
'
v t . ^ /
t 7 p 6 c = t \ A @ w [ % # L 4 words = line.split () portDetails = dict () # Create a new dictionary for the port description and split it up into words. for line in lines: # Parse the output of the port summary. Still easier than SNMP! portSummary = [] lines = result.split ("\n") result = "\n".join (raw_result.split ("\r\n")[3:-1]) # whitespace and headings. # This next line chops off the first three lines, which are invariably raw_result = ss.before ss.expect ("[a-z0-9.-]*#") ss.sendline ("show interface status") ss = CreateSession (switchNumber) return "No such switch!"