Skip to content
Smarter by Design.Simpler for Business

sys-cmd memory status ​

sys-cmd memory status shows the memory and swap usage of the device in WEB-CLI as a single table with readable units (Mi, Gi). It is read-only; it is the first command to look at for memory complaints and before the clearing commands in the memory group.

Command Summary ​

TR7 WEB-CLI · sys-cmd memory
admin@TR7LBWAF01> sys-cmd memory
drop-all-caches  drop-page-cache  free-swap  status
 
admin@TR7LBWAF01> sys-cmd memory status
admin@TR7LBWAF01>  

The command has no field or parameter; if something is written after the word status, it gives a Command not found error.

How It Works ​

SubjectBehavior
ContextIt is not affected by the selected v-device and route table; it always shows the memory of the device itself.
ConfirmationIt does not ask for one; it does not change anything.
PipeThe output can be filtered with | or written to a file with to-file.
RecordingEvery run is written to the user logs.

What Is Seen in the Output? ​

The table contains the Mem (memory) and Swap rows.

ColumnMeaning
totalThe total memory or swap area
usedThe area used by the applications
freeThe area that is not used at all
sharedShared memory
buff/cacheThe area that the system keeps in cache to speed up disk access; it is given back to the applications when needed
availableThe estimated area that can be given to the applications without falling back to swap

Examples ​

TR7 WEB-CLI · A) The memory and swap usage
admin@TR7LBWAF01> sys-cmd memory status
admin@TR7LBWAF01>  
TR7 WEB-CLI · B) Only the swap row
admin@TR7LBWAF01> sys-cmd memory status | grep Swap
admin@TR7LBWAF01>  

Things to Know ​

  • A low free value is not a problem. The idle memory is used as cache; the value to really look at is the available column.
  • Swap usage. If in the Swap row used is high and available is low, the device is running short of memory. If swap is full although available is high, the pages left from a past load can be taken back into memory with memory free-swap.
  • The memory usage over time is followed from the system graphs in the management interface; this command gives the instantaneous value.