Hi All,
How to get below details from powershell.
We are migrating SAN boot disk from old vmax ro new vmax, how to get if blades in UCS chassis are having boot from san or local boot.
Can we get UCS blade VNIC information with MAC address details.
Thank you in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Srinivas,
- To get the Actual Boot order for the server you can run the below cmdlet
Get-UcsChassis | Get-UcsBlade | Get-UcsBiosUnit | Get-UcsBiosBOT | Get-UcsBiosBootDevGrp
You can look for the order property for the blade you are interested to see if it is booting from Local or SAN.
2. You can get the VNIC Mac address in couple of ways
- Get-UcsBlade | Get-UcsAdaptorUnit | Get-UcsAdaptorHostEthIf
- Get the associated Service Profile for the blade and then run the below cmdlet
For ex: $blade = Get-UcsBlade -Id 1
Get-UcsServiceProfile -dn $blade.AssignedToDn | Get-UcsVnic |
Let us know if you need anything else on this.
Thanks,
Sumanth
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Sumanth,
Thank you for the help, for boot order i am getting bunch of information where i am unable to figure it out for which blade,
we have 8 chassis , in each chassis we have 8 blades , when i check the order property i have numbers with 1234 in repeat as below, how to find for which chassis which blade i have this information ?
thank you in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Srinivas,
You can look in to the DN value to get the exact blade and chassis details. Another thing you can try is filter the results only to see what is in order no 1 by running something like this.
Get-UcsChassis| Get-UcsBlade | Get-UcsBiosUnit | Get-UcsBiosBOT | Get-UcsBiosBootDevGrp | ? {$_.Order -eq 1} | Select DeviceName,Dn,Order
DeviceName | Dn | Order | |
---------- | -- | ----- | |
LocalStorageAny | sys/chassis-1/blade-1/bios/bdgep/bdg-1 | 1 | |
LAN | sys/chassis-1/blade-2/bios/bdgep/bdg-1 | 1 | |
LocalStorageAny | sys/chassis-1/blade-3/bios/bdgep/bdg-1 | 1 | |
KVMVMediaCDD | sys/chassis-1/blade-5/bios/bdgep/bdg-1 | 1 | |
LocalStorageAny | sys/chassis-1/blade-6/bios/bdgep/bdg-1 | 1 | |
KVMVMediaCDD | sys/chassis-2/blade-1/bios/bdgep/bdg-1 | 1 | |
LAN | sys/chassis-2/blade-5/bios/bdgep/bdg-1 | 1 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thank you very much for the help i got required output now.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.