I have many custom inventories that are vb scripts. I need a query that will enable me to look at the reuslts of the output script on pcs that show completed but no data written to the table. The script error is this:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Windows\TEMP\AltirisScript081D01E05BD831A55C.vbs(79, 1) (null): Invalid type for data field
The script runs correctly, but on some pcs I get this error ( attached screen shot). I have found the table-TaskOutputPropertyValue- that has some script output values, but not the above.
Inventory Script:
'Create instance of Altiris NSE component
dim nse
set nse = WScript.CreateObject ("Altiris.AeXNSEvent")
' Set the header data of the NSE
nse.To = "{1592B913-72F3-4C36-91D2-D4EDA21D2F96}"
nse.Priority = 1
'Create Inventory data block. Here assumption is that the data class with below guid is already configured on server
dim objDCInstance
'Modify this class guid to match the one generated when you create the custom data class
set objDCInstance = nse.AddDataClass ("{64f22255-aa87-44aa-b088-5c1e93bde22f}")
dim objDataClass
set objDataClass = nse.AddDataBlock (objDCInstance)
'Add a new row
dim objDataRow
set objDataRow = objDataClass.AddRow
'Set columns
objDataRow.SetField 0, Value
'Wscript.Echo UEFISecureBootEnabled
nse.SendQueued
******************************************************
I am looking for that exact error so that I can try to see why certain pcs fail, perhaps model or something else.
This is the query :
SELECT vComputer.Name,
Item.Name,
TaskInstanceResults.Result,
TaskInstanceStatus.InstanceStatus,
TaskOutputPropertyValue.Value,
TaskOutputPropertyValue.Name,
TaskOutputPropertyValue.type,
vHWComputerSystem.Model
FROM ( ( ( ( ( ( Symantec_CMDB_OIT.dbo.TaskInstances TaskInstances
LEFT JOIN
Symantec_CMDB_OIT.dbo.ItemVersions ItemVersions
ON (TaskInstances.TaskVersionGuid =
ItemVersions.VersionGuid))
LEFT JOIN
Symantec_CMDB_OIT.dbo.Item Item
ON (ItemVersions.ItemGuid = Item.Guid))
LEFT JOIN
Symantec_CMDB_OIT.dbo.vComputer vComputer
ON (vComputer.Guid = TaskInstances.ResourceGuid))
LEFT JOIN
Symantec_CMDB_OIT.dbo.vHWComputerSystem vHWComputerSystem
ON (vHWComputerSystem._ResourceGuid = vComputer.Guid))
LEFT JOIN
Symantec_CMDB_OIT.dbo.TaskInstanceStatus TaskInstanceStatus
ON (TaskInstanceStatus.TaskInstanceGuid =
TaskInstances.TaskInstanceGuid))
LEFT JOIN
Symantec_CMDB_OIT.dbo.TaskInstanceResults TaskInstanceResults
ON (TaskInstanceResults.TaskInstanceGuid =
TaskInstances.TaskInstanceGuid))
LEFT JOIN
Symantec_CMDB_OIT.dbo.TaskOutputPropertyValue TaskOutputPropertyValue
ON (TaskInstances.TaskInstanceGuid =
TaskOutputPropertyValue.TaskInstanceGuid)
where Item.Name = 'Secure Boot Enabled UEFI-Custom Inventory Script'