NetApp Ontap has some limited options to edit and manipulate files from the console.
First you need to change the permission using the command: priv set advanced
You can read files using the command: rdfile
e.g rdfile /etc/hostsĀ will display the content of the hosts file.
Editing files can be done with the command: wrfile
e.g adding a line to the hosts file can be done with the command: wrfile -a /etc/hosts 192.168.233.15 filer2
The -a option will append to the file, without the -a option the file will be overwritten!
So first make a copy before start editing file this way.
There is a java shell available that will help you with this task, run the command: java netapp.cmds.jsh
This will give you the options below:
cd [directory]
pwd
ls [-l]
cat file
rm file [file2 ...]
cp src dest
mv src dest
ps [-l]
kill threadName
gc
classpath [pathname]
syspath [pathname]
Debug on|off
threads
monitors
heap
version
syncdb
du [-sk] [files or directories]
java_class [&]
ONTAP_cmd