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 (java netapp.cmds.jsh) 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!

VN:F [1.9.11_1134]
Rate this post:
Rating: 0.0/10 (0 votes cast)
NetApp jsh - more fun, 9.0 out of 10 based on 1 rating

Undocumented Commands , , , , ,

  1. Andrew Senior
    February 5th, 2010 at 12:55 | #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. February 6th, 2010 at 08:55 | #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. September 11th, 2011 at 05:16 | #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. September 13th, 2011 at 10:58 | #4

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

  1. No trackbacks yet.



This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.

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

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