04-04-2017 03:15 AM
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.
Solved! Go to Solution.
04-04-2017 06:48 AM
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 |
04-04-2017 04:28 AM
Hi Srinivas,
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
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
04-04-2017 05:08 AM
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.
04-04-2017 06:48 AM
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 |
04-04-2017 07:38 AM
Thank you very much for the help i got required output now.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide