Cisco 3560 switch interface traffic grabbing vbs script

Source: Internet
Author: User

Cisco 3560 switch interface traffic grabbing vbs script
To make it easy for you to view the traffic of the vswitch interface, the customer does not log on to the vswitch, and does not have any network management traffic statistics device. Simply write a vbs script, which is simple and usable.

On error resume next dim wshellset WshShell = WScript. createObject ("WScript. shell ") WshShell. run "cmd" WshShell. appActivate "d: \ windows \ system32 \ cmd.exe" WScript. sleep 200WshShell. sendKeys "telnet 10.1.1.1" WshShell. sendKeys "{ENTER}" WshShell. sendKeys "username" WshShell. sendKeys "{ENTER}" WshShell. sendKeys "password" WshShell. sendKeys "{ENTER}" WshShell. sendKeys "ena" WshShell. sendKeys "{ENTER}" WshShell. sendKeys "enable-password" WshShell. sendKeys "{ENTER}" WshShell. sendKeys "sh int summary | in ^ \ * Giga | RXBS | TXBS |-" WshShell. sendKeys "{ENTER}" WshShell. sendKeys "" WshShell. sendKeys "{ENTER }"

 


Red is the IP address, user name, and password. Change the password. Save the preceding text as vbs. You need to enable the telnet service in advance. The compatibility is unknown and only win10 has been tested.

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.