Hi!
There is a completely unsupported method to actually accomplish this on the filer itself.
1) Get to a command prompt 2) priv set advanced 3) java netapp.cmds.jsh
This works on the Simulators as well. netapp1*> java netapp.cmds.jsh jsh> ls etc home source .ha stuff jsh> ls -la drwx------ 14 0 61440 Apr 12 2004 08:36:52 etc drwxrwxrwx 2 0 4096 Nov 17 2003 07:39:40 home drwxrwxrwx 5 0 4096 Mar 24 2004 13:21:21 source dr-------- 2 0 4096 Feb 09 2004 10:02:18 .ha drwxrwxrwx 5 0 4096 Mar 15 2004 14:12:47 stuff jsh> cd etc jsh> cat hosts #Generated by setup Mon Nov 31 11:50:17 EST 2005 #Auto-generated by setup Fri Jan 23 14:12:57 GMT 2004 127.0.0.1 localhost # 0.0.0.0 netapp1-ns1 192.168.99.10 filer1 192.168.99.11 netapp1
I believe rm is an available command within that shell. YMMV. Again, this is unsupported so don't blame me if it breaks.
On Thu, 1 Dec 2005 08:55:17 -0500 Kimminau_Eric@emc.com wrote:
Hi!
There is a completely unsupported method to actually accomplish this on the filer itself.
- Get to a command prompt
- priv set advanced
- java netapp.cmds.jsh
This works on the Simulators as well. netapp1*> java netapp.cmds.jsh jsh> ls etc home source .ha stuff jsh> ls -la drwx------ 14 0 61440 Apr 12 2004 08:36:52 etc drwxrwxrwx 2 0 4096 Nov 17 2003 07:39:40 home drwxrwxrwx 5 0 4096 Mar 24 2004 13:21:21 source dr-------- 2 0 4096 Feb 09 2004 10:02:18 .ha drwxrwxrwx 5 0 4096 Mar 15 2004 14:12:47 stuff jsh> cd etc jsh> cat hosts #Generated by setup Mon Nov 31 11:50:17 EST 2005 #Auto-generated by setup Fri Jan 23 14:12:57 GMT 2004 127.0.0.1 localhost # 0.0.0.0 netapp1-ns1 192.168.99.10 filer1 192.168.99.11 netapp1
I believe rm is an available command within that shell. YMMV. Again, this is unsupported so don't blame me if it breaks.
Yes, rm works and jsh is highly unsupported (I've been told). Playing with it at the life file system is like using some advanced command w/o any clue. ;-)
filer3> qtree create /vol/vol0/test filer3> java netapp.cmds.jsh jsh> rm /vol/vol0/test jsh> exit filer3> qtree status vol0 Volume Tree Style Oplocks Status -------- -------- ----- -------- --------- vol0 unix enabled normal filer3>
Hello Eric
- XXXX xxxxxxx.xxxx.jsh
I believe rm is an available command within that shell. YMMV. Again, this is unsupported so don't blame me if it breaks.
This "rm" does not contain a "rm -r" functionality. Only for single files like the regular advanced mode "rm" does. The only nice thing is imho "du -k". :-)
But as Stefan already noticed: "Highly unrecommended and unsupported." It may be used for understanding and checking how a filer manages the disk space, ;-) but not on productive systems.
Using garbage collecting Java on an extremely optimized operating system - like ONTAP - is like hanging a caravan to a Ferrari... It will spoil your cache age extremely. :-(
Best regards! Dirk