UNSOLVED

wshah2

updated

10 years ago

W

wshah2

35 Posts

0

3247

May 4th, 2016 10:00

Issue running cli for vnx5700

I have a vnx5700 and im trying to runs commands but for some reason it wont let me.  I was told to install navisphere cli, but I checked and it is installed.  Below is the out put of what I get.  can someone please help me and explain in details what I need to do?  I can log into gui and able to ping the ip address that im using in cli.

first imiage is showing that I have navishpere installed and the second is showing when I try to run commands.

navi.png

navisec.png

  • brettesinclair

    2 Intern

    715 Posts

    1561

    0

    Posted May 4th, 2016 15:00

    naviseccli enables you to run block commands from remote hosts and the cs against arrays/sp's, not directly to the local Control Station ip's.

    Run that same command from your workstation or if you want to run it from the Control station, ensure you target one of the SP ip addresses,

    If you want to run commands from the Control Station, they must be the file based CLI or the naviseccli cmds against the sp ip addresses (not control station)

  • Rainer_EMC

    6 Operator

    8645 Posts

    1561

    0

    Posted May 4th, 2016 19:00

    actually thats NOT the reason why the command is failing

    MOST likely is that the IP you are using with -h is NOT the IP of a SP

    do a "grep SP /etc/Hosts" to verify

  • wshah2

    35 Posts

    1561

    0

    Posted May 6th, 2016 08:00

    when you say do a "grep SP /etc/hosts" I should run the following command naviseccli -h -user -password -scope 0 storagegroup -list grep sp /etc/hosts?  If not than can you please tell me the correct command with the grep in it?

    When I log into SPA A, I get the follwoing: 

    5-6-2016 10-48-19 AM.png

  • Rainer_EMC

    6 Operator

    8645 Posts

    1561

    0

    Posted May 6th, 2016 09:00

    grep SP /etc/hosts

  • wshah2

    35 Posts

    1561

    0

    Posted May 6th, 2016 09:00

    can you type out the entire command because I am confused?

  • Rainer_EMC

    6 Operator

    8645 Posts

    1561

    0

    Posted May 6th, 2016 09:00

    Grep will give you the correct IP of SPA and SPB

    Use one of them with the –h option of naviseccli

  • wshah2

    35 Posts

    1561

    0

    Posted May 6th, 2016 13:00

    Ok so I tried that as well and get the following...The user name and password is correct...

    5-6-2016 11-56-39 AM.png

  • m_makadmeh

    43 Posts

    775

    0

    Posted May 8th, 2016 02:00

    Hello,

    Here we go


    1) naviseccli -RemoveUserSecurity

    2) naviseccli -AddUserSecurity -user sysadmin -password 'ENTER_YOUR_PASSWORD_HERE_INSIDE_THE_SINGLE_QUOTE' -scope 0

    3) naviseccli -h SPA getagent

    4) naviseccli -h SPA storagegroup -list

  • Ybfx

    24 Posts

    1561

    0

    Posted May 18th, 2016 00:00

    username/pwd should be the one use for the block part...

  • Rainer_EMC

    6 Operator

    8645 Posts

    855

    0

    Posted May 18th, 2016 01:00

    Ybfx wrote:

    username/pwd should be the one use for the block part...

    correct - nasadmin is not a valid username for the SP

    typically that sysadmin is used there