6-20
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
Example: Changing the Polling Interval of a Parser
In the example below, the polling interval of parser
parse.showArchive
is changed to 110000
miliseconds:
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">
<actions>
<action-name>parse.showArchive</action-name>
<polling-interval>110000</polling-interval>
</actions>
</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>
Displaying Supported Parsers and Polling Intervals
To retrieve information about all the supported parsers and their polling intervals, send the following
RPC:
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">
<actions>
<action-name/>
<polling-interval/>
<mode/>
</actions>
</cisco-odm>
</filter>
</get>
</rpc>
Output
NETCONF RETURN
--------------
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<data>
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...