Basic file manipulation on a filer
by Chris Kranz on Jan.18, 2009, under Command Line
There are the standard “rdfile” and “wrfile”, to read and write to a file respectively. Remember that wrfile is a complete file writer, it is not a file editor. Soon as you commit that command, you will have overwritten that file with a blank copy. You can use “wrfile -a” to append to a file, which can be useful for things like hosts files. Best bet is to copy the output of “rdfile” into your favourite editor before pasting it back in after doing “wrfile”.
In “priv set advanced” you can use “ls” to look at what actually exists on your volumes (very useful in some cases, although no options available), but there is also a hidden java shell, “java netapp.cmds.jsh”. This gives you the ability to copy, move, and delete files (as well as a few other things). Use with caution and as a last resort as it’s totally unsupported, but can be useful if you’ve not got CIFS or NFS access but need to move things around.
There are others ways to manipulate and copy files around, checkout NetApp File Copy
2 Comments for this entry
1 Trackback or Pingback for this entry
-
Basic file manipulation on a filer « Gouki81's Blog
October 11th, 2010 on 10:37 am[...] good one from Chris Kranz over at http://www.wafl.co.uk/basic-file-manipulation-on-a-filer/ . Check out his [...]











































February 15th, 2011 on 8:04 pm
Greetings,
How to I go back to the old shell?
Thanks,
Alberto
February 15th, 2011 on 8:17 pm
What shell are you referring to? You can get to the filer command line shell either with a serial connection direct on the system, via the RLM connection using SSH, or via SSH/Telnet directly to the controller.