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 done
Your Guide To All Things Cain™
Posts tagged ‘CentOS’
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 done
If you get the error
Metadata file does not match checksumYou can fix it with
yum clean metadata
Create the virtual interface
vi /etc/sysconfig/network-scripts/ifcfg-eth0:0Populate the file
DEVICE=eth0:0
ONPARENT=yes
IPADDR=10.10.10.10Bring up the interface
/sbin/ifup eth0:0The interface will be brought up and down automatically as the parent interface (eth0) changes state.