6-19
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 6 Programmability
Using ODM Models
Enabling the Polling Mode
This section contains sample RPCs to check the current polling mode, to enable or change it, and to
change the polling interval.
Example: Verifying the Currently Polling Mode of the ODM Models
In the example below, polling is enabled. (In the output section, the polling-enable parameter is set to
true).
Input
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter>
<cisco-odm xmlns="http://cisco.com/yang/cisco-odm">
<polling-enable/>
</cisco-odm>
</filter>
</get>
</rpc>
Output
NETCONF RETURN
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<data>
<cisco-odm xmlns="http://cisco.com/yang/cisco-odm">
<polling-enable>true</polling-enable>
</cisco-odm>
</data>
</rpc-reply>
Example: Enabling or Changing the Polling Mode of the ODM Models
Input
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<cisco-odm xmlns="http://cisco.com/yang/cisco-odm">
<polling-enable>true</polling-enable>
</cisco-odm>
</config>
</edit-config>
</rpc>
Output
NETCONF RETURN
--------------
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<ok/>
</rpc-reply>
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...