cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
469
Views
1
Helpful
5
Replies

Nexus9000:For commands equivalent to service sequence-numbers

YEH
Level 1
Level 1

Is there a command equivalent to service sequence-numbers supported by the Nexus 9000 series?

service sequence-numbers

1 Accepted Solution

Accepted Solutions

anpetit
Cisco Employee
Cisco Employee

@YEH,

Thanks for the feedback.

Does this mean that Nexus does not support the function of adding a sequence number to the beginning of the log as shown below?
000575: Feb 15 11:36:04.569: %SYS-5-CONFIG_I:.

In my lab, I'm able to do it on a Nexus 9000, it will add the sequence number when performing the CLI, but not by default.
Please see below example:
 

Nexus9000# show logging logfile last-index 
logfile last-index : 109881
Nexus9000# show logging logfile start-seqn 109870 end-seqn 109877
109870: 2024 Feb 15 11:47:52.438
109871: 2024 Feb 15 11:47:51
109872: 2024 Feb 15 11:49:25.439
109873: 2024 Feb 15 11:49:49.973
109874: 2024 Feb 15 11:49:49.974
109875: 2024 Feb 15 11:49:51.976
109876: 2024 Feb 15 11:49:51
109877: 2024 Feb 15 11:51:49.505
 

Let me know if it replies to your question.
Thanks in advance for your feedback. 

Kind Regards,
Antoine

View solution in original post

5 Replies 5

anpetit
Cisco Employee
Cisco Employee

Hello @YEH , 

Checking your post, the "service sequence-numbers" CLI doesn't exist on Nexus 9000. 
Nevertheless, you can run some specific command to get the logs in sequence numbers.
You can use "show logging logfile last-index" to display to number of line or sequence, then you can use "show logging logfile start-seqn 100 end-seqn 200" to display log from line 100 to 200 for example. 
Let me know if it helps. 
Have a nice day. 
Kind Regards,
Antoine

Hello @anpetit 

I checked with the following commands, but to no avail.


# show logging logfile last-index
logfile last-index : 771

# show logging logfile start-seqn 100 end-seqn 200
Last Log cleared/wrapped time is : Thu Feb 15 11:07:30 2024

Does this mean that Nexus does not support the function of adding a sequence number to the beginning of the log as shown below?
000575: Feb 15 11:36:04.569: %SYS-5-CONFIG_I:.

anpetit
Cisco Employee
Cisco Employee

@YEH,

Thanks for the feedback.

Does this mean that Nexus does not support the function of adding a sequence number to the beginning of the log as shown below?
000575: Feb 15 11:36:04.569: %SYS-5-CONFIG_I:.

In my lab, I'm able to do it on a Nexus 9000, it will add the sequence number when performing the CLI, but not by default.
Please see below example:
 

Nexus9000# show logging logfile last-index 
logfile last-index : 109881
Nexus9000# show logging logfile start-seqn 109870 end-seqn 109877
109870: 2024 Feb 15 11:47:52.438
109871: 2024 Feb 15 11:47:51
109872: 2024 Feb 15 11:49:25.439
109873: 2024 Feb 15 11:49:49.973
109874: 2024 Feb 15 11:49:49.974
109875: 2024 Feb 15 11:49:51.976
109876: 2024 Feb 15 11:49:51
109877: 2024 Feb 15 11:51:49.505
 

Let me know if it replies to your question.
Thanks in advance for your feedback. 

Kind Regards,
Antoine

It was a confirmation error on our part. We were able to confirm that the sequence numbers were assigned correctly.
Thank you very much.

anpetit
Cisco Employee
Cisco Employee

Thanks for the reply and closing this thread @YEH . 

It was a pleasure helping you. 

Kind Regards,
Antoine

Review Cisco Networking for a $25 gift card