Quantcast
Viewing all articles
Browse latest Browse all 1968

using wsman and recite to promote network boot order

I couldn't find an example for this.

This seems to work, but perhaps it could be generalized.

Also, I notice NIC 2 doesn't show in the query even if you ask for it, so probably other steps are necessary to enable pxeboot on other interfaces.

This recite script fragment works with factory default settings.  If you've disabled stuff, it might have problems.

GetBootSourceSettings -cql="select InstanceID,BootSourceType,ElementName from DCIM_BootSourceSetting where BootSourceType='IPL' and ElementName like '%NIC 1%'"
 Find InstanceID $nic
 ChangeBootOrderByInstanceID InstanceID=IPL source=$nic AssignedSequence=0

 CreateBIOSConfigJob Target=BIOS.Setup.1-1 RebootJobType=2 ScheduledStartTime=TIME_NOW
 Find InstanceID $jid
 Until JobStatus=Completed GetLifecycleJob InstanceID=$jid



Viewing all articles
Browse latest Browse all 1968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>