1 |
#!/usr/bin/python |
#!/usr/bin/python |
2 |
|
|
3 |
import cgi, cgitb, sys, re, pexpect |
import sys, re, pexpect |
4 |
|
|
5 |
cgitb.enable () |
try: |
6 |
import pycisco |
from Config import libPaths, dbName, dbUser, dbPass, dbAddress, dbPort |
7 |
|
except ImportError: |
8 |
|
import install |
9 |
|
sys.exit () |
10 |
|
|
11 |
|
import cgi, cgitb |
12 |
|
cgitb.enable () |
13 |
print "Content-Type: text/html" |
print "Content-Type: text/html" |
14 |
print |
print |
15 |
|
|
16 |
|
import pycisco |
17 |
|
|
18 |
print "<h2>Port Administration Configuration Tool</h2>" |
print "<h2>Port Administration Configuration Tool</h2>" |
19 |
|
|
20 |
form = cgi.FieldStorage () |
form = cgi.FieldStorage () |