VMware Cloud Community
MrVmware9423
Expert
Expert

Can we write "PowerCLI Script" to get Cisco UCS VIC1240 Card Details (Firmware???

Can we write "PowerCLI Script" to get Cisco VIX (Firmware detail

For Example : Below ESX Native Command shows desired output for me.

~ # esxcfg-scsidevs -a

vmhba0  megaraid_sas      link-n/a  unknown.vmhba0                          (0:1:0.0) LSI / Symbios Logic MegaRAID SAS SKINNY Controller

vmhba1  fnic              link-up   fc.20000025b5aa00ef:20000025b5bb001e    (0:12:0.0) Cisco Systems Inc Cisco VIC FCoE HBA Driver

vmhba2  fnic              link-up   fc.20000025b5aa00ef:20000025b5bb000e    (0:13:0.0) Cisco Systems Inc Cisco VIC FCoE HBA Driver

~ # esxcfg-nics -l

Name    PCI           Driver      Link Speed     Duplex MAC Address       MTU    Description

vmnic0  0000:06:00.00 enic        Up   1000Mbps  Full   00:25:b5:00:00:0d 1500   Cisco Systems Inc Cisco VIC Ethernet NIC

vmnic1  0000:07:00.00 enic        Up   10000Mbps Full   00:25:b5:00:01:ed 1500   Cisco Systems Inc Cisco VIC Ethernet NIC

vmnic2  0000:08:00.00 enic        Up   1000Mbps  Full   00:25:b5:00:01:dd 1500   Cisco Systems Inc Cisco VIC Ethernet NIC

vmnic3  0000:09:00.00 enic        Up   1000Mbps  Full   00:25:b5:00:01:bd 1500   Cisco Systems Inc Cisco VIC Ethernet NIC

vmnic4  0000:0a:00.00 enic        Up   1000Mbps  Full   00:25:b5:00:01:fd 1500   Cisco Systems Inc Cisco VIC Ethernet NIC

vmnic5  0000:0b:00.00 enic        Up   1000Mbps  Full   00:25:b5:00:00:1d 1500   Cisco Systems Inc Cisco VIC Ethernet NIC

But I needed PowerCLI script to capture firmware version for this

regards

Mr Vmware

0 Kudos
3 Replies
kujeter
Enthusiast
Enthusiast

We use a script that was created by Brandon Beck to do general UCS domain health checks. It includes VIC firmware levels for all of the adapters. I'm not sure what you are looking to do with the firmware info but if you are just looking for a easy way to report on them across the board check it out. You can find it at UCS HealthCheck v2.1 | Cisco Communities

0 Kudos
sneddo
Hot Shot
Hot Shot

You may be able to use UCS PowerTool for this- which it appears is what the script @kujeter posted uses as well.

0 Kudos
sneddo
Hot Shot
Hot Shot

So, once you launch PowerTools for UCS Manager, you should be able to do this:

Connect-UCS $ucsdomain

Get-UcsAdaptorUnit | Select dn, Model, @{N="Firmware";e={($_ | Get-UcsMgmtController | Get-UcsFirmwareRunning -Deployment system).Version}}

UCSB-MLOM-40G-01 is the model for the VIC adaptor (you can verify with the below):

Get-UcsEquipmentManufacturingDef -Filter "Sku -ieq UCSB-MLOM-40G-01"

0 Kudos