Cain Manor

Your Guide To All Things Cain™

April 1, 2009
by Greg Cain
Comments Off

Various Time Scripts

To see the off­set for a range of sys­tem for X in ‘cat YourList.txt‘ do Y=‘ssh $X –l root ‘ntp­date –q 10.168.XX.XX’ | awk –F, ‘{print $3}’‘ echo $X $Y done

April 1, 2009
by Greg Cain
Comments Off

Error on yum

If you get the error Meta­data file does not match check­sum You can fix it with yum clean metadata

March 30, 2009
by Greg Cain
Comments Off

To create multiple IPs per Interface in CentOS 5

Cre­ate the vir­tual inter­face vi /etc/sysconfig/network-scripts/ifcfg-eth0:0 Pop­u­late the file DEVICE=eth0:0 ONPARENT=yes IPADDR=10.10.10.10 Bring up the inter­face /sbin/ifup eth0:0 The inter­face will be brought up and down auto­mat­i­cally as the par­ent inter­face (eth0) changes state.