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
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
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
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
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
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
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
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
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
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