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
- Conecte-se ao Huawei NE8000 via CLI ou interface web.
- Enter your administrative credentials.
2. Enter global configuration mode
VRP (Huawei)
system-view3. Configure the Log Buffer size
- Ajuste o tamanho do buffer para armazenar mais mensagens:
(O valor padrão é 512 KB, mas pode ser ajustado conforme necessário.)VRP (Huawei)
info-center logbuffer size 512
4. Enable or adjust the severity level of stored logs
- Configure o nível de severidade das mensagens armazenadas:
(Níveis incluemVRP (Huawei)
info-center logbuffer level informationaldebugging,informational,warning, entre outros.)
5. Enable storage of specific log types (optional)
- 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
- Exiba as mensagens armazenadas no buffer:
VRP (Huawei)
display logbuffer - Filtre os logs por tipo ou palavra-chave (opcional):
VRP (Huawei)
display logbuffer | include ERROR
7. Configure log retention time (optional)
- Defina por quanto tempo as mensagens permanecerão no buffer antes de serem substituídas:
(Tempo em segundos; o padrão é 600.)VRP (Huawei)
info-center logbuffer aging-time 600
8. Test the Log Buffer
- Generate system events, such as interface or policy changes, to verify that they are being recorded in the buffer.
- Review the messages in the buffer to ensure they are stored correctly.
9. Adjust or disable the Log Buffer (optional)
- To adjust the size or severity level, repeat the corresponding commands.
- Para desativar o Log Buffer:
VRP (Huawei)
undo info-center logbuffer enable
10. Save the Configuration
VRP (Huawei)
save