Skip to content

Usage Examples

Ryan Slominski edited this page Jan 31, 2022 · 56 revisions


Effective Registration

  1. Spin up containers
cd examples/compose
docker-compose -f effective.yml up
  1. Make sure a category exists
docker exec -it jaws /scripts/client/set-category.py IOC
  1. Set (or replace) base class definition
docker exec -it jaws /scripts/client/set-class.py base --category IOC --priority P4_INCIDENTAL --rationale because --correctiveaction fixit --pointofcontactusername tester
  1. Set (or replace) a simple alarm
docker exec -it jaws /scripts/client/set-instance.py alarm1 --producersimple
  1. Observe class defaults are inherited
docker exec -it jaws /scripts/client/list-effective-registrations.py

Effective Activation

Disabled

  1. Spin up containers
cd examples/compose
docker-compose -f effective.yml up
  1. Set Disabled override
docker exec -it jaws /scripts/client/set-override.py alarm1 --override Disabled
  1. Set Shelved override (has lower precedence)

docker exec -it jaws /scripts/client/set-override.py alarm1 --override Shelved --expirationseconds 90 --reason Other
  1. Show overrides
docker exec -it jaws /scripts/client/list-overrides.py
  1. Show effective activations
docker exec -it jaws /scripts/client/list-effective-activations.py

Continuous Shelved

  1. Spin up containers
cd examples/compose
docker-compose -f effective.yml up
  1. Monitor for automated expiration tombstone message
docker exec -it jaws /scripts/client/list-overrides.py --monitor 
  1. Shelve an alarm for 5 seconds
docker exec -it jaws /scripts/client/set-override.py --override Shelved alarm1 --reason Other --expirationseconds 5
  1. Show effective activations
docker exec -it jaws /scripts/client/list-effective-activations.py

One Shot Shelved

  1. Launch Docker
docker-compose up
  1. Set activation
docker exec -it jaws /scripts/client/set-activation.py alarm1
  1. Monitor overrides
docker exec -it jaws /scripts/client/list-overrides.py --monitor
  1. Set one-shot shelved
docker exec -it jaws /scripts/client/set-override.py alarm1 --override Shelved --oneshot --reason Other --expirationseconds 90
  1. Unset activation
docker exec -it jaws /scripts/client/set-activation.py alarm1 --unset

Latched

  1. Launch Docker
docker-compose up
  1. Set (or replace) latching class definition
docker exec -it jaws /scripts/client/set-class.py latchingclass --category IOC --priority P4_INCIDENTAL --rationale because --correctiveaction fixit --pointofcontactusername tester
  1. Register alarm1 as member of latchingclass
docker exec -it jaws /scripts/client/set-instance.py alarm1 --producersimple --alarmclass latchingclass
  1. Monitor for latch
docker exec -it jaws /scripts/client/list-overrides.py --monitor 
  1. Set active (and observe auto-latch)
docker exec -it jaws /scripts/client/set-activation.py alarm1
  1. Clear Latch
docker exec -it jaws /scripts/client/set-override.py alarm1 --override Latched --unset

EPICS

  1. Spin up containers
cd examples/compose
docker-compose -f epics.yml up
  1. Register an alarm (and trigger EPICS monitoring)
docker exec -it jaws /scripts/client/set-instance.py alarm1 --producerpv channel1
  1. Trip an alarm
docker exec softioc caput channel1 1
  1. Verify that the alarm-activations topic received a properly formatted message
docker exec -it jaws /scripts/client/list-activations.py

Admin GUI

  1. Spin up containers
cd examples/compose
docker-compose -f admin-gui.yml up
  1. Navigate web browser: http://localhost:8080/jaws-admin-gui/

All

  1. Spin up containers
cd examples/compose
docker-compose -f all.yml up
Clone this wiki locally