Button Bar to Load Script in SecureCRT

This time i will write about activate button bar to load script in secureCRT. The background i write this topic because a few days ago, we had an unmanaged Node (Metro Ethernet) which caused by fan modules failed. everybody expected the cause of this incident was power problems. unfortunately, no one checks the log which told the fan failed or malfunction, so that the temperature of working modules getting higher until reach 110 degree Celsius and causing the system off.

From that case, i tried to create a script to capture modules state and log of the system. I decided to use button bar and python script to make it works in secureCRT. so that, when the problem happen again, we just run the script to log what we want and analyze the log.

  1. Activate button bar in SecureCRT. right click in empty bar then check the “Button Bar”.
    1. Right click button bar
  2.  Right click in button bar then select “New Button…”
    2. New Button Bar
  3. Select “Run Script” function and browse the script which being saved.
    3. Load Script
  4. Login to a Node (I use Nokia 7750 SR-7 with SROS)
  5. Click the “Button” to run the script
    4. Run Script

After you click the button, the script will run automatically, make sure you already log the session you established.

sample script to capture module state in SROS with python for secureCRT:

crt.Dialog.MessageBox("Pastikan sudah me-log session ini")

crt.Screen.Send ("\show system information | match \"System Name\" " + "\r")
crt.Screen.WaitForString ("# ")
row = crt.Screen.CurrentRow
str5 = crt.Screen.Get(row-1, 25, row-1, 50).strip()

if (str5 == ": 7210 SAS-R6") or (str5 == ": 7210 SAS-M 24F 2XFP ET"):
crt.Screen.Send ("show system information | match Name " + "\r")
crt.Screen.WaitForString ("# ")
row = crt.Screen.CurrentRow
str5 = crt.Screen.Get(row-2, 28, row-2, 50).strip()

crt.Screen.Send ("show system information | match Type " + "\r")
crt.Screen.WaitForString ("# ")
row = crt.Screen.CurrentRow
str6 = crt.Screen.Get(row-1, 28, row-1, 50).strip()
crt.Screen.Send ("show system information | match Type " + "\r")
crt.Screen.WaitForString ("# ")
row = crt.Screen.CurrentRow
str6 = crt.Screen.Get(row-1, 26, row-1, 50).strip()

if (str6 == "7705 SAR-8") or (str6 == "7705 SAR-8 v2"):
crt.Screen.Send ("show card | match Active " + "\r")
crt.Screen.WaitForString ("# ")
str7 = crt.Screen.Get(row-1,0 , row-1,3).strip()
crt.Screen.Send ("show card | match active " + "\r")
crt.Screen.WaitForString ("# ")
str7 = crt.Screen.Get(row-1,0 , row-1,3).strip()

str8 = str7 + ":" + str5

crt.Screen.Send ("\show time" + "\r")
crt.Screen.WaitForString (str8 + "# ")
crt.Screen.Send ("\environment no more" + "\r")
crt.Screen.WaitForString (str8 + "# ")
crt.Screen.Send ("\show card state" + "\r")
crt.Screen.WaitForString (str8 + "# ")
crt.Screen.Send ("\show chassis" + "\r")
crt.Screen.WaitForString (str8 + "# ")
crt.Screen.Send ("\show system alarms" + "\r")
crt.Screen.WaitForString (str8 + "# ")
crt.Screen.Send ("\show log log-id 99" + "\r")
crt.Screen.WaitForString (str8 + "# ")
crt.Screen.Send ("\show log log-id 50" + "\r")
crt.Screen.WaitForString (str8 + "# ")


Instalasi Arista vEOS di GNS3

Sistem operasi switch Arista disebut “Extensible Operating System” atau disingkat EOS. Arista mendeskripsikan EOS sebagai “… interface antara switch dan software yang mengontrol switch dan mengatur network”. Arti dari Extensible sendiri adalah Capable of being Extended”. EOS didesain agar memungkinkan pengembangan add-ons dari pihak ketiga. 

Kali ini saya akan mencoba membahas untuk menginstall virtual EOS (vEOS) di GNS3. sebelumnya, berikut adalah beberapa informasi mengenai kebutuhan software dan hardware yang saya gunakan:

PC Requirement:

  • Ubuntu 16.04 64-bit
  • GNS3 2.0.1
  • Qemu

Virtual Machine Requirement:

  • 2048 MB RAM
  • IDE CD-ROM Drive  untuk mount file “Aboot-veos-2.0.8.iso”
  • 2GB flash IDE disk untuk file “vEOS-lab-4.15.9M-combined.vmdk”
  • NIC tipe e1000 (Intel Gigabit Ethernet)

File “Aboot-veos-2.0.8.iso” dan “vEOS-lab-4.15.9M-combined.vmdk” bisa didapatkan pada web Arista dimana sebelumnya anda perlu registrasi akun arista dan menyetujui agreement sebelum men-download kedua file tersebut. Masuk ke menu support dan pilih “Software Download” untuk mendapatkan file tersebut.

Berikut langkah-langkah instalasi vEOS di GNS3 :

  1. Buka aplikasi GNS3 lalu masuk ke menu : Edit>preferences…
  2. Pada Preference window pilih “Qemu VMs” lalu klik New.1. New Qemu VMs
  3. Isi nama deskripsi untuk virtual machine Qemu yang akan kita buat, lalu klik Next. 

    2. Deskripsi Nama 

  4. Pada menu Qemu Binary dan Memory, pilih Qemu binary dengan : “qemu-system-x86_64” dan RAM : 2048 MB. lalu klik Next.3. Qemu Binary & Memory
  5. Pilih telnet sebagai tipe console, kemudian klik Next.4. Tipe Console
  6. Pada menu idsk image, pilih “new imgae” dan masukan file “vEOS-lab-4.15.9M-combined.vmdk”. klik Finish.5. Disk Image
  7. Setelah selesai, pilih menu edit>HDD untuk memasukan file “Aboot-veos-2.0.8.iso” pada bagian “HDC (Secondary Master)”.6. HDC Secondary Master


  8. Masih pada Qemu VM Configuration, pilih tab Network, kemudian isi adapter menjadi 8. hal ini akan menyebabkan jumlah interface yang terdapat pada vEOS ada 7 Interface dan 1 interface management.7. Adapter
  9. Pilih tab advance setting dan tambahkan “-enable-kvm” pada Additional Setting>Options:. Lalu Klik OK.8. Additional Setting
  10. Kembali ke menu utama GNS3, drag Arista EOS ke workspace dan Start perangkat tersebut.9. Main GNS3
  11. Butuh waktu cukup lama untuk booting, setelah pernagkat selesai booting masukan user : admin (tanpa password)

localhost login: admin

10. Show Interface

11. Show Version

Selain dengan cara diatas, kita bisa langsung melakukan instalasi vEOS dengan menggunakan appliance di GNS3.

Referensi :

  1. Doanhue, Gary A. 2012. “Arista Warrior : A Real-World Guide to Understanding Arista Switches and EOS”:O’Reilly Media, Inc
  2. http://brezular.com/2014/10/03/arista-veos-on-gns3/?utm_source=tuicool

Basic Terminal Linux Commands

A few months ago, I decided to switch my PC Operating System from windows to ubuntu. One of the reason I did it because my current company has a policy to migrating OS from windows to ubuntu for some network engineers laptop, including my team but not mine 😃.

Of course this migration not smooth as expected, there are problems such as how to establisihing vpn connection to our intranet office or customer intranet, secure CRT script which we use it to roll out router configrations, office application compatibility and others. Thus, why I decided to change my own PC to ubuntu to help IT team and solve the problems.

I start googling how to use ubuntu, first think I’m curious enough is how to use a terminal. To open the terminal we simply press Ctrl + Alt + T.

Terminal Display.png

These are some basic commands I learned :

  • man

The command-line program man is used for displaying Unix and Linux manual pages (usually called manpages). Manpages are self-contained reference documents stored on the machine’s hard drive. They are usually short, but can be quite long. Ubuntu’s manpage system has a reference for every command-line program, and in many cases it is the only source of information.

Man displays the data using a pager, a type of program that shows files on text-based terminals one screen at a time. On Ubuntu, less is the pager that is used.

antares@antares-H55M-S2:~$ man man


source :


  • sudo

After I install ubuntu, I went to install updates on my ubuntu system with apt-get update command. But the terminal display notifications and the command won’t run.

apt-get update gagal.png

After did some researches, it caused I’m not ran the command as root account/privilege. I should ran sudo apt-get update with. Sudo means “Super user do!”, is used to give such permissions to any particular command that user want to execute. Sudo requires the user to enter user password to give system based permissions.

apt-get sukses.png

Source :

  1. https://www.linux.com/blog/how-use-sudo-and-su-commands-linux-introduction
  2. https://help.ubuntu.com/community/RootSudo#Graphical_sudo
  • Su

Su command is used to switch from one account to another. If user types only su without any option then it will be considered as root and user will be prompted to enter user password.


We can use sudo and enter normal user password to switch to root user.

sudo su.png

Source :

  1. https://www.linux.com/blog/how-use-sudo-and-su-commands-linux-introduction
  2. https://help.ubuntu.com/community/RootSudo#Graphical_sudo
  • Gksudo

gksudo is the same thing with sudo, but it is used for graphical operation which works using GUI instead of terminal. Short note form wiki :

You should never use normal sudo to start graphical applications as Root.You should use gksudo (kdesudo on Kubuntu) to run such programs. gksudo sets HOME=~root, and copies .Xauthority to a tmp directory. This prevents files in your home directory becoming owned by Root. (AFAICT, this is all that’s special about the environment of the started process with gksudo vs. sudo).

Example accessing shutter program via command line :
antares@antares-H55M-S2:~$ gksudo shutter

Source :


  • Clear

Command clear or Ctrl+L is used for clear the terminal screen.


Optimizing MOP documents creation with microsoft access

One of network engineer task is to deploy hardware or logical configuration In existing live network. It can be simple task such insert a module and provisioning it which has no impact in live network or software upgrade which can be impact to whole service in an NE (Network Element).

Even the activity is simple, it will be better if we do it with a method of procedure document, which is document for describes step-by-step sequence of performing an operation including before and after activities to compare and monitor after we perform sequence task(s) to make sure network keep in good performance without anomaly.

When creating MOP document, we can use template which already prepared. But how if there are a lot of NE to deploy? Of course we need to create MOP to each NE and can you imagine how to create 100 MOPs in just an hours? Which basically we can use the template document and only change important parameters such as Hostname, IP address, Location Address, etc. it wil be boring and tiring If we create the MOP and change those parameters manually.

Let’s take a sample, planning team need to upgrade all routers software to deploy certain features. We as an operation team will execute that request. Before execute it, we should create MOP first as we talked earlier. We can create template MOP to upgrade software in each router, assume the routers that will upgraded has a same type of software, so we don’t need to change any sequence steps in MOP. Just change NE ID parameters in order each network engineer clearly know what will they do and what NE will be executed.


the summary steps are :

  1. Create a table database that contain information which will you need to insert into MOP template which you create as word documentGambar Table
  2. Create bookmark in your MOP template for each part that you want to insert a text or parameter
  3. Create VBScript to search what NE that you want to create for MOP document and create script to fill it in word
  4. For point 2 and 3 you can follow this youtube link for the detail (it’s not me who make that video) 🙂
  5. Then you just search the node and fill it in wordGambar Search

for advance parameters or advance task of the MOP, you can develop your VBscript to much it easier.