Forum Discussion

David_Murphy_22's avatar
David_Murphy_22
Icon for Nimbostratus rankNimbostratus
Dec 20, 2006

iControl 'switchboot -l' equivalent ?

Is there an iControl method to get the same information that the CLI command 'switchboot -l' returns? Thanks.

1 Reply

  • Take a look at the System::SoftwareManagement interface. The get_boot_location() method will return the active boot location. There isn't a convenient call to list all boot locations, but you can use the get_boot_image_information() method that returns a text/blob with the output of the install audit script and that contains all active boot locations (or "Slots" as referred to in that data. Just grep for the string "visible_name" and you'll get all of the available locations.

     

     

    -Joe