Puppet Dell iDRAC control

if $::manufacturer == 'Dell Inc.' { exec { 'Disable DRAC SNMP': command =>; 'racadm config -g cfgOobSnmp -o cfgOobSnmpAgentEnable 0', path =>; '/opt/dell/srvadmin/sbin:/bin', onlyif =>; '/usr/bin/test `/opt/dell/srvadmin/sbin/racadm getconfig -g cfgOobSnmp -o cfgOobSnmpAgentEnable` -eq 1', } } Yea, I think onlyif bit is not nice.

Generate Bacula client cert/key pair via Puppet

exec {'generate client key file': command => '/usr/bin/openssl genrsa -out /bacula/bacula-client.

Convert .xva to .qcow2 (or raw)

Figured out while running below work. Got the hint from: http://jolokianetworks.

Run Citrix NetScaler VPX from KVM

1. Download Hyper-V image and extract .vhd 2. Covert it via running: qemu-img convert -O qcow2 NSVPX-ESX-10.

Bacula daily (or weekly) email report for postgres DB

This now moved to: https://github.com/logan-han/sysadmin_stuffs/blob/master/bacula_report.sh

Dell Chat Support

Sick of telling phonetic code over the phone? Try dell chat support here: http://www.

Disable msi with minimal interruption

ifconfig eth0 down rmmod bnx2 modprobe bnx2 disable_msi=1 ifconfig eth0 up route add -net default netmask 0.

3TB partition support in Linux

Make a GPT partition: parted /dev/sda mklabel gpt unit TB mkpart primary 0 -0 quit Format with 1% root reservation:

How to increase VM disk size without re-deploy the machine

Ref: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371 [root@demo ~]# fdisk /dev/sda -Create a primary partition-

L2L VPN with ASA - Connection established but no packet coming from one side

Symtom: 1. Connection established. 2. 0 en/decapsulated packet from one side.