Manually setting the time requires three main steps:
The clock set CommandThe clock set command is used to manually set the date and time. Use of the clock set command is as follows : pixfirewall(config)# clock set <hh:mm:ss> {<day> <month> <month> <day>} <year> Table 7.1. clock set Command Options
The following example sets the clock: pixfirewall(config)# clock set 13:01:11 31 aug 2003 pixfirewall(config)# pixfirewall(config)# show clock 13:01:16.920 UTC Sun Aug 31 2003 pixfirewall(config)# The clock timezone CommandThe clock timezone command sets the time zone of your PIX firewall. The command syntax is as follows: pixfirewall(config)# [no] clock timezone <zone> <hours> [<minutes>] Table 7.2. clock timezone Command Options
The following example sets the clock time zone: pixfirewall(config)# clock timezone PST -8 0 pixfirewall(config)# pixfirewall(config)# show clock 05:15:16.107 PST Sun Aug 31 2003 pixfirewall(config)# The previous example sets the time zone name to PST , with a 8 hours and 0 minutes offset from UTC time. The timezone command is used for display purposes only; the actual time in the PIX firewall is UTC time. The clock summer-time CommandThe clock timezone command set supports the DST feature, which is turned off by default. The following is the command syntax: pixfirewall(config)# [no] clock summer-time <zone> recurring [<week> <weekday> <month> <hh:mm> <week> <weekday> <month> <hh:mm>] [<offset>] pixfirewall(config)# [no] clock summer-time <zone> date {<day> <month> <month> <day>} <year> <hh:mm> {<day> <month> <month> <day>} <year> <hh:mm> [<offset>] The summer-time command enables you to offset the time once by using the clock summer-time date command or to perform the offset every year with the clock summer-time recurring command. The show clock CommandThe show clock command displays the current date and time on the firewall. By using the detail option, you can display the method used to set the clock, like so: pixfirewall(config)# show clock [detail] Table 7.3. show clock Command Option
Listing 7.1 sets the clock and then displays the clock details: Listing 7.1 Using the clock set Commandpixfirewall(config)# clock set 13:01:11 31 aug 2003 pixfirewall(config)# pixfirewall(config)# clock timezone PST -8 0 pixfirewall(config)# pixfirewall(config)# show clock 05:01:53.671 PST Sun Aug 31 2003 pixfirewall(config)# pixfirewall(config)# show clock detail 05:01:59.941 PST Sun Aug 31 2003 Time source is user configuration pixfirewall(config)# The clear clock CommandThe clear clock command removes user configuration from the clock to set the display time back to UTC time zone, and it also removes any DST settings. |