One Liners for *nix

# Remove 1st Column  awk 'BEGIN{FS=OFS="#"}{$2=$3=""}{print}')cat ldm_dump.o |awk 'BEGIN{FS=OFS=" "}{$1=""}{print}' # Create non-existent dirs for i in `cat /etc/vfstab|grep vx|awk '{print $3}'`; do mkdir $i; done # Uncompress and tar install gunzip -c prdhbs1_hbsdg.tar.gz|tar xvf - # Veritas vxprint -v |grep -v NAME|grep -v group |awk '{print $2" ", $5}' # Grow and extend Vol/FS … Continue reading One Liners for *nix

Advertisement

One Liners for Solaris

Get disks attached to HBA for i in `fcinfo hba-port |grep WWN|grep HBA|awk '{print $4}'`; do fcinfo remote-port -sl -p $i; done hostname;fcinfo hba-port |grep WWN|grep HBA|awk '{print $4}' Logical Domains Add Vnets from List for i in `ldm list |awk '{print $1}'|grep -v NAME|grep -v primary`; do ldm add-vnet linkprop=phys-state vnet0 public-vsw0 $i; ldm … Continue reading One Liners for Solaris