Reply to Message

View discussion in a popup

Replying to:
Sivaramsharmar
Enthusiast
Enthusiast

Hi Lucd,

As there is a time factor involved as per the log retention period of ESXi & vCenter as  you said, I tried for alternate approach.

I have gone through couple of blogs and found below command.

Below command is working only on ESXi 6.5 and above.

[root@localhost:~] myDays=$(cat /etc/shadow | grep root | awk -F ":"'{print $3}')

[root@localhost:~] date -d "1970-01-01 +$(($myDays *24))"

We have more servers running on ESXi 6.0 environment and above command is not working.

Is there any way that we can execute above command through PowerCLI which will work both on ESXi 6.0 & 6.5.

Reply
0 Kudos