Home > Undocumented Commands > NetApp jsh – more fun

NetApp jsh – more fun

January 27th, 2009

As a follow up from my last post of the java shell ([cref java-netappcmdsjsh]) within the NetApp. There are of course hidden commands!

So how do you find them? Well we start with the “classpath” output and go have a look at what is in there!

  • /etc/java/netapp.zip

ChangedSize“, not really sure what’s going on with this, I’d expect it to calculate changes based on a snapshot. But the input is a bit odd and I can’t figure out the output either!

FileStats“, this actually exists in “priv set advanced” also, so this might just be picking up on that command. Basically you can define a snapshot and get a list of file counters based on sizes and age. Quick cool, but not much more info than just some overall details.

RegCopy“, I can only assume this gives you the ability to copy registry values around!

SnmpClient“, there’s an SNMP client on the filer? So in theory the filer could poll the SNMP community string and report on hosts. That’s one expenses SNMP server!

  • java jivetech

These aren’t called within the “java netapp.cmds.jsh” shell, but called directly from the java interpretter within the filer.

filer*> java jivetech.tests.Hello
hello, world

You can’t have a programming language without “hello world” !!!

… I’m gonna break temporarily and add a little section saying that you have a fair chance of killing your filer if you just play around with these tools. So don’t use them!

REBOOT (panic) on filer at Tue Jan 27 22:26:58 GMT 2009

Onto my filer sim, bad move testing that on my DR box in the first place I think…

 

filer> java jivetech.tests.pento

 

Not sure if anyone knows much about pentomino puzzles? Well, everyone does, it’s tetris! This is the filer playing tetris!!! Don’t run this by the way, I can’t figure out how to stop it ;)

 

There are a bunch of other basic system tests, but I’m interested in the fun stuff!

 

There’s also a variety of commands within “java netapp.util.xxx“, but not all of them that useful. You can get the filer to access it’s own API from there, so I imagine you could get the filer to access other filers API’s also.

 

If you want to explore these classes, take a look at /etc/java and there’s a couple of zip files, netapp.zip and redshift.zip. Netapp.zip has all the netapp based commnads, but redshift is the jivetech stuff, and has a few more odd things inside it. Definitely easy way to kill a filer with these commands though!

Undocumented Commands , , , , ,

  1. Andrew Senior
    | #1

    I’m using jsh but I have a path “blah blah”. I’ve tried quotes. I’ve tried escaping (\), but zilch. How am I going to see in to this directory?

  2. | #2

    Not sure which bit you are trying to do. Can you post the commands you’re trying?

    All the above stuff needs to be perfomed within the Java shell. I haven’t used this for awhile, so there’s every possibility that NetApp have depreciated it.

  3. scotty
    | #3

    he’s trying to cd into a folder but the folder name has a space in it. i would think you use single quotes, possibly a couple of them ”dunno tho”

  4. | #4

    Usually double quotes is the way to go, but you’re right single quotes may do the job.

  5. kait
    | #5

    Hi, how about removing file with question mark in the name of file? For example how to delete this file from jsh?

    jsh> rm “DOWNS SYNDROME GIRL?S MUSIC FOR LOST LOVE BY LUCY LAING.doc”
    “DOWNS: No such file or directory
    SYNDROME: No such file or directory
    GIRL?S: No such file or directory
    MUSIC: No such file or directory
    FOR: No such file or directory
    LOST: No such file or directory
    LOVE: No such file or directory
    BY: No such file or directory
    LUCY: No such file or directory
    LAING.doc”: No such file or directory
    jsh> rm ‘DOWNS SYNDROME GIRL?S MUSIC FOR LOST LOVE BY LUCY LAING.doc’
    ‘DOWNS: No such file or directory
    SYNDROME: No such file or directory
    GIRL?S: No such file or directory
    MUSIC: No such file or directory
    FOR: No such file or directory
    LOST: No such file or directory
    LOVE: No such file or directory
    BY: No such file or directory
    LUCY: No such file or directory
    LAING.doc': No such file or directory

  1. No trackbacks yet.



This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.
%d bloggers like this: