How to configure a Cisco router using a script

Source: Internet
Author: User

ExploitationScriptConfigureCisco router configurationBefore that, you must specify the operations you want to perform, execute those commands, and then write scripts. I want to back up the running-configure configuration. Of course, the device has been configured and the tftp server is ready. The Cisco router configuration is as follows:

BT Wireless Network cracking:

 

Follow these steps to configure a Cisco router:

1. Compile the script:

Create a new crt. vbs file with the suffix. Vbs with the following content:

 

I believe that a friend who understands vb can easily understand the following content:

Crt. session. Connect ("/telnet 11.133.183.133") -- this is a very understandable device that requires telnet.

Crt. Screen. WaitForString "Username:" -- the information returned from the device, that is, the prompt information.

Crt. Screen. Send "ccie" & VbCr -- the character sent on the device, that is, the command or character you entered during normal operation.

& VbCr ------ enter the character and press Enter.

Note: "" the central part is where you need to make changes. You only need to make changes based on your actual situation.

2. Application script:

Open CRT Software

Click the Script menu.

Click "RUN"

In the pop-up menu, find the directory where the script is saved, and enter the Script Name crt. vbs. Then you can see that the script is being executed, as shown below:

 

The above content is the process of using scripts to configure Cisco routers. The key lies in the script writing skills. I hope you will learn more about programming and help you understand the Cisco router configuration process.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.