Archive for September, 2010

Useful Networker Commands 

For use with EMC (Legato) Networker… Move everything off of a specific volume onto another pool (Careful, does not take into account possible clones – add /cloneid somehow to the end. I haven’t been able to automate that yet): # for i in `/usr/sbin/mminfo -q “volume=OLDVOLUME” -r “ssid”`; do /usr/sbin/nsrstage -v -b NEWPOOL -s NETWORKERSERVERNAME […]

Random Useful Scripts 

Convert plain text to passwd crypt: #!/usr/bin/perl print “Enter the password you would like to use: “; $pass1 = <STDIN>; if ($pass1) { my $salt = join(”, (‘.’, ‘/’, 0..9, ‘A’..’Z', ‘a’..’z')[rand 64, rand 64]); my $cryptpw = crypt($pass1, $salt); print “The encrypted password suitable for passwd is $cryptpwn”; } Convert base64 encoded to plain […]