|
|
## Quick Start Guide
|
|
|
In this section we illustrate typical system usage via the DM Station GUI (see the [Getting Started](https://git.aps.anl.gov/DM/dm-docs/-/blob/master/getting_started/getting-started.md) guide for more details). Note that /home/dm_bm directory should be accessible on all LSCAT machines.
|
|
|
In this section we illustrate typical system usage via the DM Station GUI (see the [Getting Started](https://git.aps.anl.gov/DM/dm-docs/-/blob/master/getting_started/getting-started.md) guide for more details). Note that /opt/dm directory should be accessible on all LSCAT machines.
|
|
|
|
|
|
1. Setup environment by sourcing setup file.
|
|
|
`$ # After sourcing setup file, all DM commands will be in your path`
|
... | ... | @@ -54,7 +54,7 @@ In this section we list few most important DM commands that can be used from a t |
|
|
|
|
|
## Python API
|
|
|
|
|
|
The DM Python API documentation is located in the /home/dm_bm/production/doc/html folder, while some simple examples can be found under the /home/dm_bm/production/examples directory.
|
|
|
The DM Python API documentation is located in the /opt/dm/production/doc/html folder, while some simple examples can be found under the /opt/dm/production/examples directory.
|
|
|
|
|
|
|
|
|
1. After sourcing the DM setup file, DM Python will be in user's path and DM Python APIs will be in user's PYTHONPATH environment variable.
|
... | ... | @@ -85,7 +85,7 @@ The DM Python API documentation is located in the /home/dm_bm/production/doc/htm |
|
|
|
|
|
## System Administration
|
|
|
|
|
|
DM services are controlled using standard RHEL daemon scripts located under the /home/dm_bm/production/etc/init.d directory. Relevant scripts are:
|
|
|
DM services are controlled using standard RHEL daemon scripts located under the /opt/dm/production/etc/init.d directory. Relevant scripts are:
|
|
|
|
|
|
- dm-daq-web-service (DAQ web service)
|
|
|
- dm-cat-web-service (Cataloging web service)
|
... | ... | @@ -97,16 +97,16 @@ DM services are controlled using standard RHEL daemon scripts located under the |
|
|
|
|
|
Shown below is an example of DAQ Web Service restart:
|
|
|
```
|
|
|
$ # Control scripts can be found in /home/dm_bm/production/etc/init.d directory.
|
|
|
$ # Control scripts can be found in /opt/dm/production/etc/init.d directory.
|
|
|
$ # Usage:
|
|
|
$ /home/dm_bm/production/etc/init.d/dm-daq-web-service
|
|
|
Usage: /home/dm_bm/production/etc/init.d/dm-daq-web-service {start|stop|status|restart}
|
|
|
$ /opt/dm/production/etc/init.d/dm-daq-web-service
|
|
|
Usage: /opt/dm/production/etc/init.d/dm-daq-web-service {start|stop|status|restart}
|
|
|
|
|
|
$ # Restart DAQ Web Service
|
|
|
$ /home/dm_bm/production/etc/init.d/dm-daq-web-service restart
|
|
|
$ /opt/dm/production/etc/init.d/dm-daq-web-service restart
|
|
|
Stopping dm.DaqWebService daemon: [ OK ]
|
|
|
Starting dm.DaqWebService daemon: [ OK ]
|
|
|
$ /home/dm_bm/production/etc/init.d/dm-daq-web-service status
|
|
|
$ /opt/dm/production/etc/init.d/dm-daq-web-service status
|
|
|
dm.DaqWebService (pid 29314) is running...
|
|
|
```
|
|
|
|
... | ... | @@ -125,7 +125,7 @@ Shown below is an example of DAQ Web Service restart: |
|
|
- Mongo Express (localhost, port 18182)
|
|
|
- DM Admin Unix Account: dmadmin
|
|
|
- DM Beamline System Account: user21id
|
|
|
- Deployment Directory: /home/dm_bm
|
|
|
- Deployment Directory: /opt/dm
|
|
|
- Support Software Directory: /opt/dm/support
|
|
|
- System Configuration Files: /opt/dm/etc
|
|
|
- Service Log Directories:
|
... | ... | |