NetApp Shell Commands

One of the guys I work with sent me a link to an article on Kings Pride and I decided to post them here.  Mostly, so I can find them again later when need them later. Any how, from Kings Pride here’s the details on how to invoke a Java based shell on a NetApp.



The solution to all these problems is to use an undocumented java shell on the filer which grants the ability to use cp, mv and other commands.  Here is an example of the command to drop to the java shell and a list of the commands available:

filer01>java netapp.cmds.jsh
jsh> ?
Java Shell commands:
cd [directory]
pwd
ls [-l]
cat file
rm file [file2 ...]
cp src dest
mv src dest
ps [-l]
kill <-1|-9> threadName
gc
classpath [pathname]
syspath [pathname]
Debug on|off
threads
monitors
heap
version
syncdb
du [-sk] [files or directories]
java_class [&]
ONTAP_cmd
jsh> exit
filer01>

Here’s the link to the post:

http://kingspride.org/2009/11/17/netapp-cmds-jsh/

Jason Wood
Latest posts by Jason Wood (see all)