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コマンドの出力には、次に示すように誤ったタイムスタンプが表示されます。
[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)では、 show users コマンドは、設定されたタイム ゾーンに基づいて、UTCからの時間オフセットとともに1月1日を一貫して表示します。

以来、 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へのアップグレード後に、Ciscoの欠陥CSCWK14579によって認証が失敗する可能性があります。したがって、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.