alias to generate esxcli command to set time and date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#alias to generate esxcli command to set time and date | |
#this is a csh/tcsh alias: | |
alias esxidate date -u '"+esxcli system time set --year=%Y --month=%m --day=%d --hour=%H --min=%M --sec=%S"' | |
#Usage: | |
% esxidate | |
esxcli system time set --year=2015 --month=06 --day=17 --hour=20 --min=42 --sec=12 | |
#Use it to set the time on your esxi host via ssh: | |
% ssh myesxi `esxidate` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment