accurev trace-event [ --category <categories> ]
[ -p <depots> ] [ -s <streams> ] [ -u <users> [ --exclude_users ] ]
[ -k <transaction-kinds> [ --exclude_kinds ] ] [ -f <formats> ]
[ -l <response> ]The trace-event command monitors server events by listening for messages published by the server. The server uses the Mosquitto message broker and MQTT (MQ Telemetry Transport) to publish a message for each write operation that it executes. By listening for these messages instead of polling, trace-event avoids creating any load on the server.The trace-event options apply filters to constrain which events are displayed in the output. They also enable running an external application or script in response to the events. Multiple instances of trace-event can be run on a client machine (or VM) for different purposes.The trace-event command continues to listen for events (and respond if applicable) until the application is terminated via Ctrl-C.Note: If multiple values are specified for an option, separate the values with commas. If any of the values contains a space in it, place double quotes around the entire list of values.--category <categories>Specify the categories of message events to display. If this option is not specified, trace‑event displays all categories of events. Valid values are:
stream, accuwork, depot, site-p <depots>Specify the depots to watch for in depot-category message events.-s <streams>Specify the streams to watch for in stream-category message events.-u <users>Use in conjunction with the -u option to indicate that the named users should be filtered out and that messages for all other users should be displayed in the output.-k <transaction-kinds>Specify the kinds of transactions to display. Valid values are:
add, addmember, archive, backup, chstream, chws, clear, chdepot, chgroup, chpasswd, chuser, chref, chslice, co, cpkadd, cpkremove, defunct, demote, eacl, excl, incl, incldo, keep, ln, lock, mkdepot, mkgroup, mkrules, mksnap, mkstream, mkuser, mkref, mkreplica, mktrig, mkws, modify_issue, move, new_issue, promote, purge, putconfig, reactivate_group, reactivate_ref, reactivate_stream, reactivate_user, reactivate_wspace, reclaim, remove_group, remove_ref, remove_sessions, remove_stream, remove_user, replica_sync, rmmember, rmproperty, rmreplica, rmtrig, rmws, schema, setacl, setproperty, unarchive, undefunct, unlockUse in conjunction with the -k option to indicate that the named kinds of transactions should be filtered out and that messages for all other kinds of transactions should be displayed in the output.-f <formats>-v: (“verbose”) Show the comment and timestamp for the transaction.
-x: (“XML”) Show the results in XML format.-l <response>Specify the path of an external application or script to be executed in response to each trace-event message.The trace‑event command does simple argument substitution to enable arguments to be passed to the response application:For example, if the response option is “-r /home/$principal/logger.py $comment”, then $principal is replaced with the message’s user name and $comment is replaced with the message’s comment.Display all published messages:Display all site-related messages and ignore messages related to streams, depots, and AccuWork:Display promote and chstream messages for the stream named backing. When such events occur, execute “accurev update –m” to merge the updates:Display promote messages for the stream named backing. When such events occur, run the python script C:\tools\promote_response.py and pass the depot name to the script:
Micro Focus |