You were both right; I had better luck with cu. Itās not perfect, but it will work. In order to parse the redirected file, I had to:
- Use sed to remove a line that that always contained a non-ascii string
- Use sed to do some find and replaces to clean up a couple lines that I need to parse and couldn't just delete.
- I am also using dos2unix on the file before I parse it. This might not be needed now, but it was helping when I was using screen, so I left that in.
Sometimes accessing the switch fails, and looking at the dump file, it looks like the expect and send are out of sync with the switch, but I can add a retry to work with it. Anyways, its definitely a workable solution and super helpful! Thank you guys! One more question, when I access the switch manually using cu or screen, after I am done, I type āexitā, but you are not fully out of the terminal session. Itās more like I just logged out. I am sitting at a āloginā prompt. In a situation where my Linux OS has Xwindows, I can just close the terminal, but in an OS where there is no Xwindows, I have to switch to another terminal, and kill the PID to end the session. Whatās the right way to fully exit from a cu terminal session under CLI?