Question: When running the "adlicense -q" command, it returns a code of 161. Other commands such as "adlicense -v" return a code of 0 (indicating success). Why does this happen?
See example output below:
[root@hostname ~]#
adlicense -vCentrifyDC 5.6.0-217
[root@hostname ~]#
echo $?0
[root@hostname ~]#
adlicense -qLicense mode: licensed
License type: server
[root@hostname ~]#
echo $?161
Answer: This is by design. Please see the below return codes for the adlicense -q command:
10 -> machine not joined to domain yet
160 -> Express mode
161 -> Licensed Mode with Server license type
162 -> Licensed Mode with Workstation license type
163 -> Licensed Mode but License Type is unspecified (pre-suite2015.1)