Configuring cpu monitoring – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 185

Network OS NETCONF Operations Guide
153
53-1003231-02
Resource monitoring
12
</memory>
</threshold-monitor>
</threshold-monitor-hidden>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1109" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Configuring CPU monitoring
To configure CPU monitoring, perform the following steps.
1. Issue the <edit-config> RPC to configure the <threshold-monitor-hidden> node in the
urn:brocade.com:mgmt:brocade-threshold-monitor namespace.
2. Under the <threshold-monitor-hidden> node, include the <threshold-monitor>/<Cpu>
hierarchy of node elements.
3. Under the <Cpu> node, include the following leaf elements to configure CPU monitoring.
a. In the <poll> element, specify the time in seconds after which the system monitor will poll
the resource usage. Range is 10 through 3600. Default is 120.
b. In the <retry> element, specify the number of retries that the system monitor takes before
triggering an action. Range is 1 through 100. Default is 3.
c. In the <limit> element, specify the usage limit as a percentage of available resources.
Range is 0 through 80. Default is 60.
d. In the <actions> element, specify the action the system monitor triggers when a threshold
is crossed. Specify “raslog” to send a RASlog message, “snmp” to issue an SNMP trap,
“all” to send a RASlog message and issue an SNMP trap, or “none” to do nothing. Default
is none.
The following example configures CPU monitoring.
<rpc message-id="1110" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<threshold-monitor-hidden
xmlns="urn:brocade.com:mgmt:brocade-threshold-monitor">
<threshold-monitor>
<Cpu>
<poll>30</poll>
<retry>3</retry>
<limit>75<limit>
<actions>all</actions>
</Cpu>
</threshold-monitor>
</threshold-monitor-hidden>
</config>
</edit-config>
</rpc>