HP 3PAR CLI - installing, creating scripts and automation of tasks / Powershell

First, we need to install HP 3PAR CLI software on a server.

I am going to use a windows server but I hope to be able to make a post also about linux and hp-ux versions.

Steps:

Download HP 3PAR CLI from HP portal 
I am using 3PAR_Inform_OS_3.2.2_MU2_CLI_SNMP_SW_QR482-11085.iso file downloaded from https://h20575.www2.hpe.com/tsusbportal/index.do?lc=EN_US&jumpid=sc_7epymnkr2q
It requires HP passport account and account details like SAID and SAR numbers.

Mount the iso, unpack it or burn it to a CD and browse the drive to \cli\windows and run setup file.


HP 3PAR Cli software

Next, you need to click next, accept the default install location or change with a personalized one, and to click install.
When install finishes you will find an icon on desktop and a shortcut in start menu named HP 3PAR CLI 3.x.x

Running the CLI will ask you for system details.
Insert IP address of the system followed by user name and password:

Next, if you require running automated scripts you will need a user with necessary rights for the commands it will execute and the password for it.

HP gives you the option to save the password in an encrypted file to be called by a script.

Steps to save it:
1. After you login to CLI run any of the following commands:
setpassword -saveonly -file c:\mypass.pwfile
setpassword -saveonly -file mypass.pwfile



Any option you choose will save the password file to the installation directory of CLI and NOT in C:\ drive. Not sure if it`s a bug or a feature :)

Complete path of the file is:
\Program Files (x86)\Hewlett-Packard\HP 3PAR CLI\bin


File will look like this:


To be continued....







Niciun comentariu:

Trimiteți un comentariu