To find how many keys are in key server, please run this command in each server.
ldapsearch -H ldap://127.0.0.1 -x -b "ou=PGP Keys,dc=tsmc,dc=com" "(pgpUserID=*)" pgpKeyID -LLL | grep pgpKeyID |wc -l
If you want to compare the result on both server, please run this command in each server and redirect the output to a text file.
ldapsearch -H ldap://127.0.0.1 -x -b "ou=PGP Keys,dc=tsmc,dc=com" "(pgpUserID=*)" pgpKeyID -LLL | grep pgpKeyID | sort
沒有留言:
張貼留言