setup server config
[!TIP]
can be one of:
- database
- license
- klocwork
is the projects_root where the servers are running
$ kwservice set-service-property klocwork host klocwork.domain.com
Using projects root: /projects/root
# kwservice check
Using projects root: /projects/root
Local Host is: klocwork-server-7*********-****q [10.244.6.65]
Checking License Server [running on klocwork-license:443]
Checking Database Server [running on localhost:3306] (projects root is /projects/root)
Checking Klocwork Server [running on klocwork.domain.com:8080]
start/restart service
[!TIP] references:
start
$ kwservice --projects-root /projects/root start
restart
$ kwservice --projects-root /projects/root restart Using projects root: /projects_root Local Host is: klocwork-server-7*********-****4 [10.244.6.68] Re-starting License Server [already running on klocwork-license:443] Re-starting Database Server [started on localhost:3306] (projects root is /projects/root) Re-starting Klocwork Server
stop
$ kwservice --projects-root /projects/root stop Using projects root: /projects_root Local Host is: devops-klocwork-7********b-s***b [10.244.6.81] Stopping License Server [running on l******2:3***8] Stopping Database Server [stopped] Stopping Klocwork Server [stopped]
check license status
[!TIP] references:
$ kwservice --projects-root /projects/root check license
Using projects root: /projects/root
Local Host is: klocwork-server-755dc7966b-ndb94 [10.244.6.68]
Checking License Server [running on klocwork-license:443]