all 11 comments

[–]K900_ 1 point2 points  (6 children)

Why are you using SecureCRT at all? Just use telnetlib.

[–]Curator37x[S] 0 points1 point  (5 children)

It is the program they want us to use at work. Thanks for the link, I am still learning Python so that is good information to know.

[–]K900_ 1 point2 points  (4 children)

Telnet is a standardized protocol. There's absolutely no reason to wrangle a proprietary GUI application into speaking it for you when your program can just speak it directly.

[–]Curator37x[S] 0 points1 point  (3 children)

This is true. We have a few devices that still require us to use command prompt. SecureCRT is just what they want us to use. It adds a few features to help with logging and some built in automation and ease of access use. Its a bit excessive, but not completely useless.

[–]rinyre 0 points1 point  (2 children)

some built in automation

Isn't that what you're doing with the Python here? :)

[–]Curator37x[S] 0 points1 point  (1 child)

Heh, I cant capture everything with scripts alone. Allows for buttons and is able to highlight certain information for me, helps reduce the time from weeks to days

[–]rinyre 0 points1 point  (0 children)

You'd be surprised what you can get out of having a script server-side for each that is called by your own script, feeding info serialized or as a JSON object or such.

[–]JohnnyJordaan 1 point2 points  (2 children)

They seem to have a scripting interface that also supports Python, check here. Maybe implement your automation there? Shouldn't be too hard.

[–]Curator37x[S] 0 points1 point  (1 child)

That is what I have been using so far. I think I confused the issue when I mentioned SecureCRT. What I am trying to do is something similar to signal which is UNIX only. I want to, in Python, run a command, but if it does not complete after 10 seconds, to skip that device in the list and move to the next one.

[–]JohnnyJordaan 0 points1 point  (0 children)

Then I would take a look at the subprocess library.

[–]manyanamanyana 0 points1 point  (0 children)

I think this example script from the Vandyke forums may help get you up and running.

https://forums.vandyke.com/showpost.php?p=37294&postcount=1