wreedMH
Hot Shot
Hot Shot

Script to check all vCenter certs for expiry?

Does anyone have a script that will check all vCenter certs for expiry date and report?

0 Kudos
2 Replies
wreedMH
Hot Shot
Hot Shot

Found it

for i in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list); do echo STORE $i; sudo /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $i --text | egrep "Alias|Not After"; done

Ajay1988
VMware Employee
VMware Employee

That will get all vecs certs except STS cert. For STS check   https://kb.vmware.com/s/article/79248 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
0 Kudos