efa inventory device threshold-monitor set
Set threshold monitor
settings.
Syntax
efa inventory device threshold-monitor set
[
--ip
device-ips
| --fabric
fabric-name
| --type
{
cpu | memory | bfd-session | lif | mac-table | vxlan-tunnel
} | --actions
{ all | none | raslog | snmp | loginfo
} |
--high-limit
percentage
| --low-limit
percentage
| --interval
seconds
| --retry
retry-interval
| --count
max-events
| -h, --help
]
Parameters
- --ip device-ips
- Specifies a comma-separated range of device IP addresses. For example:
10.1.1.13,10.1.1.50,10.1.1.101.
- --fabricfabric-name
- Specifies the name of the fabric.
- --typetype
- Specifies the type of threshold being configured. Valid types are cpu, memory,
bfd-session, lif, mac-table, and vxlan-tunnel
- --actionsactions
- Specifies the action to take upon exceeding the high-limit or low-limit. Valid actions are all, none, raslog, snmp, and loginfo. Loginfo is only valid for type cpu/memory. [all] Both RASLOG and SNMP trap will be generated. [none] No action will be taken. [raslog] RASLOG will be generated. [snmp] SNMP trap will be generated. [loginfo] Diagnostic data collection along with RASLOG.
- --high-limitpercentage
- Specifies the high limit threshold percentage. Valid values for type cpu is 0-95 with Default 50. Valid values for type memory is 0-95 with Default 70. Valid values for types bfd-session/lif/mac-table/vxlan-tunnel is 10-100 with Default 90.
- --low-limitpercentage
- Specifies the low limit threshold percentage. Not applicable for type cpu/memory. Valid values for types bfd-session/lif/mac-table/vxlan-tunnel is 10-99 with Default 70.
- --countmax-events
- Specifies the maximum number of event actions that can be taken in an interval. See interval. Valid values are 1-60 with Default 4. Valid for types bfd-session/lif/mac-table/vxlan-tunnel.
- --intervalseconds
- Specifies the interval for the threshold type. For type cpu/memory it specifies the polling interval, in seconds after which a sample will be taken. Valid values are 10-3600 seconds with default of 120 seconds. For types bfd-session/lif/mac-table/vxlan-tunnel it specifies the time interval, in seconds where a maximum number (count) of actions that can be taken. Valid values are 60-900 with Default 120.
- --retryretry-interval
- Specifies the number of polling interval retries that will be attempted (see interval) before desired action is taken. Only applicable for –type cpu/memory. Valid values are 1-100. The default retries is 3.
- -h, --help
- Help for set.
Examples
This example sets a cpu threshold-monitor to trigger an snmp event when a cpu
threshold of 80% is exceeded.
efa inventory device threshold-monitor set –-type cpu --ip 10.10.10.153-154
–-actions snmp -–high-limit 80 interval 60 retry 3
This example sets a mac-table threshold-monitor to trigger an snmp event when a
high-limit threshold of 80% is exceeded or a low-limit threshold of 50% is
exceeded.
efa inventory device threshold-monitor set –-type mac-table --fabric fabric1
–-actions snmp -–high-limit 80 –low-limit 50 interval 60 count 3