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.