HPE 3PAR StoreServ Storage
1832553 Members
6237 Online
110043 Solutions
New Discussion

3PAR health checkup scripting

 
Dsinghp2002
Frequent Advisor

3PAR health checkup scripting

Dear Mate,

 

I am trying to write a health checkup script, may be I am not passing the correct parameter, please look into it...

 

=============================================================

@ECHO off

set /p server="Enter host name: "

IF /i "%server%"=="3par" goto section3par

goto commonserver

:section3par

start putty.exe -ssh 3paradm@192.168.220.50 -pw 3pardata

cli showpd -sys 3Par8200


exit /b

==================================================

 

output-----

 

1.PNG2.PNG

 

3 REPLIES 3
sbhat09
HPE Pro

Re: 3PAR health checkup scripting

Hello @Dsinghp2002,

In your script, can you please change to IP address instead of hostname and check it how it goes.
Also can you please share the 'showsys' command output? (please mask the system serial number)

Regards,
Srinivas Bhat

If you feel this was helpful please click the KUDOS! thumb below!
Note: All of my comments are my own and are not any official representation of HPE.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Dsinghp2002
Frequent Advisor

Re: 3PAR health checkup scripting

@sbhat09 

Dear Srinivas,

 

 

Please find the below output.

3Par8200 cli% showsys
----------------(MB)----------------
ID --Name-- ---Model---- -Serial- Nodes Master ClusterLED TotalCap AllocCap FreeCap FailedCap
99678 3Par8200 HP_3PAR 8200 1699678 2 0 n/a 20127744 1369088 18758656 0
3Par8200 cli%

Vinky_99
Esteemed Contributor

Re: 3PAR health checkup scripting

@Dsinghp2002 

The script you provided seems to be attempting to perform a health checkup on a 3PAR storage system. However, it appears that you're not passing the correct parameters to the script. Here's a modified version of the script with some improvements:

 

@ECHO off

set /p server="Enter host name: "

IF /i "%server%"=="3par" goto section3par

goto commonserver

:section3par

start putty.exe -ssh 3paradm@192.168.220.50 -pw 3pardata -m "cli showpd -sys 3Par8200"

exit /b

 

 

In this modified script:

  1. The user is prompted to enter the host name. If they enter "3par", the script proceeds to the 'section3par' label. Otherwise, it goes to the 'commonserver' label (which is not included in the provided script).

  2. Inside the 'section3par' label, the 'putty.exe' command is executed with the specified parameters. The '-m' option is added to provide a script file ('cli showpd -sys 3Par8200') to execute on the remote server. This script file contains the command 'cli showpd -sys 3Par8200', which is passed to the 3PAR system to retrieve information about the physical disks (showpd) on the specified system (-sys 3Par8200).

Make sure you have Putty installed and the correct path to 'putty.exe' is set. Also, ensure that the IP address (192.168.220.50), username (3paradm), and password (3pardata) are correct for your 3PAR storage system.

This modified script should help you retrieve the desired output for your 3PAR health checkup.

Hope it helps! Let me know

These are my opinions so use it at your own risk.