Skip to content


NetApp jsh – more fun

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.3_1094]
Rate this post:
Rating: 0.0/10 (0 votes cast)

Posted in Undocumented Commands.

Tagged with , , , , , .


2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Andrew Senior says

    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. Chris Kranz says

    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.



Some HTML is OK

or, reply to this post via trackback.



Bad Behavior has blocked 1164 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.