在哪里可以找到当前分配给 logbuffer 的内存量?

网络工程 思科 转变 路由器 日志记录 记忆
2022-02-27 16:58:20

你知道在哪里可以检查, logbuffer当前正在使用多少内存?

some-switch#show log | i Buffer|Trap|udp
    Buffer logging:  level debugging, 2268 messages logged, xml disabled,
    Trap logging: level notifications, 1272 message lines logged
        Logging to xx.xx.xx.xx  (udp port 514,  audit disabled,
Log Buffer (50000 bytes):

我很难找到用于此的确切过程:

some-switch#show processes memory sorted | inc log|Pool|Allo
Processor Pool Total:   73899224 Used:   28296368 Free:   45602856
      I/O Pool Total:   14680064 Used:   12240012 Free:    2440052
Driver te Pool Total:    1048576 Used:         40 Free:    1048536
 PID TTY  Allocated      Freed    Holding    Getbufs    Retbufs Process
 286   0     541580     525008      15608       4536          0 Syslog
 188   0        180        180       7052          0          0 REP Topology cha
 273   0          0          0       7052          0          0 Syslog Traps
   5   0    4277172   86430832       7052    2711884   53732884 Pool Manager

预先感谢您的建议。

1个回答

您正在尝试使用错误的命令。您显示的是进程内存 ( show processes),而不是缓冲内存。用命令显示缓冲存储器show memory就像是:

show memory allocating-process | i logger

该命令显示我的路由器中的日志记录缓冲区。请注意,缓冲区是在路由器初始化期间分配的。