Symantec Management Platform (Notification Server)

 View Only
  • 1.  Creating Collections from Registry Key

    Posted Mar 05, 2009 09:42 PM
    Good morning,

    I am a complete newbie who has an NS with PatchManagement, Inventory for Windows and Inventory for Servers installed.

    I need to create collections based on the values in the registry of Windows servers.

    For example:
    I want a collection of servers that should be patched at 2300 on a Saturday. I have a reg key:
    HKLM\SOFTWARE\OurStuff\PatchManagement\Schedule with a value of Saturday 2300

    Can anyone provide a step by step "how to" create this collection? I have already rtfm and had a bit of a search on this forum and can't really piece it together! Any help is greatly appreciated.



  • 2.  RE: Creating Collections from Registry Key

    Posted Mar 06, 2009 12:00 AM
    Eric,
    1st off you need to create a custom inventory on the registry key. Some samples are here:https://kb.altiris.com/article.asp?article=4237&p=1
    Once you have created those, and the data is gathered, it will be available in the database.

    HTH

    Jim


  • 3.  RE: Creating Collections from Registry Key

    Posted Mar 06, 2009 04:14 AM
    Many thanks Jim. Will take a look over the weekend.
    Rgds


  • 4.  RE: Creating Collections from Registry Key

    Posted Mar 26, 2009 12:54 AM

    ive been over all the instructions but still cant get what im after.

    Basically trying to get cust inventory so I can create a collection of PC's which have a certain key. Do not care about value within the key, just the existence of the key itself.
    After copying the sample xml from the article above I think I need something like this - all I want is whether the v2.0 key exists or not on that PC. Im not sure what to do with with c0 part. If i put the resulting nsi into the NSI viewer it has no info in it. Can anyone help ?
    thanks

     </s:Schema>
        <rs:data>
    <%set RegPath="HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\Software\ v2.0"%>
    <%foreach regvalue="val1" path="%RegPath%"%>
          <z:row
     c0="<%writexml "key:val1.name"%>"   
     c1="<%writexml "key:val1.type"%>"   
     c2="<%writexml "key:val1.value"%>"   
          />
    <%next%> 

     



  • 5.  RE: Creating Collections from Registry Key

    Posted Mar 26, 2009 07:57 AM
    is to return the value of a given key. If you want to check for existence of key, you'll have to use a similar method (VBScript) listed here: KB24996