Command Line Reference
Device Management
System Time Configuration
5 min
show clock show clock \[command] show clock \[purpose] display time zone and time \[view] system view \[use cases] sonic# show clock show supported timezones show supported timezones \[command] show supported timezones \[purpose] display the time zones supported by the system configuration \[view] system view \[use cases] sonic# show supported timezones clock datetime clock datetime \[command] clock datetime date string time string \[purpose] configure system time \[parameter] parameter description date string date value, yy mm dd format time string time value, hh\ mm\ ss format \[view] system configuration view \[usage scenario] when preparing to deploy a device, it's essential to configure the system time of the device to the current actual time this ensures that the device's logs and alarm messages accurately reflect the timestamp of events the device often comes with an arbitrary system time when it leaves the factory, which doesn't represent the actual time \[use cases] sonic# configure sonic(config)# clock datetime 2022 02 22 20 30 30 clock timezone clock timezone \[command] clock timezone zone no clock timezone \[purpose] configure the system time zone, the default time zone is utc \[parameter] parameter description zone timezone \[view] system view \[use cases] sonic# configure sonic(config)# clock timezone asia/shang
