Linux

Using arp_announce

It is possible to control which source address is put in to ARP headers using the ARP_ANNOUNCE option in the kernel. It takes the following values. 0 (default) Any local address 1 Use address from the same subnet as the target address 2 prefer primary address. This is worth knowing because the default can give […]

Read More
Linux

‘tail -f’ with highlight

This is an example of how you can use tail with colors. # tail -f /var/log/maillog | perl -pe ‘s/colorthisword/\e[1;32;40m$&\e[0m/g’ The ;;; values explained 0 all attributes off 1 bold 32 foreground green 40 background black “colorthisword” can be any perl regular expression: (foo|bar) highlight the strings foo and bar \b((foo|bar)\b highlight the words foo […]

Read More
Linux

Export Zimbra account info

Export userinformation from Zimbra # su – zimbra # zmprov gaa -v|egrep ‘cn:|sn:|displayName|givenName|zimbraMailDeliveryAddress|zimbraMailForwardingAddress|zimbraAccountStatus’|grep -v zimbraAdminSavedSearches Output cn: Ola Normann displayName: Ola Normann givenName: Ola sn: Normann zimbraAccountStatus: active zimbraMailDeliveryAddress: ola@example.com zimbraMailForwardingAddress: ola.normann@example.com …

Read More