I like the program, seems to work well. I do wonder if it's possible to add in delays between each command executing, or a different way to handle "enters" or "space" being passed.
For example, if I do a Show Run, I can add a bunch of spaces on separate lines in the commands file, but the command will be cut off and i'll end up with part of a show run, and a bunch of blank lines for the console line. Now, for Show Run, I can easily turn off the term len, to get the full command, but I was curious if there was a better way to account for enter or space being pressed?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've noticed this problem before and honestly I can automate it but it won't be as scalable in some situations, because my script can read output and execute based on the output for example after the "Press enter to continue..." I can send Enter automatically same as I do for username and password prompts in telnet session, however I left it for people to choose their preferred method to be more flexible.
I might add this feature in the future.
Best Regards
Mohammed Khair Khomakho
CCIE RS #26682
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Gotcha, I think the current implmenetation is fine, i was just curious if I was missing it somewhere. As a possible option it would be nice, but i don't think it needs to be there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I like the program, seems to work well. I do wonder if it's possible to add in delays between each command executing, or a different way to handle "enters" or "space" being passed.
For example, if I do a Show Run, I can add a bunch of spaces on separate lines in the commands file, but the command will be cut off and i'll end up with part of a show run, and a bunch of blank lines for the console line. Now, for Show Run, I can easily turn off the term len, to get the full command, but I was curious if there was a better way to account for enter or space being pressed?
Dear Twist,
I've noticed this problem before and honestly I can automate it but it won't be as scalable in some situations, because my script can read output and execute based on the output for example after the "Press enter to continue..." I can send Enter automatically same as I do for username and password prompts in telnet session, however I left it for people to choose their preferred method to be more flexible.
I might add this feature in the future.
Best Regards
Mohammed Khair Khomakho
CCIE RS #26682
Gotcha, I think the current implmenetation is fine, i was just curious if I was missing it somewhere. As a possible option it would be nice, but i don't think it needs to be there.
View and moderate all "AutoConfig Pro" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello,
Thanks for this program. I am having problem with SSH failure even though logs look OK. Any suggestions?
DEB [20130222-12:14:26.914] thr=1 paramiko.transport: starting thread (client mode): 0x15c17d0L
INF [20130222-12:14:26.930] thr=1 paramiko.transport: Connected (version 2.0, client Cisco-1.25)
DEB [20130222-12:14:26.946] thr=1 paramiko.transport: kex algos:['diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server key:['ssh-rsa'] client encrypt:['aes128-cbc', '3des-cbc', 'aes192-cbc', 'aes256-cbc'] server encrypt:['aes128-cbc', '3des-cbc', 'aes192-cbc', 'aes256-cbc'] client mac:['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] server mac:['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] client compress:['none'] server compress:['none'] client lang:[''] server lang:[''] kex follows?False
DEB [20130222-12:14:26.946] thr=1 paramiko.transport: Ciphers agreed: local=aes128-cbc, remote=aes128-cbc
DEB [20130222-12:14:26.946] thr=1 paramiko.transport: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-cbc, remote aes128-cbc; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
DEB [20130222-12:14:27.226] thr=1 paramiko.transport: Switch to new keys ...
DEB [20130222-12:14:27.460] thr=1 paramiko.transport: userauth is OK
INF [20130222-12:14:27.585] thr=1 paramiko.transport: Authentication (password) successful!
DEB [20130222-12:14:27.601] thr=2 paramiko.transport: [chan 1] Max packet in: 34816 bytes
DEB [20130222-12:14:27.632] thr=1 paramiko.transport: [chan 1] Max packet out: 4096 bytes
INF [20130222-12:14:27.632] thr=1 paramiko.transport: Secsh channel 1 opened.
DEB [20130222-12:14:27.664] thr=1 paramiko.transport: [chan 1] Sesch channel 1 request ok
DEB [20130222-12:14:27.694] thr=1 paramiko.transport: [chan 1] Sesch channel 1 request ok
View and moderate all "AutoConfig Pro" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Nice tool.
I try use it to capture show run, unfortunately output only record about 50 lines text.
Can help?
I think your problem is from terminal itself, probably try to add the below line before show run:
terminal length 0