Automate TELNET commands using VB Script
TipsMake.com - The processing of batch work with .bat files (batch job) and recently using Windows scripts (.wsf) is the first choice of network administrators, to increase public performance The most optimal way. Using batch jobs you can automatically install and remove applications, inventory software or settings for the operating system of all computers on the network. However there are certain tasks that sometimes need to go through multiple authentication layers, such as TELNET .
TELNET (short for TErminaL NETwork ) is a network protocol that is used on connections to the Internet or connections at the local LAN computer network. The purpose of the TELNET protocol is to provide a general, bipolar media, using 8-bit width, byte orientation.
Many network administrators use TELNET for switches to query or set up ports, monitor system operation status, even restart network devices from the command line via TELNET. Therefore it is much more convenient if you can automate TELNET jobs just like batch jobs.
In fact, if you are used to using VB scripts to create Windows scripts, VB script provides a very useful feature when you set up Windows Shell scripts for objects, then release that object carefully. by time by the command. Basically, this is like you're sitting in front of a command window and typing in it. The only difference is that the Windows script will send the command window to you.
Automate TELNET Job
Basically we have two parts to do for this task. You need to sequence the commands you want through the typical TELNET session.
In this example, we have 5 devices on the network that need to boot remotely via TELNET using 4 simple commands. The first is to use an IP address and a specific port. Next a menu appears, press Enter .
Select a number corresponding to the functions in MAIN MENU , press Enter .
Now we have different methods to do this. Some people like to use TST script . But it is somewhat complicated for an inexperienced person. TCL is also a similar scripting language, used for many years. However, here we will guide you to use a VB script file to perform tasks in the shortest, simplest time.
To do this, place the following code in a file, such as AutoTELNET.wsf, and then double-click to run:
First, set up TELNET:
That is the whole process of automating TELNET, with just three easy steps in an uncomplicated script. After getting used to it, you can customize them to your needs in automating tasks to manage network switches, time clocks or remote system control via TELNET.
You should read it
- How to Use Telnet on Mac OS X
- How to Activate Telnet in Windows 7
- 10 useful commands in Windows you should know
- Instructions for activating TFTP and Telnet Client on Windows 10
- How to Send Email with Telnet
- How to use PuTTY on Cisco routers and switches
- Knowledge of TCP / IP network protocols
- Officially released TLS 1.3, promising a faster, safer Internet world
May be interested
- Create a virtual wireless Router with Windowsin this tutorial we will show you how to create a virtual wireless router in windows to share internet connection and file sharing.
- Setting up VPN yourself does not need support from expensive softwarein this tutorial we will show you how to set up a vpn server on windows 7 or vista and make a connection from remote clients windows xp, vista, or windows 7.
- Instructions for configuring pfSense 2.0 Cluster using CARPpfsense is an open source application with routing functions for free and powerful firewalls that will allow you to expand your network without compromising security.
- Check that the port port is open, the connection is being made in the systemsome basic steps to check which ports are open, connections being made to help you make sure what is happening with your internet speed.
- Check hidden connections to the Internet in Windowsis your internet connection slower than usual? is your computer infected with malware, spyware or adware, are they running in the background and consuming bandwidth without your knowledge? here are some tips to help you check the connections from your computer to the internet
- Self-practice Wireless for freein this article, we will guide you to wireless network configuration steps completely free with cisco packet tracer.