Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-33508: Adlicense command returns exit code 161

Authentication Service ,  

22 May,20 at 10:59 PM

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 -v
CentrifyDC 5.6.0-217

[root@hostname ~]# echo $?

[root@hostname ~]# adlicense -q
License mode: licensed
License type: server

[root@hostname ~]# echo $?

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)