Cisco Firepower 2100 set timezone修改时区

1 现场1台cisco firepower 2140 运行的ASA模式

现在时间不对,需要修改
当前北京时间 2024.3.23 10:35, 但ASA中show clock显示的是8小时前

FW-2140-1/sec/stby# sh clock
02:25:25.814 UTC Sat Mar 23 2024

差了8个小时,显然是因为时区不对,所以需要修改时区,但发现ASA上并没有timezone的命令进行修改。查询得知需要在FXOS中进行时区修改.

2 FXOS中修改timezone步骤

2.1 ssh登录FXOS

2.2 开始修改时区

firepower-2140# scope system 
firepower-2140 /system # scope services 
firepower-2140 /system/services # set timezone    //这里回车

回车后会提示选择属于哪个大洲

Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa            4) Arctic Ocean     7) Australia       10) Pacific Ocean
2) Americas          5) Asia             8) Europe
3) Antarctica        6) Atlantic Ocean   9) Indian Ocean

我们是亚洲,所以输入5 回车

#? 5

再次提示属于哪个国家,

Please select a country.
 1) Afghanistan           18) Israel                35) Palestine
 2) Armenia               19) Japan                 36) Philippines
 3) Azerbaijan            20) Jordan                37) Qatar
 4) Bahrain               21) Kazakhstan            38) Russia
 5) Bangladesh            22) Korea (North)         39) Saudi Arabia
 6) Bhutan                23) Korea (South)         40) Singapore
 7) Brunei                24) Kuwait                41) Sri Lanka
 8) Cambodia              25) Kyrgyzstan            42) Syria
 9) China                 26) Laos                  43) Taiwan
10) Cyprus                27) Lebanon               44) Tajikistan
11) East Timor            28) Macau                 45) Thailand
12) Georgia               29) Malaysia              46) Turkmenistan
13) Hong Kong             30) Mongolia              47) United Arab Emirates
14) India                 31) Myanmar (Burma)       48) Uzbekistan
15) Indonesia             32) Nepal                 49) Vietnam
16) Iran                  33) Oman                  50) Yemen
17) Iraq                  34) Pakistan

我们在中国,所以输入 9回车

#? 9

再次问属于哪个北京时区还是新疆时区

Please select one of the following time zone regions.
1) Beijing Time
2) Xinjiang Time

我们当前是北京时区,所以输入1回车

#? 1

此时系统提示时区修改完成,是否继续

The following information has been given:

        China
        Beijing Time

Therefore timezone 'Asia/Shanghai' will be set.
Local time is now:      Sat Mar 23 10:31:00 CST 2024.
Universal Time is now:  Sat Mar 23 02:31:00 UTC 2024.
Is the above information OK?
1) Yes
2) No

当然要继续,所以输入1回车

#? 1

这时FXOS上并没有生效,因为还需要commit提交配置

firepower-2140 /system/services # commit-buffer 

这时 FXOS上检查时间已经是正确时区的时间

firepower-2140 /system/services # sh cloc
Sat Mar 23 10:25:10 CST 2024

ASA上时间正常了吗?

ASA会继承FXOS的时区和时间,所以
ASA上show clock 已经显示时区已经正确

FW-2140-1/pri/act# sh clo
10:25:46.812 CST Sat Mar 23 2024

完成了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值