Huawei

How to Configure Log Buffer on Huawei NE8000: Step by Step

O Log Buffer no Huawei NE8000 armazena temporariamente os eventos e mensagens do sistema em memória. Essa configuração permite acesso rápido aos logs para diagnóstico e monitoramento, facilitando a solução de problemas.

Step-by-Step Guide to Configure the Log Buffer on Huawei NE8000

1. Access the device

  1. Conecte-se ao Huawei NE8000 via CLI ou interface web.
  2. Enter your administrative credentials.

2. Enter global configuration mode

VRP (Huawei)
system-view

3. Configure the Log Buffer size

  1. Ajuste o tamanho do buffer para armazenar mais mensagens:
    VRP (Huawei)
    info-center logbuffer size 512
    (O valor padrão é 512 KB, mas pode ser ajustado conforme necessário.)

4. Enable or adjust the severity level of stored logs

  1. Configure o nível de severidade das mensagens armazenadas:
    VRP (Huawei)
    info-center logbuffer level informational
    (Níveis incluem debugging, informational, warning, entre outros.)

5. Enable storage of specific log types (optional)

  1. Configure o registro de eventos específicos, como segurança ou sistema:
    VRP (Huawei)
    info-center source SECURITY channel logbuffer level informational info-center source SYSTEM channel logbuffer level warning

6. View logs in the buffer

  1. Exiba as mensagens armazenadas no buffer:
    VRP (Huawei)
    display logbuffer
  2. Filtre os logs por tipo ou palavra-chave (opcional):
    VRP (Huawei)
    display logbuffer | include ERROR

7. Configure log retention time (optional)

  1. Defina por quanto tempo as mensagens permanecerão no buffer antes de serem substituídas:
    VRP (Huawei)
    info-center logbuffer aging-time 600
    (Tempo em segundos; o padrão é 600.)

8. Test the Log Buffer

  1. Generate system events, such as interface or policy changes, to verify that they are being recorded in the buffer.
  2. Review the messages in the buffer to ensure they are stored correctly.

9. Adjust or disable the Log Buffer (optional)

  1. To adjust the size or severity level, repeat the corresponding commands.
  2. Para desativar o Log Buffer:
    VRP (Huawei)
    undo info-center logbuffer enable

10. Save the Configuration

VRP (Huawei)
save

Conclusion

A configuração do Log Buffer no Huawei NE8000 facilita o monitoramento e a solução de problemas ao armazenar mensagens importantes do sistema em memória. Com ele, você pode acessar rapidamente os eventos recentes e melhorar a gestão da sua rede.