NAME
tel - script for router logins
SYNOPSIS
tel gw1-my-device gw2-my-device ...
Options: -h help message -l logging -d debug mode -v version -p connection port -m connection method -x runs script file -c runs commands -a autocommands -t sets the timeout -s sleep between commands
OPTIONS
- -c
-
Runs a series of commands that are separated by semicolons.
Example: tel -c "show ver; sh run" gw1-my-device
- -l
-
Enables logging to a file /tmp/gw1-my-device.log.
Example: tel -l gw1-my-device
- -d
-
Enables debugging, which will warn you if some of the runtime modules fail to load.
Example: tel -d gw1-my-device
- -x
-
Runs a script file, which is a list of commands for the device.
Example: tel -x changes.txt gw1-my-device
- -a
-
Specify autocommands to run. This overrides any commands loaded from profiles and is used for all devices during the session.
Example: tel -a "sh run int vlan35; conf t" gw1-my-device
- -p
-
Specify connection port. This overrides any specific port in loaded profiles and is used for all devices during the session.
Example: tel -p 22 gw1-my-devices
- -m
-
Specify connection method. This overrides specific methods in loaded profiles and is used for all devices during the session.
Example: tel -m ssh gw1-my-devices
- -t
-
Specify timeout in seconds. The default is 90 seconds. This overrides specific methods in loaded profiles and is used for all devices during the session.
Example: tel -t 30 gw1-my-devices
- -s
-
Specify timeout in seconds to sleep between commands. This only applies to commands specified for -x, -c or -a. This will use Time::HiRes if it's installed for sub-second sleep values like 0.5.
Example: tel -s 3 -x myfile.txt gw1-my-devices
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 35:
=over without closing =back