This article explains how to create a simple custom inventory rule that gets the host value found on the agent amp.conf file.
CODE WRITTEN BY QUEST KACE SUPPORT FOR DEMONSTRATION PURPOSES ONLY AND NOT SUPPORTED BY KACE TECHNICAL SUPPORT. CLIENT CONFIRMS THE NEED FOR TESTING AND ACCEPTS ALL RESPONSIBILITY FOR USE AND MISUSE OF CODE. QUEST KACE SHALL NOT BE HELD LIABLE FOR DAMAGE OR DOWN TIME RESULTING FROM USE OF THIS OR ANY CODE PRESENTED FOR PURPOSES OF TROUBLESHOOTING OR DEMONSTRATION
To create a Custom Inventory Rule navigate to Inventory | Software | Choose Action | New
For our example, we will retrieve the KACE SMA host information as found on the amp.conf file on C:\ProgramData\Quest\KACE directory.
5. The inventory rule would look as follows:
ShellCommandTextReturn(cmd /c type cd c:\"Program Files (x86)"\Quest\KACE\ & amptools.exe get host)
6. The results will show on the Device Inventory under Software | Custom Inventory Fields
You may find the available AMPTools and Runkbot commands and options on the articles below:
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center