Ad Widget

Collapse

Need help with wmi.get

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #1

    Need help with wmi.get

    It seems to be hard to find good info, I just want to translate "wmic bios get manufacturer" into a wmi.get[] item, but I can't find the proper key.

    Any ideas?

    Thanks
    Last edited by LenR; 27-01-2015, 23:16.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi,

    I know that this was not exactly what you asked for and I could not get proper WMI query either but maybe you can simply use this key?
    Code:
    system.run[wmic bios get manufacturer]
    Worked for me.

    Best Regards,
    Ingus

    Comment

    • LenR
      Senior Member
      • Sep 2009
      • 1005

      #3
      I did, but by default the zabbix agent logs remote commands. Our old, brain dead monitor generates an alert for that message in the logs every time the command runs :-(

      Deploying mass changes to our windows servers is NOT as easy as updating a puppet template, more :-(

      I think this works:
      wmi.get["root\cimv2","SELECT serialnumber FROM Win32_BIOS"]

      I'm not updating this item very frequently, so I'm waiting to verify. It ends up that manufacture returns "Phoneix...somethign", serial number contains VMware.

      Comment

      • ingus.vilnis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2014
        • 908

        #4
        Hi,

        Understandable about remote commands. They must be set to enabled in the agent config as well.

        However your WMI query works brilliant on my PC!

        Code:
        WMI BIOS manufacturer
        wmi.get["root\cimv2","SELECT manufacturer FROM Win32_BIOS"]
        Hewlett-Packard
        Glad that you found a solution!

        Best Regards,
        Ingus

        Comment

        • lovelmark
          Junior Member
          • Sep 2019
          • 1

          #5
          If you have changed a board, and also not all BIOS codes are actually pre-entered. In that case it is necessary to boot into the BIOS of a machine with that issue, and enter it manually (from reading it off of the hardware itself.) In other words, if the machine is not very old, the response you are getting is the default response when no value is set (null).



          Comment

          Working...