ONTAP Discussions
ONTAP Discussions
Hi,
I'm fairly new to Data ONTAP OS and I have been playing around with the sims for a couple of months.
I had a look at the "Manual Page Reference, Volume 1 and 2" but there are basic linux style commands that I still can't find...
baisically, I'm looking for commands to :
1- "cd" change directory
2- "ls" ls files/directories
3- "cp" copy files from one directory to another
4- "mkdir" make new directory.
5- "ps" list running processes
6- "kill" kill a process.
7- piping and "grep" for a string. ex: ps | grep -i "string"
8- pwd "print workjing directory".
if someone can just include the Data ONTAP command for 1 to 8 I'd much appreciate it.
Thanks.
Max.
Solved! See The Solution
Those commands are available in advance mode & in diag mode. However, you should not use those mode unless it is necessary. Those modes ususally use by NetApp technical support team or NetApp PSE.
Antway, if you wanna try out (in sim may be), type 'priv set advanced' to go to advanved mode. There u can do ls, mv etc. Type 'useradmin diaguser unlock' to unlock diag user then type 'useradmin diaguser password' to set a password to diag user. Then type 'systemshell'. Username 'diag' password is your diag password.
DONT GO TO DIAG MODE IF YOU DONT KNOW WHAT YOU ARE DOING
very helpful thanks a heap!
however, it does not contain any commands for what i'm after...
Few commands you specified will work using the following commands:
priv set advanced
java netapp.cmds.jsh - Which take you a prompt where you can run the linux commands.
thank you,
AK G
this is exactly what I needed in terms of the commands however, it looks like I won't be able to use this prompt and still run normal ONTAP commands (ex: sysconfig)...
would you know what commands are equivalent to the ones I'm after in the normal or priv set ONTAP prompts?
This post contains the list of commands that will be most used
and will come handy when managing or monitoring or troubleshooting a Netapp
filer.
Pocket guide for netapp commands
This post contains the list of commands that will be most used
and will come handy when managing or monitoring or troubleshooting a Netapp
filer.
Thanks for this very handy answer...
still however no mention of any command that would achieve what i'm looking for...
Dear Sir,
This is Vinit, Very good list of net app commands.
Sir, want to know how do we use net app simulator, can you provide any guide for a fresher.
Thanks & Regards,
Vinit pandey
Its very good sir !!
Those commands are available in advance mode & in diag mode. However, you should not use those mode unless it is necessary. Those modes ususally use by NetApp technical support team or NetApp PSE.
Antway, if you wanna try out (in sim may be), type 'priv set advanced' to go to advanved mode. There u can do ls, mv etc. Type 'useradmin diaguser unlock' to unlock diag user then type 'useradmin diaguser password' to set a password to diag user. Then type 'systemshell'. Username 'diag' password is your diag password.
DONT GO TO DIAG MODE IF YOU DONT KNOW WHAT YOU ARE DOING
this answers my question... thanks a heap!
it looks like in this mode after i login with the diag user, the normal ONTAP management commands do not work... such as "vol", "sysconfig"... etc..
i wish i could find a document that would tell me the set of commands that you can run in each different mode..
would you know how I can pipe an output of a comman to a txt file in "normal mode"?
for example, i need to run "sysconfig -r" and save the output to a txt file that I can then CIFS to and read...
Your best bet will be non-interactive SSH / RSH session from *nix (linux, unix etc.) machine. For an example,
helios@athena ~
$ ssh root@10.1.1.60 vol status
root@10.1.1.60's password:
Volume State Status Options
vol0 online raid0, flex root, no_atime_update=on,
create_ucode=on,
convert_ucode=on,
maxdirsize=2621
helios@athena ~
Above is prompting for password because I am not using public key authentication. However, if you do so then, it won't ask for the password; quite helpful in scripts.
Just wanna add another example which uses RSH instead of SSH (again quite handy in scripts)
helios@athena ~
$ rsh -l root:your-password-here 10.1.1.70 aggr status
Aggr State Status Options
aggr0 online raid0, aggr root
helios@athena ~
Hope this helps..
Message was edited by: Sajith Rangama
in diag systemshell mkdir is not working
mkdir: /etc/software: Read-only file system
Hi,
It would be great to have the ability in Normal Mode or at least in Advanced Mode to have tail, grep and pipe to file for troubleshooting and checking the logs.
I think rdfile should have the ability to perform these actions.
filer01>rdfile tail -f /etc/messages
filer01>rdfile /etc/messages |grep error
Unless I am missing pages in the ONTAP manual it is not a feature.
Cheers
Jeff
piping, greping ... I always do this from the system I am administering the NetApp from (unix or windows)...
Like already mentioned in his answer, there is a secure option (SSH) or insecure (RSH). With windows, just use plink.exe and then | findstr to get what you are looking for.
Hope this helps.
Peter
PS I would NEVER use the diaguser/diagmode to do this stuff...