Archive

Posts Tagged ‘java shell’

NetApp jsh – more fun

January 27th, 2009 2 comments

As a follow up from my last post of the java shell (java netapp.cmds.jsh) within the NetApp. There are of course hidden commands!

VN:F [1.9.3_1094]
Rate this post:
Rating: 0.0/10 (0 votes cast)

java netapp.cmds.jsh

January 27th, 2009 1 comment

There’s a little known hidden gem in the NetApp systems, a Java shell! We’re told that this is extremely dangerous and totally unsupported. Something as special as this obviously gets the hair on the back of my neck, and makes me want to see what I can break with it. So this is what happens when I play with the Java shell in the NetApp system!

VN:F [1.9.3_1094]
Rate this post:
Rating: 9.5/10 (2 votes cast)

Basic file manipulation on a filer

January 18th, 2009 No comments

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

VN:F [1.9.3_1094]
Rate this post:
Rating: 10.0/10 (1 vote cast)

Bad Behavior has blocked 701 access attempts in the last 7 days.

© 2009-2010 Chris Kranz All Rights Reserved
This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.