├── README.md
└── LICENSE
/README.md:
--------------------------------------------------------------------------------
1 | ## UCS Health Check and Inventory Script (ported from UCS Communities)
2 |
3 | ### Pre-requisites
4 |
5 | **Windows**
6 | - Powershell 3.0 or higher
7 | - UCS PowerTool 2.5.1 or higher
8 | - .NET 4.5 or higher
9 |
10 | **Linux**
11 | - [Powershell 6.1.1](https://github.com/PowerShell/PowerShell/releases/tag/v6.1.1)
12 | - [Cisco UCS PowerTool Core](https://community.cisco.com/t5/cisco-developed-ucs-integrations/cisco-ucs-powertool-core-suite-for-powershell-core-modules-for/ta-p/3643354)
13 |
14 | ---
15 |
16 | ### Cloning a specific Version
17 | Always checkout a specific version of this repo and **AVOID** using master.
18 | `git clone https://github.com/datacenter/ucs-browser.git && cd ucs-browser && git checkout 2.7`
19 |
20 | ### Running the Script
21 | Before generating the report select option `1)` from the root menu and connect to one or more target UCS Domains. Select option `2)` from the connection menu to cache the domain credentials and speed up future executions.
22 |
23 | **Notes for Powertool Core:**
24 | The save file dialog relies on .NET and therefore doesn't work on linux based systems. To get around this limitation connect to and cache ucs doman credentials as mentioned above and then exit the script. Next, relaunch the script using the `-RunReport`, `-UseCached` and `-Silent` flags
25 |
26 |
27 | Ex: .\UCS_Health_Check.ps1 -UseCached -RunReport -Silent -Email user@domain.com
28 |
29 | ---
30 | ### Parameters
31 | **[Vars]**
32 | - `Email` - emails the generated health check report to the specified email address
33 |
34 |
35 | **[Switches]**
36 | - `UseCached` - connects to all domains in the local cache credential file
37 | - `RunReport` - automatically kicks off a health check report
38 | - `Silent` - auto-names the report file and exits the script after completing the report
39 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | CISCO SAMPLE CODE LICENSE
2 | Version 1.0
3 | Copyright (c) 2017 Cisco and/or its affiliates
4 |
5 | These terms govern this Cisco example or demo source code and its
6 | associated documentation (together, the "Sample Code"). By downloading,
7 | copying, modifying, compiling, or redistributing the Sample Code, you
8 | accept and agree to be bound by the following terms and conditions (the
9 | "License"). If you are accepting the License on behalf of an entity, you
10 | represent that you have the authority to do so (either you or the entity,
11 | "you"). Sample Code is not supported by Cisco TAC and is not tested for
12 | quality or performance. This is your only license to the Sample Code and
13 | all rights not expressly granted are reserved.
14 |
15 | 1. LICENSE GRANT: Subject to the terms and conditions of this License,
16 | Cisco hereby grants to you a perpetual, worldwide, non-exclusive, non-
17 | transferable, non-sublicensable, royalty-free license to copy and
18 | modify the Sample Code in source code form, and compile and
19 | redistribute the Sample Code in binary/object code or other executable
20 | forms, in whole or in part, solely for use with Cisco products and
21 | services. For interpreted languages like Java and Python, the
22 | executable form of the software may include source code and
23 | compilation is not required.
24 |
25 | 2. CONDITIONS: You shall not use the Sample Code independent of, or to
26 | replicate or compete with, a Cisco product or service. Cisco products
27 | and services are licensed under their own separate terms and you shall
28 | not use the Sample Code in any way that violates or is inconsistent
29 | with those terms (for more information, please visit:
30 | www.cisco.com/go/terms.
31 |
32 | 3. OWNERSHIP: Cisco retains sole and exclusive ownership of the Sample
33 | Code, including all intellectual property rights therein, except with
34 | respect to any third-party material that may be used in or by the
35 | Sample Code. Any such third-party material is licensed under its own
36 | separate terms (such as an open source license) and all use must be in
37 | full accordance with the applicable license. This License does not
38 | grant you permission to use any trade names, trademarks, service
39 | marks, or product names of Cisco. If you provide any feedback to Cisco
40 | regarding the Sample Code, you agree that Cisco, its partners, and its
41 | customers shall be free to use and incorporate such feedback into the
42 | Sample Code, and Cisco products and services, for any purpose, and
43 | without restriction, payment, or additional consideration of any kind.
44 | If you initiate or participate in any litigation against Cisco, its
45 | partners, or its customers (including cross-claims and counter-claims)
46 | alleging that the Sample Code and/or its use infringe any patent,
47 | copyright, or other intellectual property right, then all rights
48 | granted to you under this License shall terminate immediately without
49 | notice.
50 |
51 | 4. LIMITATION OF LIABILITY: CISCO SHALL HAVE NO LIABILITY IN CONNECTION
52 | WITH OR RELATING TO THIS LICENSE OR USE OF THE SAMPLE CODE, FOR
53 | DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO DIRECT, INCIDENTAL,
54 | AND CONSEQUENTIAL DAMAGES, OR FOR ANY LOSS OF USE, DATA, INFORMATION,
55 | PROFITS, BUSINESS, OR GOODWILL, HOWEVER CAUSED, EVEN IF ADVISED OF THE
56 | POSSIBILITY OF SUCH DAMAGES.
57 |
58 | 5. DISCLAIMER OF WARRANTY: SAMPLE CODE IS INTENDED FOR EXAMPLE PURPOSES
59 | ONLY AND IS PROVIDED BY CISCO "AS IS" WITH ALL FAULTS AND WITHOUT
60 | WARRANTY OR SUPPORT OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY
61 | LAW, ALL EXPRESS AND IMPLIED CONDITIONS, REPRESENTATIONS, AND
62 | WARRANTIES INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTY OR
63 | CONDITION OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-
64 | INFRINGEMENT, SATISFACTORY QUALITY, NON-INTERFERENCE, AND ACCURACY,
65 | ARE HEREBY EXCLUDED AND EXPRESSLY DISCLAIMED BY CISCO. CISCO DOES NOT
66 | WARRANT THAT THE SAMPLE CODE IS SUITABLE FOR PRODUCTION OR COMMERCIAL
67 | USE, WILL OPERATE PROPERLY, IS ACCURATE OR COMPLETE, OR IS WITHOUT
68 | ERROR OR DEFECT.
69 |
70 | 6. GENERAL: This License shall be governed by and interpreted in
71 | accordance with the laws of the State of California, excluding its
72 | conflict of laws provisions. You agree to comply with all applicable
73 | United States export laws, rules, and regulations. If any provision of
74 | this License is judged illegal, invalid, or otherwise unenforceable,
75 | that provision shall be severed and the rest of the License shall
76 | remain in full force and effect. No failure by Cisco to enforce any of
77 | its rights related to the Sample Code or to a breach of this License
78 | in a particular situation will act as a waiver of such rights. In the
79 | event of any inconsistencies with any other terms, this License shall
80 | take precedence.
--------------------------------------------------------------------------------