Hi Jay -
As you probably noticed, the
get-bootpolicy cmdlet doesn't exactly do what you want. We're working on a better way to show that information. In the meantime, its super easy to do via
invoke-xmlcommand. Try this, assuming you've already made a connection to UCSM via PowerShell:
1invoke-xmlcommand -XMLStringList "<configResolveChildren inDn='org-root/ls-HyperV-Template/boot-policy/storage/san-primary'/>"
and
1invoke-xmlcommand -XMLStringList "<configResolveChildren inDn='org-root/ls-HyperV-Template/boot-policy/storage/san-secondary'/>"
If you have a primary and secondary path assigned for each target (primary and secondary), you'll see two dn's returned. Each of those will return a property called wwn that represents the WWPN of the SAN target you're booting off of. There's also a lun property that designates the target lun number.
In the above example, ls-HyperV-Template would be the name of your Service Profile (don't forget to prepend with
ls-. That would do the trick for a boot-policy that's local to a Service Profile or SP Template. If you wanted to get the info for a stand-alone boot-policy, you just need to change the Dn:
1invoke-xmlcommand -XMLStringList "<configResolveChildren inDn='org-root/boot-policy-MyBootPolicy/storage/san-primary'/>"
Similar comments as above to primary and secondary targets and paths, respectively.
Hope that helps!
Josh