cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2025
Views
0
Helpful
1
Replies

How do you handle a large response from a command that overflows the buffer?

tproeber
Level 1
Level 1

When I am SSHed into a radio and execute the mca-status, the output is very long and is truncated.

action 040 cli command "mca-status" pattern "#"

Here is the output of this mca-status command.   The items I want to access are:

wlanTxRate=240.0

wlanRxRate=181.0

distance=0

With such a long output, can an Applet work?


XM.v5.5.6# mca-status

deviceName=2.4_AP.11,deviceId=DC:9F:DB:6A:A2:17,firmwareVersion=XM.ar7240.v5.5.6.17762.130528.1755,platform=Rocket M2,deviceIp=192.168.2.11

apMac=DC:9F:DB:6A:A2:17

wlanOpmode=ap

wlanConnections=3

wlanUptime=1233005

essid=2400

freq=2429

signal=-40

noise=-89

ccq=991

uptime=1233005

loadavg=0

memTotal=62012

memFree=42868

memBuffers=2340

ackTimeout=24

distance=0

lanIpAddress=0.0.0.0

wlanIpAddress=0.0.0.0

wlanTxRate=240.0

wlanRxRate=181.0

wlanTxLatency=1

wlanPolling=1

wlanPollingQuality=79

wlanPollingCapacity=63

lanRxBytes=1154446904

lanRxPackets=486877943

lanRxErrors=0

lanTxBytes=2283315134

lanTxPackets=62737619

lanTxErrors=0

lanPlugged=1

lanSpeed=100Mbps-Full

wlanRxBytes=2786682138

wlanRxPackets=69646125

wlanRxErrors=1

wlanTxBytes=491437955

wlanTxPackets=488901868

wlanTxErrors=0

wlanRxErrNwid=1210557

wlanRxErrCrypt=0

wlanRxErrFrag=0

wlanRxErrRetries=0

wlanRxErrBmiss=0

wlanRxErrOther=0

latitude=0.000000

longitude=0.000000

cfgCrc=1dee1a80

XM.v5.5.6#

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

How is it truncated?  You should be able to extract something using:

regexp "wlanTxRate=([0-9\.]+)" $_cli_result match txrate