0

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

configure
class-map match-any popc_fiberpower004_booster_v4
 match access-group ipv4 bng_permit_v4
 match access-group ipv6 bng_permit_v6
end-class-map
policy-map popc_fiberpower004_booster_v4_in
 class popc_fiberpower004_booster_v4
  police rate 110 mbps
  set dscp 0
 class class-default
end-policy-map

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

2
  • This question might be better asked on SuperUser.
    – AdminBee
    Oct 11, 2021 at 12:40
  • I’m voting to close this question because it should probably be asked on SuperUser.
    – AdminBee
    Oct 11, 2021 at 12:41

1 Answer 1

0

Note that is an extension of , so you'll want to use some Tcl commands

  • open
  • while
  • gets

You might find the Tcl tutorial helpful, particularly the File Access 101 section.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.