10 lines
237 B
Python
Executable file
10 lines
237 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
from gs1900 import *
|
|
|
|
if __name__ == "__main__":
|
|
IP = os.environ.get("IP")
|
|
ADMIN_PW = os.environ.get("ADMIN_PW")
|
|
cookie = get_login_cookie(IP, "admin", ADMIN_PW)
|
|
|
|
print(read_stp_ports(IP, cookie))
|