Code Monkey home page Code Monkey logo

Comments (6)

vtrimi avatar vtrimi commented on June 12, 2024 1

hi Oli,

Yes, sir. this solved my issue!
Thank you very much. I hope this helps as well other people who use Auto Deploy.

BR ./trim

from asbuiltreport.vmware.vsphere.

tpcarman avatar tpcarman commented on June 12, 2024 1

Awesome work @orb71. Thank you. I've found a few other issues which I have pushed to the dev branch. Expect this fix there shortly too.

from asbuiltreport.vmware.vsphere.

orb71 avatar orb71 commented on June 12, 2024

Hi Trim,

Do you mind posting the following output from your console please ?

esxcli system boot device get
esxcli system settings advanced list -o /UserVars/ImageCachedSystem
esxcli storage core device list

Regards,
Oli

from asbuiltreport.vmware.vsphere.

vtrimi avatar vtrimi commented on June 12, 2024

Hi Oli,

Thank you for coming back to me.

Unfortunately i cant send you the core device list (more then 100LUNs).
It would be amazing just to skip if something fails like the issue i had or similar and not stop the hole script.

root@xxxx:~] esxcli system boot device get
Boot Filesystem UUID:
Boot NIC: xx-xx-xx-xx-xx-xx-xx
Stateless Boot NIC:

[root@xxxx:~] esxcli system settings advanced list -o /UserVars/ImageCachedSystem
Unable to find option ImageCachedSystem

BR ./trim

from asbuiltreport.vmware.vsphere.

orb71 avatar orb71 commented on June 12, 2024

Ouch 100!

We won't need it since it happens outside the function. You need to edit Invoke-AsBuiltReport.VMware.vSphere.ps1 in your module directory

Line 372 : $bootSize = "N/A" and replace it by $bootSize = 0 for the quick and dirty fix.

The problem ia found at line 1868, we have a missing a value type check.

'Size' = Switch ($ESXiBootDevice.SizeMB){
'N/A' { 'N/A' }
default{"$([math]::Round($ESXiBootDevice.SizeMB / 1024, 2)) GB"}
}

Hope it helps!
Oli

from asbuiltreport.vmware.vsphere.

orb71 avatar orb71 commented on June 12, 2024

@tpcarman , glad to help and I don't mind submiting pull request. Do you want me to submit a bug report for the Get-PCIDeviceDetail function as well?

from asbuiltreport.vmware.vsphere.

Related Issues (20)

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.