To solve the issue of a grey screen when trying to access a custom data index, it is suggested to delete the whole index and build a new Object with all separate items. The object should include `’NIC Name’` and `’ipconfig interfacealias=’` properties, and have to work around `IPv4Address` and `DNSServer` which are arrays. Deleting the index will allow the agent to send data again, and regenerate the index.
Read the entire ‘Fixing a Grey Screen in Custom Data Indexes’ thread below:
I think I accidentally messed up one of the data indexes when I was trying to write data to the sample custom data index. It opens into a grey screen now and doesn’t show any records. How do I clear the data in it?
you need to delete the entire index but let’s first check what is causing it, can you share the json output?
Where do I get that output from? I’m not seeing anywhere that there was any output or looking in the wrong spots.
run the script manually on a machine
the json can only be 1 level deep otherwise you can get this, I ran into it as wellThe device event description?
can you copy/past the script that you used for the custom data? the part where you do the output to screen that json can only be a single level deep
$adapterInfo = Get-NetAdapter | Select Name, InterfaceDescription,DriverVersion, DriverDate, DriverProvider
$ipconfigInfo = Get-NetIPConfiguration | select InterfaceAlias,InterfaceDescription,NetProfile.Name,IPv4Address,DNSServer
$newObject = [PSCustomObject]@{
‘NIC Info’ = $adapterInfo
‘ipconfig Info’ = $ipconfigInfo
}
Write-Output("### SIP DATA BEGINS ###")
Write-Output -InputObject $newObject | ConvertTo-Json
Write-Output("### SIP DATA ENDS ###")
so this is the output from one of my machines
and you can see there is more than 1 levelnic info > name > ethernet0so you need to build the object with all separate itemsthis is how you need to start building the object
$newObject = [PSCustomObject]@{
`’NIC Name’ = $adapterInfo.name`
`’ipconfig interfacealias= $ipconfigInfo.InterfaceAlias`
}that’s only 2 of the various properties though plus you need to do some work around the ip4addresses and dnssservers as they are arrays so you need to concatenate thoseOkay I can probably manage that bit no problem.
For the data index though.
Just deleting the whole index is the way to fix that up?yes and it will be created again the first time an agent sends data
Continue reading and comment on the thread ‘How to fix messed up one of the data indexes, now opens to grey screen with no records’. Not a member? Join Here!
Categories: All Archives, ControlUp for Desktops, ControlUp Scripts & Triggers