Author Archives: Robert

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)

PDF tools on Ubuntu

Ubuntu is my preferred operating system. I even use this OS on my work computer. This choice has some minor down sides. Most business software is developed for windows environments. But fortunately most commercial software on windows has an opensource … Continue reading

Posted in CCNP | Comments Off on PDF tools on Ubuntu

European situation – Special military operation

My father was born in 1935. He lived his childhood in Rotterdam. As a 5 year old he expirienced firsthand the invasion of German troops of his beloved city. The expirience of the entire war that followed, hunted him for … Continue reading

Posted in CCNP | Comments Off on European situation – Special military operation

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

Remove SSH host keys from known_hosts file

As a nwetwork admin you have to replace hardware because it’s faulty or of old age. After replacing the hardware , you will be warned of a man-in-the-middle attack while gaining access using SSH. Warning looks like: $ ssh some-host … Continue reading

Comments Off on Remove SSH host keys from known_hosts file

Multiple patterns with expect. Handling a SSH login dialog.

When automating network tasks, you a can hit a node which you have not logged on earlier. Using SSH you will end up in a dialog where the ssh client wants to add ssh-key to the known key list. You … Continue reading

Posted in TCL/Expect | Comments Off on Multiple patterns with expect. Handling a SSH login dialog.

Custom logfile on Juniper

Recently I placed a switch for a project. And now I want to see how often the switch is used by wired users. Lets for argument sake asume interface bounce is not handled by the standard log files. Juniper provides … Continue reading

Posted in Commands, Juniper | 2 Comments

Pre-shared key on Cisco ASA55x0

Cisco devices store password crypted when “service password-encryption” is turned on. You should enable this on your network equipment. You want to give imposters a hard time, so this is behavior you want. Last week I found out a astonishing … Continue reading

Posted in security | Comments Off on Pre-shared key on Cisco ASA55x0