What is "scripting"

What is Script

Creating scripts is basically organizing a list of commands in a logical sequence. This reduces the need for repetition of tasks by the system administrator and/or network. The main feature of a scripting language is that it is not compiled but only interpreted by the running environment.

Usefulness

An example of the usefulness of a script would be the case where the network administrator needs to create a configuration file for a new batch of Switchs that will be inserted into the network. All Switchs have the same configuration except for the IP number and Hostname.

Using script this problem could be solved quickly. With a list of Ips and Hostnames in a file the script could copy the base configuration file (a template) and replace only the single fields for each switch (IP and Hostname) generating at the end a configuration file for each of them.

Without the scripting language the administrator would need to copy and paste the IP and Hostname into the base configuration file and save the file generating a single file for each switch. This process would be repeated for each batch switch.

Popular Languages:

  • Javascript
  • Shell Script
  • Python
  • Moon
  • Perl
  • Powershell

More information: