cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5538
Views
0
Helpful
2
Replies

Why configuring clock using clock set command is not accepted in nexus 7k?

dorsia
Level 1
Level 1

Hello,

I have a message like this:

Admin-CORE1_VDC# clock set 15:26:00 7 december 2014
Setting clock from CLI is not allowed in this VDC.

Use the following config command to use the "clock set" command.
clock protocol none vdc <vdc_id>

 

If I issue that command the message shows like this:

Admin-CORE1_VDC# clock protocol none vdc 2
                   ^
% Invalid command at '^' marker.
Admin-CORE1_VDC# conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Admin-CORE1_VDC(config)# clock protocol none vdc 2
                           ^
% Invalid command at '^' marker.
Admin-CORE1_VDC(config)# 

Pleas advice:

Thanks,

Dani

 

2 Replies 2

ashfaq82
Level 1
Level 1

You need to select the protocol as none if you are not using NTP or PTP in your environment. This will allow you to manually configure the time on you device.

NX-1(config)# clock protocol none

NX-1(config)# clock set 09:14:00 04 May 2021


Tue May 4 09:14:00 EST 2021

Time source is Hardware Calendar

svalera
Level 1
Level 1

Hi 

i had the same problem, i solved it in the following way

323_LAN_TELCO_CREC_BORDER2# sh clock
15:30:01.660 UTC Fri Mar 14 2025
Time source is NTP

323_LAN_TELCO_CREC_BORDER2# clock set 09:30:30 14 March 2025
Setting clock from CLI is not allowed in this VDC.

Use the following config command to use the "clock set" command.
clock protocol none vdc <vdc_id>

 

Resolved

323_LAN_TELCO_CREC_BORDER2(config)# clock protocol none
323_LAN_TELCO_CREC_BORDER2(config)# clock set 09:41:30 14 March 2025
Fri Mar 14 09:41:30 UTC 2025

323_LAN_TELCO_CREC_BORDER2(config)#

323_LAN_TELCO_CREC_BORDER2# sh clock
09:41:36.118 UTC Fri Mar 14 2025
Time source is Hardware Calendar
323_LAN_TELCO_CREC_BORDER2# conf t
323_LAN_TELCO_CREC_BORDER2(config)# clock protocol ntp vdc 1
323_LAN_TELCO_CREC_BORDER2# sh clock
15:44:35.375 UTC Fri Mar 14 2025
Time source is NTP

323_LAN_TELCO_CREC_BORDER2(config)# clock timezone GMT -6 -00
323_LAN_TELCO_CREC_BORDER2(config)# do sh cloc
09:46:12.687 GMT Fri Mar 14 2025
Time source is NTP

Saludos 

 

Review Cisco Networking for a $25 gift card