4 Replies Latest reply on Nov 3, 2017 6:44 AM by Steve Gibbs

    file analysis via regular expression

    Gabriel Andrey
      Share This:

      Bonjour a toutes et tous,

       

      Wondering how I could get info on a client and upload on custom inventory.

       

      I have a text file

      IBM Spectrum Protect Windows Client Service Configuration Utility

      Command Line Interface - Version 8, Release 1, Level 2.0

      (C) Copyright IBM Corporation, 1990, 2017, All Rights Reserved.

      Last Updated Jul 10 2017

      TSM Api Version 8.1.2

       

      Command: Query TSM Client Service Parameters

      Machine: CD-123456(Local Machine)

       

      Connecting to service 'TSM Client Scheduler' ...

       

      Service Configuration/Status:

       

      Service Name   : TSM Client Scheduler

      Image Path     : "C:\Program Files\Tivoli\TSM\baclient\dsmcsvc.exe"

      Logon Account  : LocalSystem

      Start Type     : Auto

      Current Status : Started

       

      TSM Client Service Registry Settings:

       

      Client Service Type = Client Scheduler Service

      Options file        = C:\Program Files\Tivoli\TSM\baclient\dsm.opt

      TSM Client Node     = USERNAME-CD-123456

      Event Logging       = YES

      Comm Protocol       = (value not currently set)

      Server              = (value not currently set)

      Server Port         = (value not currently set)

      Schedule Log        = (value not currently set)

      Error Log           = (value not currently set)

      Cluster Enabled     = (value not currently set)

      Cluster Name        = (value not currently set)

       

      And in my OPrule some regex analysis

      All seem working well ... but at the end the only thing I get in the CustomInventory.xml

       

      Nothing as "ClientBackup" object as been created ...

       

      If you have any idea why I would be pleased

       

      Bonne journée a toutes et tous

       

      Gabriel

       

       

      Log:

      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [6168]  Verification Phase: Step 10: Skipping phase for custinvupdate.chl
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 0: checkifnotonmaster.chl starting
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 0: checkifnotonmaster.chl ended
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 1: checkoperatingsystem2.chl starting
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 1: checkoperatingsystem2.chl ended
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 2: detectfile.chl starting
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 2: detectfile.chl ended
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 3: erasefile.chl starting
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 3: erasefile.chl ended
      2017/11/01 10:04:53 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 4: runprogram.chl starting
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 4: runprogram.chl ended
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 5: custominvfindregexinfile.chl starting
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   File to analyse: C:/Program Files/Tivoli/TSM/baclient/dsm.opt
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Creating the file copy dsm.opt.copy0...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Cleaning the object type ClientBackup...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Storing the entry in the XML...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Deleting the file copy C:/Program Files/Tivoli/TSM/baclient/dsm.opt.copy0
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 5: custominvfindregexinfile.chl ended
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 6: custinvupdate.chl starting
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 6: custinvupdate.chl ended
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 7: custominvfindregexinfile.chl starting
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   File to analyse: C:/Program Files/Tivoli/TSM/baclient/dsmc.txt
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Creating the file copy dsmc.txt.copy1...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Cleaning the object type ClientBackup...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Storing the entry in the XML...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Deleting the file copy C:/Program Files/Tivoli/TSM/baclient/dsmc.txt.copy1
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Deleting oldest entries...
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 7: custominvfindregexinfile.chl ended
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 8: custinvupdate.chl starting
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 8: custinvupdate.chl ended
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 9: custominvfindregexinfile.chl starting
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   File to analyse: C:/Program Files/Tivoli/TSM/baclient/dsmc.txt
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Creating the file copy dsmc.txt.copy1...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Cleaning the object type ClientBackup...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Storing the entry in the XML...
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Deleting the file copy C:/Program Files/Tivoli/TSM/baclient/dsmc.txt.copy1
      2017/11/01 10:04:54 Get TSM info plus 2.0 T   Deleting oldest entries...
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 9: custominvfindregexinfile.chl ended
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 10: custinvupdate.chl starting
      2017/11/01 10:04:54 Get TSM info plus 2.0  I   [1232]  Execution Phase: Step 10: custinvupdate.chl ended