diff --git a/README.md b/README.md index aebdb2f855a4996546f9324c15f142c8f03a5dc2..68263c45e182758d34271720d04732c5d8ee2471 100644 --- a/README.md +++ b/README.md @@ -43,12 +43,35 @@ In the config.sh you can make your changes ## Get the DEB package Put the amd64 DEB package into ~/Downloads/. -In config.sh set +In config.sh set ists filename: ```shell -DEBFILE=~/Downloads/04788015-Lin_C_V2-snowagent-7.0.1-x64.deb +DEBFILE=~/Downloads/...-snowagent-<version>-x64.deb ``` ## Install Start `./installer_samagent.sh` + +## Trace + +With the trace script the command call of the cronjob will be executed. With `strace` the process actions will be shown and written to a logfile. + +```shell +> ./trace.sh + + +TRACE RUN + +Starting '/opt/snow/snowagent -w /opt/snow/' in backgrund and start strace on its PID. +A log will be generated: /tmp/snowagent-trace-20250522-163707.log¨ + + +Press RETURN to continue or Ctrl+C to +``` + +To see all scanned files search for "openat(" und "stat(" on line start. By cutting with delimiter `"` we extract the full path: + +```shell +zcat <filename>.log.gz | grep -E "^(openat|stat)\(" | cut -f 2 -d '"' | sort -u +``` diff --git a/snowagent-trace-20250522-150348.log.gz b/snowagent-trace-20250522-150348.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..68b38ee9b7fc4b1ca8277d7d18c543dffdbe15ec Binary files /dev/null and b/snowagent-trace-20250522-150348.log.gz differ