I am trying to match up HP Harddrive model numbers and firmware using “wmi/HPQ”. Unfortunately they are in 2 different Proerties of the same Class. I wrote this analysis:
concatenation "; " of ((string value of property "ElementName" of it, string value of property "VersionString" of it) of select objects "ElementName, VersionString from HPSA_DiskDriveFirmware" of wmi "root/HPQ" as string)
and it is working as expected.
Now I am trying to create a fixlet to deploy new firmware to disks that do not have the latest firmware. I cannot get the relevance to match ElementName and Version string for each individual disk. Any ideas? Thanks
are you trying to see if the VersionStrings are different or below a certain level
Q: ((string value of property “ElementName” of it, string value of property “VersionString” of it) of select objects “ElementName, VersionString from HPSA_DiskDriveFirmware” of wmi “root/HPQ” as string)
So I need to look at any of the drives in all of my servers that have the Model Numbers DG036A8B53 or DG072A8B54 and is not firmware revision HPD7.
The issue is that there may be other models of hard drives in the server.
Q: ((string value of property “ElementName” of it, string value of property “VersionString” of it) of select objects “ElementName, VersionString from HPSA_DiskDriveFirmware” of wmi “root/HPQ” as string)
Q: ((string value of property “ElementName” of it, string value of property “VersionString” of it) of select objects “ElementName, VersionString from HPSA_DiskDriveFirmware” of wmi “root/HPQ” as string) whose ((item 0 of it = “DG036A8B53” OR item 0 of it = “DG072A8B54”) AND (item 1 of it !=“HPD7”))
Q: ((string value of property “ElementName” of it, string value of property “VersionString” of it) of select objects “ElementName, VersionString from HPSA_DiskDriveFirmware” of wmi “root/HPQ” as string) whose ((item 0 of it = “DG036A8B53” OR item 0 of it = “DG072A8B54”) AND (item 1 of it !=“HPD7”))
Here it the final relevance I came up with for a Fixlet/Task:
Q: exists ((string value of property “ElementName” of it, string value of property “VersionString” of it) of select objects “ElementName, VersionString from HPSA_DiskDriveFirmware” of wmi “root/HPQ”) whose ((item 0 of it = “DG036A8B53” OR item 0 of it = “DG072A8B54”) AND (item 1 of it !=“HPD7”))