Exscript icon

Exscript For Linux

3.5/5 19
GPL    

A scripting language for automating network connections over protocols such as Telnet or SSH.. #Scripting language  #Expect clone  #Linux interpreter  #Scripting  #Language  #Expect  

Description

changelog

Free Download

Exscript is a scripting language for automating network connections over protocols such as Telnet or SSH. Exscript is in some ways comparable to Expect, but has some unique features that make it a lot easier to use and understand for non-developers.

Exscript is written in Python and we value componentized, clean code, so it will always be easy to modify and extend.

With Exscript you can quickly automate a conversation with a device over Telnet or SSH. For example, to execute the "ls" command on three different hosts, create a file with the following content:

ls

and then run it using

./exscript.py my_template host1 host2 host3

With Exscript you can automatically parallelize your connections, such that multiple sessions are opened at the same time. This can speed up the time in which a specific command is propagated within your network.

For example, imagine you want to execute the clear ip bgp * soft in command on twenty different Cisco routers. Start by creating a text file with the following content:

clear ip bgp * soft in

Save this file as commands.exscript. Also, create a text file that contains the list of hostnames to which the command should be sent:

host1 host2 ... host20

Save this file as hosts.txt. To send this change to all routers at the same time, type the following command:

./exscript.py --hosts hosts.txt -c15 commands.exscript

Note that the -c15 option causes Exscript to open a maximum of fifteen connections at the same time. Once the first host out of these 15 is completed, Exscript opens the connection to the next host, until the clear ip bgp * soft in command has been sent to all hosts.

Exscript templates support many more commands. For example, to automate a session with a Cisco router, the following template may be used:

show version {extract /^(cisco)/ as vendor} {if vendor is "cisco"} show ip interface brief {extract /^(S+)s/ as interfaces} {loop interfaces as interface} show running interface $interface configure terminal interface $interface no shut end {end} copy running-config startup-config {end}

For a full overview over the template language, look at this page.

Exscript comes with excellent error handling for free, without adding any extra code into the templates.

You can pass parameters (or lists of parameters) into the templates and use them to drive what happens on the remote host. Exscript easily supports logging, authentication mechanisms such as TACACS and takes care of synchronizing the login procedure between multiple running connections.

System requirements

  • Python
  • Python-crypto
  • Python-pexpect
  • ssh

What's new in Exscript 2.1:

  • The protocol API was vastly improved and handles prompt matching in a much more robust manner.
  • Support for interactive connections was added.
  • Exscript now includes Telnet and SSH servers.
  • Exscript.util.mail has support for sending mail with attachments.
Read the full changelog

Exscript 2.1

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  2 screenshots:
Exscript - screenshot #1Exscript - screenshot #2
  main category:
Programming
  developer:
  visit homepage

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

% discount
Windows Sandbox Launcher
  • Windows Sandbox Launcher
  • Zoom Client
  • 4k Video Downloader
  • calibre
  • Microsoft Teams
  • Context Menu Manager
  • IrfanView
  • Bitdefender Antivirus Free
  • ShareX
  • 7-Zip
essentials


User Comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy