teejmonster: I can verify this as well.
I tested with a lot of different Cisco devices. All of the ones running Native IOS drop the connection after the first command. Only newer NX-OS and IOS-XE devices (which are based on Linux) will properly keep the connection open.
The only real workaround is to code everything to use a shell connection instead.
I tested with a lot of different Cisco devices. All of the ones running Native IOS drop the connection after the first command. Only newer NX-OS and IOS-XE devices (which are based on Linux) will properly keep the connection open.
The only real workaround is to code everything to use a shell connection instead.