Web methods
The CLI tools allow you to easily create a web method that can serve XML information (or HTML information) to a requesting program. This application supports the ability to serve message data to a requesting party, including ticket information, and simple searches by keyword, or more complex searches that may target specific information.
Given the preceding implementation, a program can then fetch all the recent messages on the system that match a keyword.
The preceding URL displays an XML document showing the messages. The user specifies the keyword to match via the ?(keyword) part of the URL.
The preceding technique can be generalized for any of the Cat CLI programs, to list device information, ticket information, or other data that might be required or pertinent to third parties. The operator can modify the format of the message to be -text, or -html, by modifying the CFmt.exe program arguments, and by modifying the CGI header (if needed.)
Related topic