Skip to content
Snippets Groups Projects
Select Git revision
  • 03a1f61c0f70427d95480e5756ad381b8443337f
  • main default protected
2 results

sam-agent

Hahn Axel (hahn)'s avatar
Hahn Axel (hahn) authored
03a1f61c
History

Snow Agent * Universität Bern

Description

This is an installer for Linux.

  • It extracts the debian 64 package from
  • Its files will be moved to /opt/snow/ and
  • the pre install and post install script will be executed.

Requirements

This installer uses

  • Linux
  • Bash
  • unzip
  • ar
  • sudo permissions for current user

POC:

  • The install file is in the local flder: ~/Downloads/SAM\ Agent.zip (TODO: download with curl)

Installation

git clone https://git-repo.iml.unibe.ch/iml-open-source/sam-agent.git

Configuration

Create an initial config

cp config.sh.dist config.sh

In the config.sh you can make your changes

  • Watch the PDF file and search for the correct sitename for your institution.
  • Set your sitename in the line SITENAME="unibe..."

Get the DEB package

Put the amd64 DEB package into ~/Downloads/. In config.sh set ists filename:

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.

> ./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:

zcat <filename>.log.gz | grep -E "^(openat|stat)\(" | cut -f 2 -d '"' | sort -u