To remotely check the return code of a script via snmpd add the following to snmpd.conf:
exec myname /path/to/script
After recycling the snmpd daemon the return code could be obtained via the following OID:
1.3.6.1.4.1.2021.8.1.100.1
If you have more than one exec line the last digit is incremented by one for each script.
Run the following command to find out if your cpu supports hardware virtualization:
egrep '^flags.*(vmx|svm)' /proc/cpuinfo
AMD processors would have the svm flag set and Intel processor the vmx flag.
Please note that hardware virtualization also needs to be enabled in the bios before being usable.
Ever wondered why vi(m) automatically inserts tabs on each line you paste using your mouse with middle-click (and with each line more an additional tab gets added)?
This has been annoying me for years, so I finally went and started searching for a solution. In the end it’s oh-so simple. When you are in vi, enter “:set paste” before you insert something into a buffer with your mouse middle-click. Interestingly Debian seems to be the only distribution where this is off by default.
In order to replace a newline character in vi, say by the string “, ” the following command should do while being in vi:
:%s/\n/\,\ /g
Static routes would be configured in /etc/network/interfaces in the section for the respective network adapter:
iface eth1 inet static
address 192.168.14.80
netmask 255.255.255.0
network 192.168.14.0
broadcast 192.168.14.255
up route add -net 10.10.1.0 netmask 255.255.255.0 gw 192.168.14.82
down route del -net 10.10.1.0 netmask 255.255.255.0 gw 192.168.14.82
Recent Comments