Unsolved
This post is more than 5 years old
116 Posts
3
10066
January 3rd, 2012 00:00
Powershell Scripts for EMC Performance Statistics block/NAS (updated)
This thread is going to be the home of the updated Powershell scripts for collecting stats from the Unified/VNX EMC arrays. The focus over the past months on improvements has been aimed at newer EMC technology such as Pools and FASTCache with an eye towards VMware vCenter Operations. We have stats for Pools, Pool Tiers (raid groups that make up Pools), Raid Groups, Disks, and traditional LUNs.
The latest version includes some awesome new features mainly geared at providing richer, more standardized (modeled from Analyzer names), and more natively compatible with VMware vCOps (1.0.1 required for multiple arrays and relationships). In addition it was mostly rewritten from a data calculation perspective, and gives the flexibility of choosing what level of granularity to collect on (whether purely SPs, or things like LUNs and disks).
There is also a goodie included (ps_navi_correlate_datastore_uuid) that is useful for vCOps and non-vCOps environments which does a correlation between Unified/VNX block LUN names and their VMware counterpart names.
# This command does a collection (NAS) and posts it to vCOps v5+ (UPDATED 05/29/12)
.\get_unified_nas_perf.ps1 -username nasadmin -password abc -csip controlstationip -devicename VNX06 -resourcedescription VNX06 -vcopsip vcopsip -protocol https -vcopsuser username -vcopspass pass -post
# This command does a collection (block) and posts it to vCOps v5+ (optional -eng engpass)
.\get_unified_block_perf.ps1 -username sysadmin -password sysadmin -scope 0 -spaip spaip -spbip spbip -vcopsip vcopsip -protocol https -vcopsuser xxx -vcopspass xxx -devicename "CX4-1" -resourcedescription "EMC CX" -showluns -showdisks -showrgs -showpooltiers -showpooltierrgs -showpools -showarraysummary -post -timeout 120
# Run this for correlation information, requires that you specify -vcserver, -vcusername, -vcpassword, or have logged into VC through PowerCLI already
.\ps_navi_correlate_datastore_uuid.ps1 -username sysadmin -password sysadmin -scope 0 -spip spip -devicename VNX01
# This command configures internal relationships between EMC resources, ie. LUN uses SPA, which controls Raidgroup x, and Disks xyz
.\get_unified_block_perf.ps1 -username sysadmin -password sysadmin -scope 0 -spaip spaip -spbip spbip -showluns -showdisks -showpools -showrgs -showpooltiers -showpooltierrgs -showarraysummary -showrelationships -devicename "CX4-1" | .\ps_vcops_httpost.ps1 -vcopsip vcopsip -protocol https -vcopsuser xxx -vcopspass xxx -devicename "CX4-1" -relationships -post
#This command configured relationship between LUN and VMware Datastore (awesome)
.\ps_navi_correlate_datastore_uuid.ps1 -username sysadmin -password sysadmin -scope 0 -spip spip -devicename "CX4-1" -silent | .\ps_vcops_httpost.ps1 -vcopsip vcopsip -protocol https -vcopsuser xxx -vcopspass xxx -devicename "CX4-1" -relationships -post
clintonskitson
116 Posts
0
January 3rd, 2012 23:00
"The system cannot locate the resource specified."
This error seems to be caused by an invalid vCOps IP or a web service that isn't running on the vCOps server.
clintonskitson
116 Posts
0
February 21st, 2012 09:00
The destination vCOps server specified with -vcopsip was not correct, or possibly the httpost adapter was not running.
jcpowermac
3 Posts
0
March 21st, 2012 10:00
Clinton,
Do you know if ps_navi_correlate_datastore_uuid.ps1 works with vSphere 5 and PPVE? When I was troubleshooting it looks like "[array]$arrMILuns = $configStorageSystem.StorageDeviceInfo.MultipathInfo.Lun" is an empty array.
Thanks,
Joe
jcpowermac
3 Posts
0
March 21st, 2012 13:00
Matt,
I would be interested to see what it is returning since even looking at the MOB I don't have a result.
Also see this text in vSphere SDK reference.
http://pubs.vmware.com/vsphere-50/topic/com.vmware.wssdk.apiref.doc_50/vim.host.MultipathInfo.html
mattcowger1
61 Posts
0
March 21st, 2012 13:00
It works with my Lab with vSphere 5 and PP/VE.
brianjbrady
1 Message
0
May 1st, 2012 12:00
EMC VNXe Support.
In your original post on setting this up you attached a ppt that stated that the VNXe was supported.
https://community.emc.com/thread/126637
I have been trying to get my VNXe to send metrics to my vCOps instance for 2 or 3 days now with no luck. From reading the scripts I only see the use of the navisphere cli, unless I missed something. What I understand about the VNXe system is that it does not support navi cli. Is there a tweak that I need to make to the powershell command to get this to work for me?
Help.
Thanks in advance.
................
BUMP
.................
Has anyone tried using this script with the VNXe?
Anyone?
DaGrin
87 Posts
0
May 25th, 2012 14:00
Clinton,
are these scripts the basis for the EMC VNX Connector which will provide VNX storage metrics within VMware vCenter Operations?
John
clintonskitson
116 Posts
1
May 29th, 2012 13:00
John,
Short answer here, is no. These scripts provide some great functionality in the short term, but the VNX connector on release will be a fully supported vCOps plugin rewritten to be native to vCOps. These scripts leverage vCOps open interface and a dedicated collection platform to get stats into vCOps.
BMcDonald74
3 Posts
0
June 1st, 2012 11:00
I get this error below when I run this command, ".\get_unified_block_perf.ps1 -username sysadmin -password sysadmin -scope 0 -spaip spaip -spbip spbip -vcopsip vcopsip -protocol https -vcopsuser xxx -vcopspass xxx -devicename "CX4-1" -resourcedescription "EMC CX" -showluns -showdisks -showrgs -showpooltiers -showpooltierrgs -showpools -showarraysummary -post -timeout 120".
ERROR:
C:\scripts\emc\ps_vcops_httpost.ps1 : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\scripts\emc\get_unified_block_perf.ps1:647 char:38
+ $finalOut | .\ps_vcops_httpost.ps1 <<<< -devicetype "ps-emc-unified-block" -vcopsuser $vcopsuser -vcops
pass "$vcopspass" -protocol $protocol -vcopsip $vcopsip -devicename $devicename -resourcedescription $resourcedescripti
on -identifiers $identifiers -post }
+ CategoryInfo : InvalidData: (:) [ps_vcops_httpost.ps1], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidati"color: #494848; font-family: Verdana, Arial; font-size: 12px; background-color: #fefefe;">
mattcowger1
61 Posts
0
June 1st, 2012 13:00
Doesn't look like you replaced 'spaip' and 'sbpip' with the IP addresses of your SPs....
BMcDonald74
3 Posts
0
June 5th, 2012 06:00
Here is the command I'm running when I get the error. I have the IP's listed.
.\get_unified_block_perf.ps1 -username XXXXX -password XXXXX -scope 0 -spaip 10.6.4.10 -spbip 10.6.4.11 -vcopsip 10.6.2.226 -protocol https -vcopsuser XXXXX -vcopspass XXXXX -devicename "ADCSAN401" -resourcedescription "ADC EMC CX4" -showluns -showdisks -showrgs -showpooltiers -showpooltierrgs -showpools -showarraysummary -post -timeout 180
edgoad
3 Posts
0
June 29th, 2012 08:00
I walked through the process you described, but I think I am having problems with the relationships. I ran the get_unified_block_perf.ps1 script with the -showrelationships switch and I see it outputing the relationships between Raidgroups, LUNs, and disks, but I dont see any relationships containing the SPs or SANs. Am I doing something wrong?
Also you show 5 example commands (1 for NAS, 1 for block performance, and 3 for relationships). Are all of these needed? A few of them look redundant