Connectrix:MDS:Show users 命令仅显示不正确的日期和时间 Jan 1 08:00
Summary: Show Users 命令提供有关登录到系统的用户的信息。本文介绍了日期和时间显示不正确的问题。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
交换机运行的是 NX-OS 9.4.1a。
users 命令输出显示不正确的时间戳,如下所示:
users 命令输出显示不正确的时间戳,如下所示:
[Model 9132T on NX-OS 9.4.1a] =================== MDS9132T-s1fA-sw3# show version system: version 9.4(1a) <<<<<<<<<<<<<<<<<<< 9.4.1a system image file is: bootflash:///m9100-s6ek9-mz.9.4.1a.bin system compile time: 12/25/2023 12:00:00 [01/12/2024 10:45:51] Reason: Reload due to non-disruptive system reload MDS9132T-s1fA-sw3# sh clock Time source is Hardware Calendar 09:55:11.833 IST Sat Jun 15 2024 MDS9132T-s1fA-sw3# show users NAME LINE TIME IDLE PID COMMENT admin pts/0 Jan 1 05:30 . 16852 session=ssh * <<<<<<<<<<<< Jan 1 05:30
Cause
这是由于影响 NX-OS 9.4.1a 的 Cisco 缺陷 ID CSCWK43183造成的。
Resolution
在 NX-OS 版本 9.4(1a) 中,如果
由于
解决方法:
修复:
升级到 NX-OS 9.4.2 版本。
show users 命令始终显示 1 月 1 日以及与 UTC 的时间偏移量(基于配置的时区)。
由于
show users 输出显示不正确的时间戳,即 show accounting log 可以检查管理员用户的最新登录时间戳。
解决方法:
When a user logs in to the switch on SSH, accounting log records the login of the user as below: <timestamp> :type=start:id=10.138.65.80@pts/1:user=admin:cmd= When a user logs into the switch on console, accounting log records the login of the user as below: <timestamp> :type=start:id=console0:user=admin:cmd= To view the last logged in time for a user named "admin", run the below command: # show accounting log | grep "start.*admin" | tail lines 1
修复:
升级到 NX-OS 9.4.2 版本。
DS9132T-s1fA-sw3# show version | grep sys system: version 9.4(2) <<<<<<<<<<<<<<<<<<<<< 9.4.2 system image file is: bootflash:///m9100-s6ek9-mz.9.4.2.bin system compile time: 4/25/2024 12:00:00 [05/10/2024 03:55:39] MDS9132T-s1fA-sw3# sh users NAME LINE TIME IDLE PID COMMENT admin pts/0 Jun 15 10:16 . 6362 (10.1xx.x5.1x5) session=ssh * >>>> showing correct timings After downgrading the switch from version 9.4.1a to 9.3.2a, the timestamps displayed by the 'show users' command are now correct. BIOS compile time: 05/16/2023 kickstart image file is: bootflash:///m9300-s1ek9-kickstart-mz.9.3.2a.bin <<<< kickstart compile time: 4/25/2023 12:00:00 [05/13/2023 03:09:36] system image file is: bootflash:///m9300-s1ek9-mz.9.3.2a.bin system compile time: 4/25/2023 12:00:00 [05/13/2023 04:28:40] MDS9396S-s1fB-SW1# show users NAME LINE TIME IDLE PID COMMENT admin pts/0 Jun 15 15:41 . 4855 (10.1xx.2xx.x8) session=ssh * <<<< show users displaying the correct time. MDS9396S-s1fB-SW1# show clock Time source is NTP 15:42:36.016 ist Sat Jun 15 2024
注意:
在升级到 9.4.2 之前,请验证是否在交换机中使用 TACACS 作为身份验证协议。
在升级到 9.4.2 之前,请验证是否在交换机中使用 TACACS 作为身份验证协议。
- 如果是,Cisco 缺陷CSCWK14579可能会导致升级到 9.4.2 后身份验证失败。因此,请禁用 TACACS 并执行固件升级。然后启用 TACACS 配置。
- 如果交换机未使用 TACACS 进行身份验证,您可以升级到 9.4(2),而不会出现任何问题。
Article Properties
Article Number: 000226156
Article Type: Solution
Last Modified: 19 May 2025
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.