Procedure to start up the AMS Monitoring Interface (AMI)

In order to have the scanner running, it is needed to perform the following tasks:

  • login into the designated host (pcpoc16 atm)
  • cd /home/ams/AMI/scanner
  • issue "./ -B DIRNAME -f FILE -d", where DIRNAME is the directory needed (it can be either /Data/BLOCKS/STS1553/ or /Data/BLOCKS/ISS1553/) and FILE being the first block file to be scanned (such as 0257/000).

NB In the case a switch between different streams is needed, one first needs to shut down the scanner who scans the unused blocks, such as

$ ps aux | grep ami_scan

ams 7297 0.0 0.1 7220 2476 ? S Jul27 0:02 python ./ -B /Data/BLOCKS/ISS1553/ -f 0257/000 -d

$ kill 7297

Once the old scanner is dead, just start the new one.

NB2 When stopping and restarting the scanner for the same data source, remember that the file appearing on ps output (0257/000 in the example above) is NOT the last one scanned; the last file scanned information is available in /var/log/messages

NB3 Up to now (15 August 2010) the database needs to know the IP address of the designated host (pcpoc16 atm) otherwise the 'scan' isn't able to write into the databse. This can cause the AMI not to work and (atm) the solution is to call Gabriele Alberti asking to FIX the problem.

AMI in pcposc1

Since 19 Aug 2010 another instance of AMI is running in pcposc1; one may need to start the database, to start AMI and to start the scanner. There is a simple control script to help out; here is the simplest case description.

  • login into the designated host (ami@pcposc1 atm)
  • issue "./ami_ctl status" and it will give you informations about whether AMI and mysql are running. "./ami_ctl start" will always start only what is needed to start, so it is the safer option. Similarly, to shut everything down, issue "./ami_ctl stop".

The scanner in pcposc1 is started practically in the same way:

  • login into the designated host (ami@pcposc1 atm)
  • cd AMI/scanner
  • issue "./ -B DIRNAME -f FILE -d -X localhost:8081"

this basically tells the scanner to fill the database at localhost and NOT the default one (

-- GabrieleAlberti - 28-Jul-2010

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2010-11-29 - PierreSaouter
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback