Ask Your Question
0

/pdb/query/v4/facts/dmi via REST API ,doesn't get the BIOS,Board details for windows 7.But for a ubuntu machine I am able to obtain the same.

asked 2016-04-05 06:20:21 -0500

skghosh gravatar image

updated 2016-04-06 00:38:38 -0500

I amusing puppet facts to obtain machine related information. As a matter of fact two fields of interest is BIOS ,Board details.When I use the Rest API /pdb/query/v4/facts/dmi,the above information is missing for windows 7.But the same is available for an Ubuntu machine-

Here is the response what I get back from the server-

[ {
  "certname" : "ubuntu-optiplex-790.sdcorp.global.sandisk.com",
  "environment" : "production",
  "name" : "dmi",
  "value" : {
    "bios" : {
      "release_date" : "08/06/2013",
      "vendor" : "Dell Inc.",
      "version" : "A15"
    },
    "board" : {
      "manufacturer" : "Dell Inc.",
      "product" : "0200DY",
      "serial_number" : "..CN1374007O02O2."
    },
    "chassis" : {
      "type" : "Desktop"
    },
    "manufacturer" : "Dell Inc.",
    "product" : {
      "name" : "OptiPlex 780",
      "serial_number" : "89667BS",
      "uuid" : "44454C4C-3900-1036-8036-B8C04F374253"
    }
  }
}, {
  "certname" : "sdin-swt-at-04.sdcorp.global.sandisk.com",
  "environment" : "production",
  "name" : "dmi",
  "value" : {
    "manufacturer" : "American Megatrends Inc.",
    "product" : {
      "name" : "All Series",
      "serial_number" : "System Serial Number"
    }
  }
} ]

Please note the BIOS, Board related details are missing for the second node. Even the serial number is missing.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-04-05 19:17:14 -0500

lavaman gravatar image

Do you have WMI installed? It's required for this fact to work on windows:

https://docs.puppetlabs.com/facter/la...

You see something similar with lsb facts on linux distros that don't have the lsb packages installed.

edit flag offensive delete link more

Comments

I have the same problem, WMI is installed and running. But puppet is not getting BIOS and BOARD information. Also, would like to know what WMI commands puppet is using to fetch these information, that will help in understanding the system more. Thanks

hKothuri gravatar imagehKothuri ( 2016-04-06 02:26:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-04-05 06:20:21 -0500

Seen: 70 times

Last updated: Apr 06 '16