Various Time Scripts

To see the offset for a range of system for X in `cat YourList.txt` do Y=`ssh $X -l root ‘ntpdate -q 10.168.XX.XX’ | awk -F, ‘{print $3}’` echo $X $Y donefor X in `cat YourList.txt` do Y=`ssh $X -l root ‘ntpdate -q 10.168.XX.XX’ | awk -F, ‘{print $3}’` echo $X $Y done

To create multiple IPs per Interface in CentOS 5

Create the virtual interface vi /etc/sysconfig/network-scripts/ifcfg-eth0:0vi /etc/sysconfig/network-scripts/ifcfg-eth0:0 Populate the file DEVICE=eth0:0 ONPARENT=yes IPADDR=10.10.10.10DEVICE=eth0:0 ONPARENT=yes IPADDR=10.10.10.10 Bring up the interface /sbin/ifup eth0:0/sbin/ifup eth0:0 The interface will be brought up and down automatically as the parent interface (eth0) changes state.