Skip to content

Instantly share code, notes, and snippets.

@igable
Created October 29, 2014 23:04
Show Gist options
  • Select an option

  • Save igable/cd1cde9a552c4ac6dce0 to your computer and use it in GitHub Desktop.

Select an option

Save igable/cd1cde9a552c4ac6dce0 to your computer and use it in GitHub Desktop.
for i in `seq 11 15`;
do
b=`expr $i - 10`;
knife node attribute set sc$b.3115.sc14.org mellanox.port1.ip "10.0.0.$i";
done
for i in `seq 11 15`;
do
b=`expr $i - 10`;
knife node attribute set sc$b.3115.sc14.org mellanox.port2.ip "10.0.1.$i";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment