The library functions from your own C-program would be:

1. Esys_GetCapabilities() / Tss2_Sys_GetCapabilities() with parameters
capability = TPM2_CAP_TPM_PROPERTIES
property one of:
- TPM2_PT_LOCKOUT_COUNTER
- TPM2_PT_MAX_AUTH_FAIL
- TPM2_PT_LOCKOUT_INTERVAL
- TPM2_PT_LOCKOUT_RECOVERY

2. Esys_DictionaryAttackLockReset() / Tss2_Sys_DictionaryAttackLockReset()

or from bash using tpm2-tools:
$ tpm2_getcap --capability=properties-variable
search for TPM2_PT_LOCKOUT_COUNTER, TPM2_PT_MAX_AUTH_FAIL,
       
TPM2_PT_LOCKOUT_INTERVAL, TPM2_PT_LOCKOUT_RECOVERY
$ tpm2_dictionarylockout --clear-lockout

 
Hope this help...
Andreas


From: tpm2 [tpm2-bounces@lists.01.org] on behalf of Al Munyandy, MunessparanX [munessparanx.al.munyandy@intel.com]
Sent: Friday, March 30, 2018 05:32
To: tpm2@lists.01.org
Subject: [tpm2] noDA

Hi,

 

I’m looking for command to check “noDA” status and also command to set “noDA” to clear.

 

May I know where I could get the list of command to use for TPM2 tools.

 

Thanks!

Regards,

munes