Author Archives: Kaven Gagnon


About Kaven Gagnon

System Engineer / Network Administrator

Linux : How to get hardware serial number

The easiest way to get hardware serial and related information is using “dmidecode“.

The command below should give you exactly what you need :

The command above does not usually work with “clone” computers/servers. Alternatively, you may use the command below, which will output all parts serial number availables :


Windows : Upgrade the Ubiquiti Unifi SDN Controller

This tutorial will show you the simple steps to upgrade your Ubiquiti Unifi SDN Controller running on Windows.

The software can be found on the manufacturer Web site ( We recommend using the LTS (Long Term Support) version unless you need the bleeding edge features. Upgrading to newer version might not allow downgrade in case of issue later as the database will be upgraded.

ALWAYS do and download a backup prior upgrading. The installer should take care of keeping your current settings and statistics, but just in case it does not or fail to do so, you can always install the oldest version and restore your backup.

A manual backup can be made through the WebUI (https://IP_Address:8443/) > Settings > Maintenance > Backup > Download Backup

1. Download the new software version (, again preferably the LTS version

2. Gracefully stop the Unifi Controller service or process

3. Run as administrator the new software executable

As the installer should detect your existing inferior version, it should technically ask you if you want to upgrade to the newer version, just say yes.

VMware : Unable to deploy OVF template, Next button greyed out

I was a bit stunned when I attempt to deploy the vSphere Replication Appliance on a new v6.7 cluster.

The Next button on the very first page where you select the template files just never turned blue (it always stayed grey) after selecting the files, just like if I did not selected all the files or the template is incompatible or corrupted.

No matter what I tried, it just stayed that way – trying to import the same template in a v6.5 cluster worked like a charm.

It turned out to be a bug on the initial v6.7.0.12000 release. After upgrading the vCenter appliance to, the problem was resolved.

Windows : How to retrieve Fiber Channel interface WWNs

Here is a simple PowerShell command that will output the FC host adapter interface WWNs.

If your interface have two ports, both will be output in order.

This command have been successfully tested with QLogic adapters on Windows 2012 and 2016.

Linux : How to show domain TTL with DIG

Here is some useful commands to display a domain Time To Live (TTL) using the DIG command (which is usually included within “bind-utils” package).

To display the full information :

To display the short, default answer :

NOTE : Replace “domain.tld” by the domain you want to query.

Windows : Change DNS update frequency in Active Directory

If you are not satisfied with the refresh rate of DNS within your active directory environment, there is a way of forcing it by increasing or decreasing the default setting in the registry.

First of all, there is a command to find out your curent settings :

It should output something similar to :

It you want to change this to a different value, simply open the registry editor (regedit.exe) and browse to the following :

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ DNS \ Parameters

Change the value of “dspollinginterval” as you see fit (the value should be in seconds).

JunOS : Upgrade bank is empty or corrupted for FPC 0, please do standard upgrade sequence

Experiencing the following alarm event log on your Juniper EX switch?

Alarm time Class Description
2016-01-20 07:12:04 UTC Major Upgrade bank is empty or corrupted for FPC 0, please do standard upgrade sequence

This is likely because your switch was running an inferior JunOS version than 10.4r3 and it was upgraded to a greater version, which require the new jLoader.

(This is actually documented by Juniper on the technical support note referenced as TSB15524)

IMPORTANT : I would suggest looking at your running software version to ensure this is your case, I never tried running an inferior JunOS version than the one intended to be supported by this newer jLoader – I would expect your switch to fail at boot!)

To upgrade jLoader, follow the following steps :

1. Download jLoader 12.1r3 from Juniper (make sure you select the right one for your platform, failing to do so will brick your switch!) As example, here is the link for either EX3200 or EX4200

2. Upload/download the package to a temporary location on the switch filesystem (such as /var/tmp) or load it on a MSDOSfs formatted USB memory (and connect on the switch).

3. Upgrade jLoader (example) :

4. Reboot the switch upon successful output :

Your switch should now boot on the new jLoader.

Windows : How To get the members of a group in Active Directory using PowerShell

Here is some useful commands to list the members of a group in Active Directory using PowerShell.

Get members of a group :

Get members of a group, recursively (to list all members of sub-groups members of that group) :

NOTE : Replace “Group Name” (keeping the double quotes) with the desired Group Name in your AD.

Linux : Finding your public IP from the command line

You are probably used to all these “get my IP” or “find my IP” kind of site, which show your external / Internet IP on a Web page.

However you might be facing some challenge if you are on a CLI only kind of machine. Fortunately there is a few ways to find your public IP from the console, here are two easy ones :

1. Use cURL toward our simple IP page :

2. Use the “DIG” DNS utility if it is present on your system, by querying OpenDNS servers :

NOTE : DIG is usually a part of “dns-utils” package on modern Linux systems.

Linux : R1Soft The following signatures couldn’t be verified because the public key is not available

Getting this error from the R1Soft repo lately trying to run a “apt-get update” on Debian Linux?

Ign stable Release
W: GPG error: stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 39A4965166BD1D82

Simply do the following to import the new key and get rid of this error :