ExtremeSwitching (VSP)

Expand all | Collapse all

ERS 8800 - log rotate pcmcia

  • 1.  ERS 8800 - log rotate pcmcia

    Posted 10-31-2018 09:53
    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



  • 2.  RE: ERS 8800 - log rotate pcmcia

    Posted 10-31-2018 09:59
    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.


  • 3.  RE: ERS 8800 - log rotate pcmcia

    Posted 10-31-2018 10:15

    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



  • 4.  RE: ERS 8800 - log rotate pcmcia

    Posted 10-31-2018 10:37
    I believe it will stop logging to pcmcia with the below message:
    SW INFO Logging to PCMCIA stopped


  • 5.  RE: ERS 8800 - log rotate pcmcia

    Posted 10-31-2018 15:32
    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


  • 6.  RE: ERS 8800 - log rotate pcmcia

    Posted 11-02-2018 06:08

    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


  • 7.  RE: ERS 8800 - log rotate pcmcia

    Posted 11-02-2018 06:58

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

    Thanks all.

    EF



  • 8.  RE: ERS 8800 - log rotate pcmcia

    Posted 11-02-2018 06:08
    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.