Tag Archives: script

TCL/Expect read from file (executing custom config in bulk)

At this point in time I need a nifty little tool to configure some ports on network devices. But the challenge is that the ports differ from device to device. In order to do this I have to create a … Continue reading

Posted in CCNP | Tagged , | Comments Off on TCL/Expect read from file (executing custom config in bulk)

Laptop battery status

Recently the battery of my laptop is play up. It is constantly hungry for a powercord. And this is not the reason why I am using a laptop. The battery health was rapidly declining. So I installed a new laptop … Continue reading

Posted in CCNP | Tagged , , | Comments Off on Laptop battery status

lstty

I found this little script on internet to get a list of all the usb connected devices. Unfortunaltly this script provides too much information for what I need it to do. Original script can be found on : https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0 Pay … Continue reading

Posted in CCNP | Tagged , , | Comments Off on lstty

Bash: IF shorthand

We all know how to make an if then else decision in programming or scripting languages. In bash , and most other languages it is possible to reduce several lines of code to a one-liners. Lets call that short-hand. A … Continue reading

Posted in CCNP | Tagged | Comments Off on Bash: IF shorthand

Cisco TCL – ping script.

In an earlier blog I wrote about a tiny hello world script.  Now I want to raise the bar a little bit, by creating a ping script. After a quick search on the internet I found a several kinds of … Continue reading

Posted in cisco | Tagged , , , , | Comments Off on Cisco TCL – ping script.

Cisco TCL – first steps… Hello world

For some time Cisco offers TCL shell on their equipment. This is awesome, because sometimes you need a single command to retrieve information whereas IOS demands you to enter one or more commands. But before we get lots in possibilities … Continue reading

Posted in cisco | Tagged , | Comments Off on Cisco TCL – first steps… Hello world