#!/usr/bin/python import sys, re, pexpect try: from Config import libPaths, dbName, dbUser, dbPass, dbAddress, dbPort except ImportError: import install sys.exit () import cgi, cgitb cgitb.enable () print "Content-Type: text/html" print import pycisco print "
Select a switch to get started!
" print "" def ShowSwitchStatus (switchName): print "Number | " print "Description | " print "Connected | " print "VLAN | " print "Duplex | " print "Speed | " print "Media | " print "Portfast | " print "Errors | " print "
---|---|---|---|---|---|---|---|---|
" + port["name"] + " | " print "" + (port["description"] or "(not set)") + " | " print "" + port["connectstate"] + " | " print "" + port["vlan"] + " | " print "" + port["duplex"] + " | " print "" + port["speed"] + " | " print "" + port["media"] + " | " print "" + port["portfast"] + " | " print "" + port["errors"] + " | " print "