Currently I find that the only way I can execute VPLEXCLI commands is to first ssh on to the array, and second type "VPLEXCLI" which again prompts for user/password, and then I am in a position to execute VPLEXCLI commands.
Is there a way where I can avoid this and get the command o/p directly from a host by ssh. i.e .
Here is a trick I have done before, I haven't tried this on the vPlex platform, but give it a shot to see if you can embed the authentication request in the command for the CLI commands.
The issue I see here is that : VPLEXCLI is nothing but 'exec telnet localhost 49500'
So if you are ssh'ing from a host on to the VPLEX, you cannot get the CLI o/p in a non-interactive manner - which is a bummer, unless some EMC gurus seeing this can suggest some clever solution.
Requires a good amount of setup and knowledge of REST API programming but once you get it working it will make things much easier.
"VPLEX Element Manager API uses the Representational State Transfer (REST) software architecture for distributed systems such as the World Wide Web. It allows software developers and other users to use the API to create scripts to run VPLEX CLI commands. "
dynamox
11 Legend
•
20419 Posts
•
87439 Points
2478
0
Posted November 8th, 2011 15:00
There is plink for windows that can take pw as an argument..same developer as putty.
Sent from my Verizon Wireless 4GLTE Phone