# $language = "python" # $interface = "1.0" host = "10.10.10.1" user = "brocade" passwd = "brocade" def Main(): cmd = "/SSH2 /L %s /PASSWORD %s /C 3DES /M SHA1 %s" % (user, passwd, host) crt.Session.Connect(cmd) crt.Screen.Synchronous = True crt.Screen.Send("config t\n") crt.Screen.Send("int e 1/1/23\n") crt.Screen.Send("inline power\n") crt.Screen.Send("end\n") crt.Screen.Send("exit\n") crt.Screen.Send("exit\n") Main()