Menu

How to access WCM information outside WCM/in Batch-files

2021-04-10
2024-05-26
  • Morten MacFly

    Morten MacFly - 2021-04-10

    The recommended way to use WCM information (like item addresses/states) outside WCM is by running an external command and providing this command access to information/files via tags. This is described here:
    https://sourceforge.net/p/webchangemon/forum/general_help/thread/23af587c5d/?limit=25#04cf

    An example to send email notifications on update via an external Batch-File is here:
    https://sourceforge.net/p/webchangemon/forum/general_help/thread/f9a114c0f8/?limit=25#abd4

     

    Last edit: Morten MacFly 2024-05-26
    • Gitoffthelawn

      Gitoffthelawn - 2024-05-01

      Both of these URLs seem to now yield "Page not found" errors. Do you have updated links?

       
      • Morten MacFly

        Morten MacFly - 2024-05-26

        ...links have been updated.

         
  • Morten MacFly

    Morten MacFly - 2024-05-26

    Since the first post, Tags have been improved and new Tags have been added. Here is a list and explanation of all of those currently present:

    These tags can be used for all items in the command line and will be replaced with the items' individual data:
    %addr = address of item
    %altaddr = alternative address of item
    %desc = description of item (may contain spaces)
    %guid = unique GUID of item (i.e. to access log/content files)
    %upd = date/time of last update (may contain spaces)
    %chk = date/time of last check (may contain spaces)

    These tags can used be for header/content checks in the command line and will be replaced with the items' individual data:
    %size = size of item from last check
    %prevsize = size of item from previous check
    %content = content of item from last check (Interpreter only and and limited in amount of characters)
    %prevcontent = content of item from previous check (Interpreter only and and limited in amount of characters)
    %res = result of last check
    %crc = CRC of last check
    %prevcrc = CRC of previous check

    These tags can be used for ping checks in the command line and will be replaced with the items' individual data:
    %ping = result of last ping
    %resp = response time of last ping
    %ip = IP address of host identified during ping

    These tags can be used for general host information and will be replaced with the individual data:
    %hostname = name of the host WCM runs on
    %hostip = IP address of the host WCM runs on

    These tags can be used for file access (e.g. comparison commands):
    %old = File name of old recorded item content
    %new = File name of new recorded item content
    %contentfile = File name of item content file

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.