Virtrob's Weblog

24/09/2010

NetApp file operations from the console

Filed under: Storage — virtrob @ 10:44

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

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.