→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎11-29-2023 05:02 PM - last edited on ‎04-01-2024 12:34 PM by Mercedes_O
Good Morning All,
I was hoping someone on here could help me out with a report I am needing to have generated. We are a Dell shop and I have been tasked with getting a list of the versions of iDrac running on all servers. This is due to a recent exploit in iDrac that needs to be patched. I have tried to create a report, but I am not very good an SQL and am slowly learning it. The report needs to include Asset name, model, Serial Number, and iDrac Version.
Here is what i started with:
Select Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tsysassettypes.AssetTypename,
tsysassettypes.AssetTypeIcon10 As icon,
tblassets.IPAddress,
tsysassettypes.AssetType,
tblassets.Lastseen,
tblassets.Lasttried,
tblOIDTarget.Manufacturer,
tblOIDKey.TargetID,
tblOIDKey.OIDKeyID,
tblAssetGroups.AssetGroupID,
tblAssetGroups.AssetGroup,
tblOIDTarget.AssetGroupID As AssetGroupID1,
tblOIDTarget.Model
From tblassets
Inner Join tblassetcustom On tblassets.AssetID = tblassetcustom.AssetID
Inner Join tsysassettypes On tsysassettypes.AssetType = tblassets.Assettype
Inner Join tblOIDTarget On tblassets.AssetID = tblOIDTarget.AssetID And
tsysassettypes.AssetType = tblOIDTarget.AssetType
Inner Join tblOIDKey On tblOIDTarget.TargetID = tblOIDKey.TargetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblOIDTarget.AssetGroupID
Inner Join tblOIDTargetType On tblOIDTarget.TargetTypeID =
tblOIDTargetType.TargetTypeID
Where tblOIDTarget.Manufacturer = 'DELL' And tblassetcustom.State = 1
But it comes up with zero results.
‎12-08-2023 04:33 AM
@RandomITDude232 Could you accept Solution?
‎12-05-2023 05:42 PM
This was amazing and helped me get it going. Just a question if I wanted to add another column that took specific OID's and populated that column with that data what would I need to add into the report. For instance, if I wanted a column to be the idrac OID firmware version, what would I need to add to the code to get that added in!
‎12-05-2023 06:23 PM
‎11-30-2023 06:03 AM
Query example
Select Top (1000000) tblAssets.AssetID,
tsysAssetTypes.AssetTypeIcon10 As Icon,
tblAssets.AssetName,
tblOIDData.Label As [OID Label],
tblOIDData.[Key] As OID,
tblOIDData.Data As [OID Data],
tblAssets.IPAddress,
tblAssets.Description,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Location,
tsysIPLocations.IPLocation,
tblAssets.Firstseen As [Created at],
tblAssets.Lastseen As [Last successful scan]
From tblAssets
Inner Join tblOIDData On tblAssets.AssetID = tblOIDData.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Outer Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Outer Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Outer Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Where tblAssetCustom.Manufacturer Like '%dell%'
‎11-30-2023 05:35 AM - edited ‎12-04-2023 05:14 AM
Hardware serial number
system.hw.serialnumber
1.3.6.1.4.1.674.10892.5.1.3.2.0
Model is same as server name
Hardware model name
system.hw.model
1.3.6.1.4.1.674.10892.5.1.3.12.0
‎11-30-2023 05:29 AM
You have to add OIDs to collect fimware version
1.3.6.1.4.1.674.10892.5.1.1.8.0
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now