ERS 8800 - log rotate pcmcia


  • Participator
  • 14 replies
Hi,

I´m configuring logging to PCMCIA in ERS8800 release 7.X following these steps:

1.- enable logging to pcmia

config bootconfig flags logging true

2.- configure parameters

config bootconfig logfile 500 16000 90

But I can´t find how to make the log files rotate, Is this possible? How to?

Regards,

EF

7 replies

Ok, I understand that my idea of rotate logs in the PCMCIA itself is not possible.

Thanks all.

EF
Userlevel 1
EF wrote:


This is my problem, there isn´t possibility to transfer file to remote host, so I would like that the logs were rotate itself in the PCMCIA itself, is this possible or when it reach the pecentage of ocupaccy defined (for example 90%) chassis stops to log ?

Regards,

EF

SMP rotates logs written to DRAM. When you reach a defined treshold for PCMCIA and the log file cannot be transfered to a remote host the switch generates a trap stops logging to PCMCIA and continues logging to DRAM.
This is my problem, there isn´t possibility to transfer file to remote host, so I would like that the logs were rotate itself in the PCMCIA itself, is this possible or when it reach the pecentage of ocupaccy defined (for example 90%) chassis stops to log ?

Regards,

EF
Userlevel 1
As you already stated. You can specify minimum free space available on PCMCIA, maximum file size and percentage amount of memory for logs on PCMCIA. These criteria trigger file transfer to the remote server. After the log file is succesfully transfered to a remote host the switch deletes the log on PCMCIA and starts logging to a new file which file name is incremented by 1.

You can setup up to 10 remote servers.
logging transferFile <1-10> address [/code]
I believe it will stop logging to pcmcia with the below message:
SW INFO Logging to PCMCIA stopped
Thanks, I know this, but imagine that the PCMCIA reach 90% of space when reach the log file XXXXX.100, then, what happens? Does chassis stop logging in the PCMCIA? Does chassis oerwrite the first file (.000)? Does chassis delete the oldest file and continue logging in new one (XXXXX.101)?

Regards,

EF
PCMCIA logs are automatically created once the file is full. It starts with a .000 extension and increments on the next file, so .001, etc.

Reply