Ad Widget

Collapse

Using Macro to get registry entry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rote Diskette
    Junior Member
    • Feb 2015
    • 1

    #1

    Using Macro to get registry entry

    Hi,

    i want to get a regestry entry from different Server 2003. The problem is that the registry path differes on each Server. So i created a discovery rule with "keysystem.run[reg query HKLM\SYSTEM\CurrentControlSet\Services\MSExchangeI S\SERVER-01 |findstr Private]" as key to get the random path and in the Option Filter Macro i entered {#Private}.
    Next step i made an Item "system.run[reg query {#Private} /v "Database Size Limit in GB"]" to get this specific value.

    Now in the template list in the Server it appears. One is on Enabled and all Ok. The other one "Value should be a JSON object". Neither of them have any entry in the Item-List nor any Data in latest Data.

    Did I missunderstood the way to us "Macros"? Is there an other way to set variables to use them? Or do i simply have a fault in my programming?

    hope you can help me

    Rote Diskette
Working...