Scripts for overall health checks

Post Reply
jlucivero
Posts: 4
Joined: Mon Feb 13, 2012 10:48 am

Scripts for overall health checks

Post by jlucivero »

I am new to 3PAR storage and I would like to know are there any scripts that will give me health check status disk free disk used cpu stats port stats etc? i would like to run them daily and dump them to html or excel any help is greatly appreciated. Thank you.
sid
Posts: 7
Joined: Thu Feb 16, 2012 7:04 am

Re: Scripts for overall health checks

Post by sid »

Hi

Most of this can be done using system reporter. You can create your own custom reports or use the the 'web queries' options to generate tables/charts as needed. If you script it you can grab the csv file each web query/report creates and use that data.

I've put a daily cpg use table in excel format (from 1st Jan 2012) example below.
# daily cpg space
http://WEBSERV/cgi-bin/3par-rpts/inserv_perf.exe?reptype=vstime&maxgraphs=8&comparesel=used_space&begintsecs=1325376053&endtsecs=&txtfromselcpg=&selcpg=--All+CPGs--&selraidtype=all&seldisktype=--All+Disk+Types--&charttab=table&chartlib=gdgraph&charttype=lines&graphx=&graphy=&timeform=absolute&graphlegpos=&ldspaceunit=GiB&report=cpg_space_time&category=daily&selsys=INSERV&seldomain=--All+Domains--&tableformat=excel


Change WEBSERV to the webserver where you run sys reporter and INSERV to your 3par.

I havent found a 'status' report option but would be interested to know if anyone has.
jxrojas
Posts: 9
Joined: Wed Mar 21, 2012 4:21 pm

Re: Scripts for overall health checks

Post by jxrojas »

There is a health check report available thru SPOCC. Basically login via web browser to your SP IP address using default credentials (User: 3parcust Password: 3parInServ).

Then go to Support and fire up a Health Check. It takes quite a while to complete.

You can also use full service account, but you should be rather cautious with it: User: spvar Password: 3parvar.
Attachments
healthcheck.jpg
healthcheck.jpg (44.23 KiB) Viewed 40443 times
jxrojas
Posts: 9
Joined: Wed Mar 21, 2012 4:21 pm

Re: Scripts for overall health checks

Post by jxrojas »

This is a sample output for the health check (summary):

# checkhealth 2.3.1.330
#Thu Mar 22 14:50:52 EDT 2012
### showsys

------------General-------------
System Name :
System Model : InServ T800
Serial Number :
System ID :
Number of Nodes : 6
Master Node : 3
Nodes Online : 2,3,4,5,6,7
Nodes in Cluster : 2,3,4,5,6,7

------System Capacity (MB)------
Total Capacity : 524681216
Allocated Capacity : 249135104
Free Capacity : 275544320
Failed Capacity : 1792

--------System Descriptors--------
Location :
Owner :
Contact :
Comment :



### Begin Summary Status

Component -----------------------------Description------------------------------ Qty
LD LDs not mapped to a volume 8
PD Disks experiencing a high level of I/O per second 46
Port Ports with less than one week of LESB history 37
Port Ports with increasing CRC error counts 33
Port Ports or devices which have experienced CRC errors within the last day 1
RC Groups which are not started 2
vlun Hosts not connected to a port 2
vlun Paths not reported by host agent 924


### End Summary Status
craving2learn
Posts: 1
Joined: Wed Apr 11, 2012 10:35 am

Re: Scripts for overall health checks

Post by craving2learn »

We are on Release version 3.1.1 (MU1) and "checkhealth -detail" command runs complete checkhealth on the InServ.

cli% showversion
Release version 3.1.1 (MU1)
Patches: None

Component Name Version
CLI Server 3.1.1 (MU1)
CLI Client 3.1.1 (MU1)
System Manager 3.1.1 (MU1)
Kernel 3.1.1 (MU1)
TPD Kernel Code 3.1.1 (MU1)
cli% checkhealth -detail
Checking alert
Checking cage
Checking date
Checking ld
Checking license
Checking network
Checking node
Checking pd
Checking port
Checking rc
Checking snmp
Checking task
Checking vlun
Checking vv
sunshinekoxtn
Posts: 7
Joined: Wed Oct 10, 2012 1:41 pm

Re: Scripts for overall health checks

Post by sunshinekoxtn »

I'm unable to connect to my spocc. It just times out. Is there anyway I can check if spocc is up and running through cli?
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: Scripts for overall health checks

Post by Richard Siemers »

spocc runs on the "service processor" not the storage nodes, that is a 1U server that comes with the storage that handles phone home and remote support operations. It will have a different IP address than your storage. It's also when the techs plug into when they come onsite to do hardware swaps.
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
ailean
Posts: 392
Joined: Wed Nov 09, 2011 12:01 pm

Re: Scripts for overall health checks

Post by ailean »

jxrojas wrote:There is a health check report available thru SPOCC. Basically login via web browser to your SP IP address using default credentials (User: 3parcust Password: 3parInServ).

Then go to Support and fire up a Health Check. It takes quite a while to complete.

You can also use full service account, but you should be rather cautious with it: User: spvar Password: 3parvar.

:roll:
Yet more default passwords we should go change now. ;)
ddIG46
Posts: 9
Joined: Thu Jan 16, 2014 7:50 am

Re: Scripts for overall health checks

Post by ddIG46 »

Hello All,

Just found this site what a great resource. I am trying to run the checkhealth command from the CLI and it is telling me I don't have Permissions? I know i can run it from SPOCC but would rather use the CLI.

I am logged in as 3parcust on version 2.3.1.

Any help I would appreciate it.

Cheers,
Daniel
Post Reply