UCS Health Check

Version 1

    UCS Power Scripting Submission Form

     

    UCS Communities Login ID: chshocke

    Twitter handle (optional):shock2k

    Have you read the Official Rules of the Contest and do you accept the terms and conditions     Yes  [ x]    No  [   ]

    Are you a Cisco employee                                                                                                                          Yes  [ x]    No  [   ]

    Does the script run on an emulator -                                                                                                          Yes [ x]    No  [x]

              If yes which version? _____Any__________

     

     

    Include your script here:

    Script Attached


    Help File:

    <#

     

    .SYNOPSIS

    Validate UCS Health

     

    .DESCRIPTION

    Validatest the overall health of all UCS instances.  Can be used for confirming health before major change activity.

     

    .PARAMETER Name

    IP Address or comma seperated set if IP Addresses of the UCSM instance/s.  If an IP is entered here the UCSM .csv list will be ignored.

     

    .PARAMETER CsvPath

    Full path to a .csv formatted list of UCSM IPs to interact with.  Must be 2 rows with a "UCSM" header in row 1, and a "IP" header in row 2.

     

    .PARAMTER RunOffline

    Only works with the UCS local "admin" account.

    Using the "-RunOffline" Switch will store encrypted the password you first enter when you first log in through this script and store it in "C:\UCSPowertoolOut\Secure".

    After this has been completed the script can be run again without using user credentials.

    This will only work from the server in which you first logged in.  Attempts to move the secure password file to another server will fail.

     

    .PARAMETER OUTPUTDIR

    Directory you want the Show Techs outputed to. Defaults to "C:\UCSPowertoolOut\<RunningScriptName>"

    If the directory does not exist, it will be created.

     

    .EXAMPLE

    Validate-UcsHealth.ps1 -Name "10.10.10.1,10.10.10.2,10.10.10.3"

    This example will validate UCS Health for UCS Domains 10.10.10.1, 10.10.10.2 and 10.10.10.3

     

    .EXAMPLE

    Validate-UcsHealth.ps1 -CsvPath "C:\zInput\ucsmList.csv"

    This example will get run the script using the list of UCSM IP's in the ucsmList.csv file.

     

    .Example

    Validate-UcsHealth.ps1 -CsvPath "C:\zInput\ucsmList.csv" -OUTPUTDIR "\\MyDirectory\"

    This example will get run the script using the list of UCSM IP's in the ucsmList.csv file and change the default output directory to "\\MyShowTechs\<RunningScriptName>\<UcsmDomain>.

     

    .NOTES

    Author: Chris Shockey, Architect, Cisco Advanced Services

    Email: chris.shockey@cisco.com

    Version: 1.7

     

    .LINK

    http://developer.cisco.com

    #>


    Example Output:

    Global: Validation: RunAsAdmin: Passed

    Global: Validation: UCS PowerTool: Passed

    Global: Validation: UCS PowerTool Config: Multi Default UCS: Passed

    GLOBAL: Validation: Output Directory: Verified

    Global: Enter your UCS Credentials: Passed

    Global: UCSM Connect: Ping Test: 10.5.11.234: Passed, RTT = 1: UCS Connect: Passed

    MPSC8-UCS-1: Begin UCSM validation...

    MPSC8-UCS-1: UCS Status: Validating:

    MPSC8-UCS-1: UCS Status: HA: Readiness: Passed

    MPSC8-UCS-1: UCS Status: HA: Status: Passed

    MPSC8-UCS-1: UCS Status: HA: Cluster Configuration: Passed

    MPSC8-UCS-1: UCS Status: Management Networks...

    MPSC8-UCS-1: UCS Status: Management Networks: FI-A: Passed

    MPSC8-UCS-1: UCS Status: Management Networks: FI-A: Ping Test: Passed, RTT = 1

    MPSC8-UCS-1: UCS Status: Management Networks: FI-B: Passed

    MPSC8-UCS-1: UCS Status: Management Networks: FI-B: Ping Test: Passed, RTT = 2

    MPSC8-UCS-1: UCS System: SanCloud: Mode: end-host

    MPSC8-UCS-1: UCS System: LanCloud: Mode: end-host

    MPSC8-UCS-1: UCS System: Time: NTP Config: 10.0.53.54: Ping: Passed

    MPSC8-UCS-1: UCS System: Time: NTP Config: north-america.pool.ntp.org: Ping: Failed

    MPSC8-UCS-1: UCS System: Time: DNS Config: 10.0.53.54: Ping: Passed

    MPSC8-UCS-1: UCS System: Firmware: Mgmt: Validate: Version = 2.2(1b)

    MPSC8-UCS-1: UCS System: Firmware: Mgmt: Validate: FI's: Passed

    MPSC8-UCS-1: UCS System: Firmware: Mgmt: Validate: IOMS: Passed

    MPSC8-UCS-1: UCS System: Chassis: IOM Status:

    MPSC8-UCS-1: UCS System: Chassis: IOM Status: Thermal: Passed

    MPSC8-UCS-1: UCS System: Chassis: IOM Status: Peer Status: Passed

    MPSC8-UCS-1: UCS System: Chassis: IOM Status: OperState: Passed

    MPSC8-UCS-1: FI Connectivity: SAN/LAN

    MPSC8-UCS-1: FI Connectivity: Eth: Uplink Ports:

    MPSC8-UCS-1: FI Connectivity: Eth: Uplink Ports: FI-A:  Not Present.

    MPSC8-UCS-1: FI Connectivity: Eth: Uplink Ports: FI-B: Port ID 20: Failed, OperState = sfp-not-present sfp-not-present

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels:

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-A: VPC13: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-A: VPC13: Port ID 17: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-A: VPC13: Port ID 18: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-B: VPC14: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-B: VPC14: Port ID 17: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-B: VPC14: Port ID 18: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports:

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A:

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 3 3: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 4 4: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 5 5: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 6 6: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 7 7: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 8 8: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B:

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels:

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-A: FC-PC-11: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-A: FC-PC-11: Port ID 1: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-A: FC-PC-11: Port ID 2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-B: FC-PC-12: Degraded

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-B: FC-PC-12: Port ID 1: Failed: Reason = Membership Down

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-B: FC-PC-12: Port ID 2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Validation: Checking FI SAN Connectivity.

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Uplink Ports: Not Present

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Port Channels:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Fabric A: FC-PC-11: Port 2/1: Passed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Fabric A: FC-PC-11: Port 2/2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Fabric A: FC-PC-11: Passed, operational FC Port member(s) = 2

    MPSC8-UCS-1: FI Connectivity: FCOE: VSAN 2001: Ports: Not Present

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Uplink Ports: Not Present

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Port Channels:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Fabric B: FC-PC-12: Port 2/1: Failed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Fabric B: FC-PC-12: Port 2/2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Fabric B: FC-PC-12: Passed:Operational FC Port member(s) = 1 of 2

    MPSC8-UCS-1: FI Connectivity: FCOE: VSAN 2002: Ports: Not Present

    MPSC8-UCS-1: UCS System: Firmware: Host: Validate: Version = 2.2(1b)

    MPSC8-UCS-1: Server: Firmware: CIMC: Passed

    MPSC8-UCS-1: Server: Firmware: Adaptor: Failed

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/1/1: Failed, Version = 2.1(3a)

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/2/1: Failed, Version = 2.1(3a)

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/4/1: Failed, Version = 2.1(3a)

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/5/1: Failed, Version = 2.1(3a)

    Global: Cleanup: Script Environment: Cleaned

    Global: Validation: RunAsAdmin: Passed

    Global: Validation: UCS PowerTool: Passed

    Global: Validation: UCS PowerTool Config: Multi Default UCS: Passed

    GLOBAL: Validation: Output Directory: Verified

    Global: Enter your UCS Credentials: Passed

    Global: UCSM Connect: Ping Test: 10.5.11.234: Passed, RTT = 3: UCS Connect: Passed

    MPSC8-UCS-1: Begin UCSM validation...

    MPSC8-UCS-1: UCS Status: Validating:

    MPSC8-UCS-1: UCS Status: HA: Readiness: Passed

    MPSC8-UCS-1: UCS Status: HA: Status: Passed

    MPSC8-UCS-1: UCS Status: HA: Cluster Configuration: Passed

    MPSC8-UCS-1: UCS Status: Management Networks...

    MPSC8-UCS-1: UCS Status: Management Networks: FI-A: Passed

    MPSC8-UCS-1: UCS Status: Management Networks: FI-A: Ping Test: Passed, RTT = 0

    MPSC8-UCS-1: UCS Status: Management Networks: FI-B: Passed

    MPSC8-UCS-1: UCS Status: Management Networks: FI-B: Ping Test: Passed, RTT = 3

    MPSC8-UCS-1: UCS System: SanCloud: Mode: end-host

    MPSC8-UCS-1: UCS System: LanCloud: Mode: end-host

    MPSC8-UCS-1: UCS System: Time: NTP Config: 10.0.53.54: Ping: Passed

    MPSC8-UCS-1: UCS System: Time: NTP Config: north-america.pool.ntp.org: Ping: Failed

    MPSC8-UCS-1: UCS System: Time: DNS Config: 10.0.53.54: Ping: Passed

    MPSC8-UCS-1: UCS System: Firmware: Mgmt: Validate: Version = 2.2(1b)

    MPSC8-UCS-1: UCS System: Firmware: Mgmt: Validate: FI's: Passed

    MPSC8-UCS-1: UCS System: Firmware: Mgmt: Validate: IOMS: Passed

    MPSC8-UCS-1: UCS System: Chassis: IOM Status:

    MPSC8-UCS-1: UCS System: Chassis: IOM Status: Thermal: Passed

    MPSC8-UCS-1: UCS System: Chassis: IOM Status: Peer Status: Passed

    MPSC8-UCS-1: UCS System: Chassis: IOM Status: OperState: Passed

    MPSC8-UCS-1: FI Connectivity: SAN/LAN

    MPSC8-UCS-1: FI Connectivity: Eth: Uplink Ports:

    MPSC8-UCS-1: FI Connectivity: Eth: Uplink Ports: FI-A:  Not Present.

    MPSC8-UCS-1: FI Connectivity: Eth: Uplink Ports: FI-B: Port ID 20: Failed, OperState = sfp-not-present sfp-not-present

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels:

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-A: VPC13: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-A: VPC13: Port ID 17: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-A: VPC13: Port ID 18: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-B: VPC14: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-B: VPC14: Port ID 17: Passed

    MPSC8-UCS-1: FI Connectivity: Eth: Port Channels: FI-B: VPC14: Port ID 18: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports:

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A:

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 3 3: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 4 4: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 5 5: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 6 6: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 7 7: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-A: Port ID 8 8: Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B:

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Uplink Ports: FI-B: Port ID : Passed.

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels:

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-A: FC-PC-11: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-A: FC-PC-11: Port ID 1: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-A: FC-PC-11: Port ID 2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-B: FC-PC-12: Degraded

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-B: FC-PC-12: Port ID 1: Failed: Reason = Membership Down

    MPSC8-UCS-1: FI Connectivity: FC: Port Channels: FI-B: FC-PC-12: Port ID 2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: Validation: Checking FI SAN Connectivity.

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Uplink Ports: Not Present

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Port Channels:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Fabric A: FC-PC-11: Port 2/1: Passed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Fabric A: FC-PC-11: Port 2/2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2001: Fabric A: FC-PC-11: Passed, operational FC Port member(s) = 2

    MPSC8-UCS-1: FI Connectivity: FCOE: VSAN 2001: Ports: Not Present

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Uplink Ports: Not Present

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Port Channels:

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Fabric B: FC-PC-12: Port 2/1: Failed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Fabric B: FC-PC-12: Port 2/2: Passed

    MPSC8-UCS-1: FI Connectivity: FC: VSAN 2002: Fabric B: FC-PC-12: Passed:Operational FC Port member(s) = 1 of 2

    MPSC8-UCS-1: FI Connectivity: FCOE: VSAN 2002: Ports: Not Present

    MPSC8-UCS-1: UCS System: Firmware: Host: Validate: Version = 2.2(1b)

    MPSC8-UCS-1: Server: Firmware: CIMC: Passed

    MPSC8-UCS-1: Server: Firmware: Adaptor: Failed

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/1/1: Failed, Version = 2.1(3a)

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/2/1: Failed, Version = 2.1(3a)

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/4/1: Failed, Version = 2.1(3a)

    MPSC8-UCS-1: Server: Firmware: Adaptor: 2/5/1: Failed, Version = 2.1(3a)

    Global: Cleanup: Script Environment: Cleaned