Discovery and Inventory Group

 View Only
  • 1.  Custom Inventory - Manual Testing

    Posted Apr 28, 2011 11:02 AM
      |   view attached

    Hello,

    I have just begun creating the custom inventory on NS7. The idea look good to have script in the console itself.

    Below details i would like to know.

    1) I have created a .vbs file with all the custom inventory obj. and executinig it on a client that has required dll and ITMS agent.

           > If we execute this manually where can we see the NSI file or the NSE file.

    2) Once we deploy this using NS on clients how can we make to send only delta inventory? and also how to randomise the execution on various clients?

    Regards

    Sandeep Shenoy

    Attachment(s)

    zip
    VBScript.zip   17 KB 1 version


  • 2.  RE: Custom Inventory - Manual Testing

    Posted Apr 28, 2011 11:27 AM

    NSI files are no longer created.

    The best way I have found to create these is to use msgbox, or some equivalent like wscript.echo, to show the data which would be returned in the places you would want to use setfield.

    Example:

    For testing instead of:

    objDataRow.SetField 0, objInfo.PackageID
     objDataRow.SetField 1, objInfo.Name
     objDataRow.SetField 2, objInfo.CacheFolder
     objDataRow.SetField 3, CStr(objInfo.PackageSize)
     objDataRow.SetField 4, objInfo.ContainsFiles
     strTasks = Join(objInfo.Tasks, ",")
     objDataRow.SetField 5, strTasks
     objDataRow.SetField 6, objInfo.CleanupAfter
     objDataRow.SetField 7, objInfo.Status

    use:

    msgbox objInfo.PackageID
    msgbox objInfo.Name
    ........

    You can run it on a test computer to make sure you are getting what you want.  When you are happy convert back to objDataRow.SetField and run it through the console one one machine to see if it works.  Hope that helps.



  • 3.  RE: Custom Inventory - Manual Testing

    Broadcom Employee
    Posted Apr 28, 2011 12:40 PM

    Unfortunately for the custom inventory tasks there isn't a way to randomize the schedule or perform delta updates.