Quantcast
Channel: Active questions tagged expect - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 157

Sending bunch of commands from txt file in Expect

$
0
0

How to send bunch of commands to Cisco router from txt file like:

configureclass-map match-any popc_fiberpower004_booster_v4 match access-group ipv4 bng_permit_v4 match access-group ipv6 bng_permit_v6end-class-mappolicy-map popc_fiberpower004_booster_v4_in class popc_fiberpower004_booster_v4  police rate 110 mbps  set dscp 0 class class-defaultend-policy-map

And of course from Expect script via telnet.Thank you in advance for help.


Viewing all articles
Browse latest Browse all 157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>