如果我应该在其他地方问这个,请告诉我。我正在尝试在 Catalyst 9300 上使用 netconf 配置 Cisco CLI 接口命令 'snmp trap mac-notification change added' 的等效项。我查看了架构,似乎找不到任何东西。查看 xpath /native/interface/GigabitEthernet,我看到下面的接口配置:
<GigabitEthernet>
<name>1/0/5</name>
<ip>
<access-group>
<in>
<acl>
<acl-name>IP-PREAUTH-ACL</acl-name>
<in/>
</acl>
</in>
</access-group>
</ip>
<logging>
<event>
<link-status/>
</event>
</logging>
<source>
<template>
<template-name>
<template-name>Test_Template</template-name>
</template-name>
</template>
</source>
<cdp xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-cdp">
<tlv>
<app/>
<server-location/>
<location/>
</tlv>
</cdp>
<spanning-tree xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-spanning-tree">
<portfast/>
</spanning-tree>
<auto xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<qos>
<voip>
<cisco-phone/>
</voip>
</qos>
</auto>
</GigabitEthernet>
命令行配置:
interface GigabitEthernet1/0/5
ip access-group IP-PREAUTH-ACL in
trust device cisco-phone
snmp trap mac-notification change added
snmp trap mac-notification change removed
auto qos voip cisco-phone
source template Test_Template
spanning-tree portfast
service-policy input AutoQos-4.0-CiscoPhone-Input-Policy
service-policy output AutoQos-4.0-Output-Policy
end
我最初的想法是,我必须为每个接口启用一个这些 snmp oid。希望可以用更简单的方法来完成。
任何帮助将不胜感激。
干杯!