Sunday, 30 April 2017

Getting the execution time of a command in the shell

Using the 'time' utility can easily get the execution time of a command - for example:

time sleep 5

should produce something like:

real    0m5.011s
user    0m0.000s
sys     0m0.003s

This (in my case) is very useful when checking how long a kernel took to compile!

Wednesday, 5 April 2017

Note: PFSense / CARP + VMWare ESXI

Since CARP uses 'virtual' mac addresses it is important for it to function properly you ensure that promiscuous mode is enabled on the vSwitch if you are using ESXI.

As you may know promiscuous mode is disabled by default for security on new vSwitches - however I usually prefer to create a port group within the vSwitch - so I can ensure that only the relevant machines are targeted.