Buffer Histogram Data Access and Collection
After active buffer monitoring is enabled, the device maintains 70 minutes of data—the first 60 minutes (0
to 60 minutes) in the log and another 60 minutes (10 to 70 minutes) in memory.
You can access buffer histogram data using several methods:
• You can access it from the system memory using show commands.
• You can integrate the Active Buffer Monitoring feature with Cisco NX-OS Python scripting to collect
historical data by copying the data to a server regularly.
• You can access the buffer histogram data using an XML interface.
• You can configure Cisco NX-OS to log a message in the syslog whenever the buffer occupancy exceeds
the configured threshold.
Configuring Active Buffer Monitoring
If you use NXAPI over the front panel port, you must increase the CoPP policy (for http) to allow 3000 PPS
traffic so that there is no packet drop and the CLIs with a larger output return within the expected time.
Note
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Enables the hardware profile buffer for either
unicast or multicast traffic.
switch(config)# hardware profile buffer
monitor {unicast | multicast}
Step 2
Specifies to generate a syslog entry when the
specified maximum buffer size is exceeded. The
switch(config)# hardware profile buffer
monitor {unicast | multicast} threshold
threshold-value
Step 3
range is from 384 to 6144 kilobytes with 384
kilobyte increments. The default is 90 percent
of the total available shared buffer.
Use the logging level mtc-usd5
command to display the active buffer
monitoring threshold exceed system
logging.
Note
Specifies to sample data at the specified
interval. The range is from 10 to 20000000
switch(config)# hardware profile buffer
monitor {unicast | multicast} sampling
sampling-value
Step 4
nanoseconds. The default sampling value is 4
milliseconds.
Saves the change persistently through reboots
and restarts by copying the running
configuration to the startup configuration.
(Optional) switch(config)# copy
running-config startup-config
Step 5
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
182
Configuring Active Buffer Monitoring
Buffer Histogram Data Access and Collection