Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need module for updating bios settings #3

Open
chrisplo opened this issue Feb 8, 2017 · 0 comments
Open

Need module for updating bios settings #3

chrisplo opened this issue Feb 8, 2017 · 0 comments

Comments

@chrisplo
Copy link

chrisplo commented Feb 8, 2017

sanitized standalone example code:

from imcsdk.imchandle import ImcHandle
h = ImcHandle(ip, user, pass)
h.login()

flags_to_enable = {
  'sys/rack-unit-1/bios/bios-settings/Intel-Virtualization-Technology':
     ['vp_intel_virtualization_technology'],
  'sys/rack-unit-1/bios/bios-settings/Intel-VT-for-directed-IO':
    ['vp_intel_vtd_pass_through_dma_support',
     'vp_intel_vtd_coherency_support',
     'vp_intel_vt_for_directed_io',
     'vp_intel_vtd_interrupt_remapping',
     'vp_intel_vtdats_support'],
}

for dn, flags in flags_to_enable.iteritems():
  managed_object = h.query_dn(dn)
  for flag in flags:
    setattr(managed_object, flag, "enabled")
  h.set_mo(managed_object)
  managed_object = h.query_dn(dn)

h.logout()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant