Author Archives: Robert

Session logout Juniper

Once in a while a run in to an orphaned tty session. Somebody logged on by means of serial cable, and left while forgeeting to log out. ninja@someswitch> show system users  fpc0:————————————————————————–11:47PM  up 252 days, 14:55, 2 users, load averages: … Continue reading

Posted in Commands, Juniper | Comments Off on Session logout Juniper

Wireshark on a juniper interface

Once in a while you are in need of analyzing traffic on a specific interface using Wireshark. Junos being a unix ( derived from Research Unix ) offers several ways to perform this task. I will focus now on the … Continue reading

Posted in Juniper | Tagged , , | Comments Off on Wireshark on a juniper interface

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.