Coder Social home page Coder Social logo

cisco-ucs-inventory-script's Introduction

Hi there, I'm Martijn ๐Ÿ‘‹

I'm is a proud Dutchman (stroopwafels!) and have spent around 16 years as an IT professional, mostly focused on network operations. Going from web hosting help desk operator, to server support, to third line networking engineer, to data center consultant, to solutions architect. I've been with VMware for 4 years, spending 2,5 years as an NSBU SE in the Benelux and now a Technical Marketing Architect for vRealize Network Insight.

I like to automate and see code come to life. Check out WhatPulse or PowervRNI as examples of that.

Contact ๐Ÿ“ซ

Stats โšก

Martijn's GitHub stats Top Langs

cisco-ucs-inventory-script's People

Contributors

jasmas avatar mpl241 avatar smitmartijn avatar thepvd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cisco-ucs-inventory-script's Issues

Syntax for Domain and CSV File Output

@smitmartijn @jasmas @mpl241 @ThePVD

Two Things.

  1. Can you show me how the Correct Syntax for UCS in a Domain?
  2. Can you show me how the Correct Syntax for CSV File Output?

NOTE: Can you Incorporate what I am requesting into Your Example below.

Your Example:
.\UCS-Inventory-Script.ps1 -UCSM UCS-Cluster-01.cosco.com -OutFile UCS-Cluster-01.html -Username ucsUsername -Password ucsPassword

Thanks,
Kenneth

Appears some quotes are missing

Is anyone receiving errors running this script like the following?

At D:\UCS_Powershell\UCS-Inventory-Script_2020.ps1:148 char:21

  •             Sign up
    
  •                 ~
    

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At D:\UCS_Powershell\UCS-Inventory-Script_2020.ps1:5675 char:12

  •        ~
    

The '<' operator is reserved for future use.
At D:\UCS_Powershell\UCS-Inventory-Script_2020.ps1:5693 char:46

  •   <li class="mr-3 mr-lg-0">"&"copy; 2020 GitHub, Inc.</li>
    
  •                                          ~~~~~~
    

Unexpected token 'GitHub' in expression or statement.
At D:\UCS_Powershell\UCS-Inventory-Script_2020.ps1:5693 char:52

  •   <li class="mr-3 mr-lg-0">"&"copy; 2020 GitHub, Inc.</li>
    
  •                                                ~
    

Missing argument in parameter list.
At D:\UCS_Powershell\UCS-Inventory-Script_2020.ps1:5745 char:101

  • ... signed-in" hidden>You signed in with another tab or window. <a href=" ...
  •                                                             ~
    

The '<' operator is reserved for future use.
At D:\UCS_Powershell\UCS-Inventory-Script_2020.ps1:5746 char:101

  • ... signed-out" hidden>You signed out in another tab or window. <a href=" ...
  •                                                             ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed

I found one fix for many of the lines that added single quotes, and have been able to enclose some of the Ampersand characters in double-quotes, but I'm at a point where it seems there is a double-quote missing.

some small things

I would like to share with some small things that I added/changed into Your script. I'm using it almost from beginning of my career at Cisco. And changes was done to suite more my needs in case of UCS assessment. After some time finally I'm ready to share and contribute my changes/findings.
Here is summary what I have done, there could be of course some changes which was done and simply forgotten :)

Cisco UCS Inventory Script - v5 (26-11-2018)

Added:

- Corrected UCSM version output

- Corrected Profile Templates and added extended informations

- Added Power Supplies Inventory

- Added Firmware Packages

- Added Catalog Package

- Added extended informations at Service Profile Templates

- Added extended informations at Server Storage Controller Inventory

- Added extended informations at local disks

- Added extended informations at memory modules

- Added extended informations at adapter

- Added vNIC Configuration

- Added Best Effort and FC Qos Class

- QoS Policies and QoS vNIC Policy Map moved to LAN Policies

- Added priviladge for local user information

- Added Disconnect-UCS at beginning

- Added .html at the end of out file

Feel free to reuse/change whatever suites You. Hope that small contribution will be helpful :).
Cheers
UCS_Inventory_v5.zip

Originally posted by @JakubKaminskiPL in #7 (comment)

Display Issues

Shows up odd looking on Chrome / Firefox / Safari on Mac OSX 10.12.1. The menus on each page are obscured by the text so you can't toggle between say fabric interconnect data and chassis data

Does this work with powertools 3.0 version?

I have just installed powertools 3.0 version and when running this script I get connect-ucs is not recognized as a command.
These are the modules and their version that are installed in my powershell 5.1.14393.4350

ModuleType Version Name ExportedCommands


Binary 3.0.1.2 Cisco.IMC {FnResetImcPowerProfile, FnTestImcLdapBinding, FnEnableImc...
Binary 3.0.1.2 Cisco.UCS.Common Get-UcsOs
Binary 2.5.3.0 Cisco.UCS.Core {Add-UcsHardwareProfile, Get-UcsPowerToolCommunity, Get-Uc...
Binary 3.0.1.2 Cisco.UCSManager {FnDecommissionUcsRackUnit, FnResetUcsIoModule, FnRecommis...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.