Wednesday, December 9, 2009

Enabling unix like commands on Data Ontap

Enabling unix like commands on Data Ontap


There is a completely unsupported method to actually accomplish this.

1) Get to a command prompt

2) priv set advanced

3) java netapp.cmds.jsh

4) do a LS to list the contents

5) now u can use rm to delete a qtree

6) CTRL+C brings you back to the Ontap command prompt

This works on the Simulators as well.




Example:


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

No comments:

Post a Comment