summaryrefslogtreecommitdiffstats
path: root/site-manager/src/main/files/README
blob: d5d2df6e40bfd40dfcf713f3e23a53844cc9b647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Copyright 2018 AT&T Intellectual Property. All rights reserved.
This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE
Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

Before using 'siteManager', the file 'siteManager.properties' needs to be
edited to configure the parameters used to access the database:

    javax.persistence.jdbc.driver - typically 'org.mariadb.jdbc.Driver'
    javax.persistence.jdbc.url - URL referring to the database,
        which typically has the form: 'jdbc:mariadb://<host>:<port>/<db>'
		('<db>' is probably 'xacml' in this case)
    javax.persistence.jdbc.user - the user id for accessing the database
    javax.persistence.jdbc.password - password for accessing the database

Once the properties file has been updated, the 'siteManager' script can be
invoked as follows:

    siteManager show [ -s <site> | -r <resourceName> ] :
        display node information
    siteManager setAdminState { -s <site> | -r <resourceName> } <new-state> :
        update admin state on selected nodes
    siteManager lock { -s <site> | -r <resourceName> } :
        lock selected nodes
    siteManager unlock { -s <site> | -r <resourceName> } :
        unlock selected nodes

Note that the 'siteManager' script assumes that the script,
'site-manager-${project.version}.jar' file and 'siteManager.properties' file
are all in the same directory. If the files are separated, the 'siteManager'
script will need to be modified so it can locate the jar and properties files.