Topic
5 replies Latest Post - ‏2012-10-27T20:02:40Z by kitajim
kitajim
kitajim
21 Posts
ACCEPTED ANSWER

Pinned topic About batch Interface for distributed assets scanning.

‏2012-10-11T13:47:03Z |
Hello.
Now I'm trying to scan the distributed assets via batch interface as follows.

<RaaInstRoot>/bin/dmhrest.bat POST /import -if RAAScan.txt

The contents of RAAScan.txt is as follows.

{
site:1,
scanner:"FileSystem",
analyzers:"ContainerScan",
scanRoot:"/file/C:/IBM/RAAwV60010/sample/j2ee/MiniBankEAR.ear",
filterNames:"*",
scanSubDirs:true,
scanInsideZips:true,
scanSymbols:true
}

The result of execution was failed.

Attached file is StdOut log and RaaRestWar log.

NullPointerException is found in RaaRestWar log file .

What is wrong ?
Is the format of RAAScan.txt correctly ?

Anyone help ?

Thanks in advance,

With Best Regards,

Attachments

Updated on 2012-10-27T20:02:40Z at 2012-10-27T20:02:40Z by kitajim
  • jbognar
    jbognar
    5 Posts
    ACCEPTED ANSWER

    Re: About batch Interface for distributed assets scanning.

    ‏2012-10-11T19:45:41Z  in response to kitajim
    The format of the file looks correct.

    My guess is that an error occurred during the scan which caused the scan results to be incomplete, leading to the NullPointerException.

    Check the scanner log files for any errors.

    The NullPointerException needs to be fixed though. It appears to be occurring in this code in Dmh0731JsonContainer...

    // Get the component we just scanned.
    // In this use of the scanner, the items will always end up being a list of one asset.
    JsonList items = importFile.getJsonList("items");

    if (items.isEmpty())
    throw new Exception("No scan results!");

    ...where items is ending up as null.
    • kitajim
      kitajim
      21 Posts
      ACCEPTED ANSWER

      Re: About batch Interface for distributed assets scanning.

      ‏2012-10-12T12:32:41Z  in response to jbognar
      Hello! Thanks for your advice,
      but the same exception is logged in WAS StdOut/StdErr logs,too.

      By the way, one question here.
      In the case of Host assets scan, the following steps are executed, I think.

      1. Queue the target asset info. into Analysis Queue. => via dmh0700.exe
      2. Scan the assets and generate import loading file. => via dmh6000.exe
      3. Load the import loaing file into Analysis Queue. => same as above.
      4. Execute Queue processing(Qeue type No. nn -> mm) => same as above.

      In the case of Distributed assets scan, which method should we use ? eache steps ...
      For example, sample asset <RaaInstRoot>/sample/j2ee/MiniBankEAR.ear...

      Thanks in advance,

      With Best Regards,
  • kitajim
    kitajim
    21 Posts
    ACCEPTED ANSWER

    Re: About batch Interface for distributed assets scanning.

    ‏2012-10-16T14:18:16Z  in response to kitajim
    Hello.

    I think that the contents of my question are the same as that of following threads.

    >> http://www.ibm.com/developerworks/forums/message.jspa?messageID=14811478

    How was the result of this thread ?

    I want to know the command line interface for distributed scan.

    Are there any information about this ? (InfoCenter does not mention about this..)

    Thanks in advance,

    With Best Regards,
    • SystemAdmin
      SystemAdmin
      849 Posts
      ACCEPTED ANSWER

      Re: About batch Interface for distributed assets scanning.

      ‏2012-10-18T19:45:30Z  in response to kitajim
      Take a look at [this thread|http://www.ibm.com/developerworks/forums/thread.jspa?threadID=457689&tstart=0||this thread]. I have not done it myself, but looks like others used dmh0700 to insert distributed scan requests.
      • kitajim
        kitajim
        21 Posts
        ACCEPTED ANSWER

        Re: About batch Interface for distributed assets scanning.

        ‏2012-10-27T20:02:40Z  in response to SystemAdmin
        Hello.

        >> http://www.ibm.com/developerworks/forums/thread.jspa?threadID=457689&tstart=0

        I've red the above thread, but the issue seems not solved....(right?)

        Are there any simple guide of batch scan I/F for Dist. Assets ?

        Thanks in advance,