{"id":1145,"date":"2013-06-21T16:04:49","date_gmt":"2013-06-21T15:04:49","guid":{"rendered":"http:\/\/www.kozeniauskas.com\/itblog\/?p=1145"},"modified":"2013-07-01T14:09:38","modified_gmt":"2013-07-01T13:09:38","slug":"configuring-ntp-and-timzones-on-cisco-devices-in-vblock","status":"publish","type":"post","link":"https:\/\/www.kozeniauskas.com\/itblog\/2013\/06\/21\/configuring-ntp-and-timzones-on-cisco-devices-in-vblock\/","title":{"rendered":"Configuring NTP and Timezones on Cisco devices(UCS, MDS, Nexus, Catalyst) in Vblock"},"content":{"rendered":"<p><strong>Cisco UCS<\/strong><\/p>\n<ol>\n<li>Open <strong>UCS manager<\/strong>.<\/li>\n<li>Select <strong>Admin<\/strong> tab and change filter to <strong>Timezone Management<\/strong><\/li>\n<li>Select your timezone and click on green + to add NTP server details<br \/>\n<a href=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/111.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1146\" alt=\"1\" src=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/111-300x168.jpg\" width=\"300\" height=\"168\" srcset=\"https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/111-300x168.jpg 300w, https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/111-1024x574.jpg 1024w, https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/111.jpg 1065w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Enter IP address of your NTP server and click OK. You can add FQDN of the server but then make sure that DNS is configured in UCS Manager.<br \/>\n<a href=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/24.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1147\" alt=\"2\" src=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/24-300x163.jpg\" width=\"300\" height=\"163\" srcset=\"https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/24-300x163.jpg 300w, https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/24.jpg 357w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ol>\n<p><strong>Cisco Nexus 5000 and 7000<\/strong><\/p>\n<ol>\n<li><span style=\"line-height: 13px;\">Login using CLI to your Nexus switch<\/span><\/li>\n<li>To configure your timezone and NTP server details:<br \/>\n<em>conf t<br \/>\nclock timezone UTC 0 0<\/em> \u00a0 \u00a0<span style=\"color: #ffff00;\">&lt;== Change your name of timezone from UTC. First 0 is for Hours offset and the second is for minutes offset<\/span><br \/>\n<em><em>ntp server 192.168.101.81 use-vrf management<\/em><\/em><\/li>\n<li>Verify that the configuration was set and packet are being received:<em>sh ntp statistics peer ipaddr 192.168.101.81<\/em><br \/>\n<a href=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/71.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1152\" alt=\"7\" src=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/71-300x163.jpg\" width=\"300\" height=\"163\" srcset=\"https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/71-300x163.jpg 300w, https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/71.jpg 458w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<em>sh clock<\/em><\/li>\n<\/ol>\n<p><strong>Cisco Nexus 1000v and MDS switches<\/strong>Login to CLI to your Nexus switch<\/p>\n<ol>\n<li>Login using CLI to your MDS or 1000v switch<\/li>\n<li>Configure timezone and NTP server details:<br \/>\n<em><em>conf t<br \/>\nclock timezone UTC 0 0 \u00a0 \u00a0<\/em><\/em><span style=\"color: #ffff00;\">&lt;== Change your name of timezone from UTC. First 0 is for Hours offset and the second is for minutes offset<\/span><em><em><em><br \/>\nntp server 192.168.101.81<\/em><\/em><\/em><\/li>\n<li>Verify that the configuration was set and packet are being received:<em>sh ntp statistics peer ipaddr 192.168.101.81<br \/>\n<a href=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/52.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1150\" alt=\"5\" src=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/52-300x174.jpg\" width=\"300\" height=\"174\" srcset=\"https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/52-300x174.jpg 300w, https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/52.jpg 473w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nsh clock<\/em><\/li>\n<\/ol>\n<p><strong>Cisco Catalyst switches<\/strong><\/p>\n<ol>\n<li><span style=\"line-height: 13px;\">Login using CLI to your Catalyst switch<\/span><\/li>\n<li><span style=\"line-height: 13px;\"><span style=\"line-height: 13px;\">Configure timezone and NTP server details:<br \/>\n<\/span><\/span><em><em>conf t<br \/>\nclock timezone UTC 0 0 \u00a0 \u00a0<\/em><\/em><span style=\"color: #ffff00;\">&lt;== Change your name of timezone from UTC. First 0 is for Hours offset and the second is for minutes offset<\/span><em><em><em><br \/>\nntp server 192.168.101.81<\/em><\/em><\/em><\/li>\n<li>Verify that the configuration was set and packet are being received:<br \/>\n<em><em>sh ntp status<br \/>\n<\/em><\/em><em><em><a href=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/42.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1149\" alt=\"4\" src=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/42-300x67.jpg\" width=\"300\" height=\"67\" srcset=\"https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/42-300x67.jpg 300w, https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/42.jpg 645w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nsh ntp associations detail<br \/>\n<a href=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/61.jpg\"><img loading=\"lazy\" alt=\"6\" src=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/61-300x121.jpg\" width=\"300\" height=\"121\" \/><br \/>\n<\/a><em><em>sh clock<\/em><\/em><\/em><\/em><\/li>\n<\/ol>\n<p>Beware that it may take some time for clock to synchronize on all devices.<br \/>\nIf you are using Microsoft Windows w32tm service for NTP then on your NTP server you need to change <strong>LocalClockDispersion<\/strong> to <strong>0<\/strong> seconds or Cisco devices will not sync.<br \/>\nTo check the current setting:<\/p>\n<ol>\n<li><span style=\"line-height: 13px;\">open command prompt on NTP server<\/span><\/li>\n<li>type:<em>w32tm \/query \/status<br \/>\n<a href=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/81.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1153\" alt=\"8\" src=\"http:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/81-300x150.jpg\" width=\"300\" height=\"150\" srcset=\"https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/81-300x150.jpg 300w, https:\/\/www.kozeniauskas.com\/itblog\/files\/2013\/06\/81.jpg 666w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\n<\/a><\/em>By default Dispersion is set to 10 seconds. It cannot be more than 1 second for Cisco devices to sync<\/li>\n<li>Open registry and find the following key<br \/>\n<strong>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\W32Time\\Config<\/strong><\/li>\n<li>Change the value of\u00a0<strong>LocalClockDispersion<\/strong> from <strong>a<\/strong> to <strong>0<\/strong><\/li>\n<li>Restart Windows Time service<\/li>\n<li>The devices should start syncing.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Cisco UCS Open UCS manager. Select Admin tab and change filter to Timezone Management Select your timezone and click on green + to add NTP server details Enter IP address of your NTP server and click OK. You can add FQDN of the server but then make sure that DNS is configured in UCS Manager. [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[380,467,451,381,452],"tags":[470,497,501,499,439,471,498],"_links":{"self":[{"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts\/1145"}],"collection":[{"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/comments?post=1145"}],"version-history":[{"count":10,"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts\/1145\/revisions"}],"predecessor-version":[{"id":1157,"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/posts\/1145\/revisions\/1157"}],"wp:attachment":[{"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/media?parent=1145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/categories?post=1145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kozeniauskas.com\/itblog\/wp-json\/wp\/v2\/tags?post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}