Monday, October 27, 2014

Scripts for running commands accross multiple - Linux

for i in `cat delete_share`; do echo $i; server_export server_2 -unexport -perm $i; done
for i in `cat delete_share`; do echo $i; server_umount server_2 -perm /$i
for i in `cat delete_mountpoint`; do echo $i; server_mountpoint server_2 -delete /$i; done
for i in `cat delete_fs`; do echo $i; nas_fs -delete $i



No comments:

Post a Comment