DX Infrastructure Manager

Expand all | Collapse all

Filename comparison check

Jump to Best Answer
  • 1.  Filename comparison check

    Posted 07-07-2016 01:05 PM

    Hi,

     

    I'm looking for a way to compare two file for similar filenames, such as:

     

    one file called: UN-7850101-res.xml

    and another called: UN-7850101-req.xml

     

    If the req file is present with out a corresponding res file, then alert..

     

    Does anyone have any suggestions on how to accomplish this? I've a little experience with LUA but only as far as editing existing scripts.

     

    Thanks in advance,

    Sam



  • 2.  Re: Filename comparison check
    Best Answer

    Broadcom Employee
    Posted 07-08-2016 02:20 PM

    HI Sam,

     

    WE do not have a probe out of the box that can do this currently.

    I would suggest  a batch file or shell script that has an exit code or writes out to a log file

    then use logmon to report on the results.

     

    You should be able to find some simple batch file scripts to check for the existence of files that you could use an if statement with.

     

    hope this helps