Cisco APIC:如何通过 CLI 获取日期和时间策略?

网络工程 思科
2022-03-02 05:19:36

Date and Time通过 GUI获取策略:

FABRIC > FABRIC POLICIES > Pod Policies > Expand Policies > Date and Time

在此处输入图像描述

参考:

https://www.cisco.com/c/en/us/support/docs/cloud-systems-management/application-policy-infrastructure-controller-apic/200128-Configuring-NTP-in-ACI-Fabric-Solution。 html

我尝试了以下命令,但没有一个显示策略名称。

fabric1-leaf1# show ntp peers
--------------------------------------------------
  Peer IP Address               Serv/Peer
--------------------------------------------------
  173.36.129.235                Server (configured)





fabric1-leaf1# show ntp peer-status
Total peers : 1
* - selected for sync, + - peer mode(active),
- - peer mode(passive), = - polled in client mode
    remote                local                st   poll   reach delay   vrf
-------------------------------------------------------------------------------
*173.36.129.235          0.0.0.0               3    16     37    0.00134 management





fabric1-leaf1# show ntp statistics peer ipaddr 173.36.129.235
remote host:          173.36.129.235
local interface:      Unresolved
time last received:   2s
time until next send: 14s
reachability change:  408s
packets sent:         30
packets received:     30
bad authentication:   0
bogus origin:         0
duplicate:            0
bad dispersion:       0
bad reference time:   0
candidate order:      6
fabric1-leaf1#

请让我知道通过 CLI/SSH 获取日期和时间策略的正确命令。谢谢

1个回答

从 APIC CLI 试试这些:

APIC# moquery -c datetimePol
APIC# moquery -c datetimePol -x 'query-target=children'