This probably works from Unix too but in any case, I had to do the following to finally get navicli working from a Windows XP box (old due to EMC software requirements, ESRS for example):
- Download the latest NaviCLI for Windows from EMC’s support site (what used to be Power Link). As of Nov 2013 it’s NaviCLI-Win-32-x86-en_US-7.33.1.0.33-1.exe
- Install. It will ask you if you want to set up secure storage for credentials. I chose the answer yes but never found where that actually does anything. I don’t know if choosing no will hurt your efforts to get this working later on.
- Chose the option to add NaviCLI to the path.
- Complete install.
- Run this command to clear out the credential storage:
naviseccli -RemoveUserSecurity
- Now this one to store your credentials for the array in question, with IP address 192.0.2.1, username USERNAME, password “PASSWORD”. Note I have double quotes around the password; this successfully allows you to use a password with symbols from the command line. I ran into an issue there too until I quoted it.
naviseccli -AddUserSecurity -User USERNAME -password "PASSWORD" -h 192.0.2.1 -scope 0
- Run a simple command to see if it worked; for example this one will list all of your LUNs and their parameters:
naviseccli -h 192.0.2.1 getlun -uid -rg -type -drivetype -capacity