Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1981

August 11th, 2014 09:00

remotely ssh to celerra cli

I am using plink to ssh to celerra cli to collect few data and save it.

plink -ssh -l nasadmin xxx.xxx.xxx.xxx -pw nasadmin nas_version >output.txt

Above command giving me error

bash: nas_version: command not found

I see that the SSH is connecting to celerra, but it is not able to recognize the command. CD command to other folder is working fine.

How can I issue the command here ? any full path I need to mention ?

1.2K Posts

August 11th, 2014 09:00

plink is most likely not sourcing the 'nasadmin' account environment.  When you ssh as the user and invoke the shell, this invokes the environment.  Your best bet is to try the full path, in this case, /nas/bin/nas_version.

If you're going to use other scripts, you can always check the path to the command with which:

[nasadmin@vnx-test1 ~]$ which nas_version

/nas/bin/nas_version

Let us know if that helps!

Karl

1 Message

August 6th, 2020 09:00

Hi,

I am working on automation of celerra basic health check and identifying file systems that have crossed 80% and send a email.  I am able to establish ssh session using python with paramiko module. When I run the command 

I am getting error "bash shell cannot understand command".  I am not using nasadmin user, I have created a new user with operator role. When I directly putty control station, I am able to run the commands. 

Could you please help me resolve this issue.

 

Regards,

Ranganath Sangal

No Events found!

Top