Connectrix: MDS: Opdracht gebruikers weergeven Geeft een onjuiste datum en tijd weer 1 januari alleen 08:00

摘要: De opdracht Gebruikers weergeven bevat informatie over gebruikers die zijn aangemeld bij het systeem. In dit artikel wordt een probleem uitgelegd waarbij de datum en tijd onjuist worden weergegeven. ...

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

症状

De switch wordt uitgevoerd op NX-OS 9.4.1a.

De uitvoer van de gebruikersopdracht geeft een onjuiste tijdstempel weer, zoals hieronder wordt weergegeven:
[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

原因

Dit komt door een Cisco Defect ID CSCWK43183 die van invloed is op NX-OS 9.4.1a.

解决方案

In NX-OS versie 9.4(1a) wordt de uitvoer van de show users Met de opdracht wordt 1 januari consistent weergegeven, samen met de tijdsverschuiving ten opzichte van UTC op basis van de geconfigureerde tijdzone.

Aangezien de show users uitvoer geeft een onjuiste tijdstempel weer, de show accounting log Kan worden gecontroleerd op de meest recente aanmeldingstijdstempel voor de beheerder.

Oplossing:
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

Fix:
Upgrade naar NX-OS 9.4.2 versie.
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
 
Opmerking:
Voordat u een upgrade naar 9.4.2 uitvoert, moet u controleren of TACACS wordt gebruikt als authenticatieprotocol in uw switches.
  • Zo ja, dan kan een Cisco-defect CSCWK14579 leiden tot authenticatiefouten na de upgrade naar 9.4.2. Schakel daarom TACACS uit en voer de firmware-upgrade uit. Schakel vervolgens de TACACS-configuratie in.
  • Als switches geen TACACS gebruiken voor authenticatie, kunt u zonder problemen upgraden naar 9.4(2).

产品

VxBlock and Vblock Systems
文章属性
文章编号: 000226156
文章类型: Solution
上次修改时间: 01 1月 2026
版本:  3
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。