Topic
  • 3 replies
  • Latest Post - ‏2013-02-22T23:53:56Z by Lee Wei
SystemAdmin
SystemAdmin
757 Posts

Pinned topic Ad-Hoc CVE to Fixlet Wizard

‏2013-02-21T16:39:22Z |
I'm creating an "Ad-Hoc CVE to Fixlet Wizard" that will take a list of CVE's and display the corresponding fixlets. The trouble im having is bringing up the fixlets, in the "Ad-Hoc Computer Group Wizard" it uses OpenComputerGroup(ids); to open the console window with the computer names, is there a function to open a list of fixlets ?
  • Lee Wei
    Lee Wei
    143 Posts

    Re: Ad-Hoc CVE to Fixlet Wizard

    ‏2013-02-21T16:58:32Z  
    No direct equivalent that I can see.
    I wonder if the OpenFindDialog() function might give you what you need. I have not used it before.

    OpenFindDialog

    The OpenFindDialog function causes the search UI dialog to pop up, and returns the id of the filter that the user selects, edits, or creates using that UI. The function takes two parameters. The first parameter is the name of the type of object to be filtered. This must be one of the following strings: "Fixlet", "Task", "Baseline", "Analysis", "Computer Group Search", "Computer", "Action", "User", or "Unmanaged Asset". The second parameter is the id of the filter that should be initially selected in the UI, or 0. If it is 0, then the default "<Search Filter>" is selected. Here is an example:

    var ids = EvaluateRelevance("ids of bes filters whose (fixlet flag of it)");
    var newid = external.OpenFindDialog( "Fixlet", ids[0] );
    var rel = "html concatenation of divs of links of elements of fixlet set of bes filter " + newid;
    FixletList.innerHTML = EvaluateRelevace( rel );
  • SystemAdmin
    SystemAdmin
    757 Posts

    Re: Ad-Hoc CVE to Fixlet Wizard

    ‏2013-02-22T20:52:10Z  
    • Lee Wei
    • ‏2013-02-21T16:58:32Z
    No direct equivalent that I can see.
    I wonder if the OpenFindDialog() function might give you what you need. I have not used it before.

    OpenFindDialog

    The OpenFindDialog function causes the search UI dialog to pop up, and returns the id of the filter that the user selects, edits, or creates using that UI. The function takes two parameters. The first parameter is the name of the type of object to be filtered. This must be one of the following strings: "Fixlet", "Task", "Baseline", "Analysis", "Computer Group Search", "Computer", "Action", "User", or "Unmanaged Asset". The second parameter is the id of the filter that should be initially selected in the UI, or 0. If it is 0, then the default "<Search Filter>" is selected. Here is an example:

    var ids = EvaluateRelevance("ids of bes filters whose (fixlet flag of it)");
    var newid = external.OpenFindDialog( "Fixlet", ids[0] );
    var rel = "html concatenation of divs of links of elements of fixlet set of bes filter " + newid;
    FixletList.innerHTML = EvaluateRelevace( rel );
    That seems promising but I can only seem to get 1 value into the Find dialog, Is there a way to import a custom filter, that would solve my current issue
  • Lee Wei
    Lee Wei
    143 Posts

    Re: Ad-Hoc CVE to Fixlet Wizard

    ‏2013-02-22T23:53:56Z  
    That seems promising but I can only seem to get 1 value into the Find dialog, Is there a way to import a custom filter, that would solve my current issue
    I am completely clueless and not ventured into this area.
    From the looks of it, you can create a filter in the Console, with many different properties, sort of key/value pairs, then give it a name.
    Now the filter is retrievable via the example code provided by locating it with a name.