Updating the InventoryData.Software on a single machine
-
I believe InventoryData.Software is the result of the Inventory.exe process, which is run as part of the Software Inventory (not Software Catalog). That should be executed during a regular inventory. Have you tried forcing an Inventory from the Device's Inventory page? - ondrar 6 years ago
-
Yes, when I do a force inventory it updates the inventory.xml but only sometimes will it update the inventorydata.software file. When I do a runkbot 4 0 it takes less attempts but still does not update every time. - jrunkles1221 6 years ago
-
If you go to Settings > Provisioning > Communication Settings, what do you have set for the Agent Inventory and Catalog Inventory? - ondrar 6 years ago
-
Agent Inventory is 2 hours and Catalog is 1 day. - jrunkles1221 6 years ago
Answers (3)
Comments:
-
Thanks, I knew there had to be a way to force the Software Catalog inventory, but I didn't know how to see all scripts!
Thanks for the correction on the inventories, too! I had them backwards. - ondrar 6 years ago
Just wanted to add my notes in here, as I needed to manually update the software catalog on a machine so I could attach an installer for a managed install.
The "kbot_list.php?SHOWALL=1" no longer shows hidden KACE scripts.
If you have KACE 14.1, you can use runkbot 8 0 per https://support.quest.com/kb/4347637/sma-agent-runkbot-exe-command-switches
I am only on SMA 14.0. I went to C:\ProgramData\Quest\KACE\kbots_cache\ and opened each file with notepad one by one until I found one that mentioned "Upload SAM Catalog Data". The first part of the file name is the script ID. runkbot (id) 0 (in my case, "runkbot 362 0).On the computer I found it on, this file was generated very recently. On another computer, it didn't have this file, but I was able to use that ID I found to run it. You can probably find it by browsing the KACE MySQL (I use HeidiSQL), but at some point I think Quest changed the default password, and I don't want to reset our MySQL password in case someone else changed the password and is using it for automated stuff.
I am only on SMA 14.0. Go to the page for a device, go to the Logs and Diagnostics tab, expand Agent Logs, and look for "*** Upload SAM Catalog Data ***". The ID in the url for that log is the script ID. In my case, kbot_log.php?ID=362&MACHINE_ID=1576 - Catalog inventory script ID is 362, so "runkbot 362 0".
I should note that even after doing this, it still hasn't updated the software catalog page with the program I installed. Might take time to process on the server. However, you can verify it uploaded the data by looking at the log I just pointed you to.