Dell Networking OS9: Como configurar e gerenciar o log em um switch
Summary: Este artigo descreve como configurar o log básico em um switch Dell executando o OS9.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Sumário
- Visão geral
- Habilitar registro
- Desabilitar registro
- Alterar as configurações de registro
- Verificando e exibindo arquivos de log
Visão geral
O sistema operacional Dell Networking rastreia as alterações no sistema usando mensagens de eventos e erros.
Por padrão, o Dell Networking OS registra essas mensagens em:
- O buffer interno
- Linhas de console e terminais
- Todos os servidores syslog configurados
Registre mensagens no buffer interno:
Todas as mensagens de erro, exceto aquelas que começam com
Por exemplo:
%BOOTUP (Message), são registrados no buffer interno.
Por exemplo:
%BOOTUP:RPM0:CP %PORTPIPE-INIT-SUCCESS: Portpipe 0 enabled
Para enviar mensagens de sistema a um servidor syslog especificado, use o comando a seguir.
| Comando | Parâmetros |
console# configure |
Entra no modo de configuração. |
console(conf)# logging 192.168.1.1 |
Defina o endereço IP ou o nome do host do servidor syslog externo para enviar a saída do log, incluindo a designação opcional da porta de origem. |
Você pode configurar até oito servidores syslog.
Desabilitar registro
| Comando | Parâmetros |
console# configure |
Entra no modo de configuração. |
console(conf)# no logging on |
Desative todos os registros, exceto no console. |
console(conf)# no logging buffer |
Desative o registro no buffer de registro. |
console(conf)# no logging monitor |
Desative o registro nas linhas de terminal. |
console(conf)# no logging console |
Desative o registro no console. |
Alterar as configurações de registro
Você pode alterar as configurações padrão de registro do sistema alterando o nível de gravidade e o local de armazenamento.
O padrão é registrar todas as mensagens até o nível de depuração, ou seja, todas as mensagens do sistema. Ao alterar o nível de gravidade nos comandos de registro, você controla o número de mensagens de sistema registradas.
NOTA: Para registrar corretamente a saída de depuração no servidor syslog, você deve habilitar uma trap com o nível de severidade de depuração 7. Mesmo que ele esteja definido como armazenado em buffer, ele ainda não é enviado para o servidor syslog, a menos que uma trap esteja habilitada corretamente.
NOTA: Para registrar corretamente a saída de depuração no servidor syslog, você deve habilitar uma trap com o nível de severidade de depuração 7. Mesmo que ele esteja definido como armazenado em buffer, ele ainda não é enviado para o servidor syslog, a menos que uma trap esteja habilitada corretamente.
| Comando | Parâmetros |
console# configure |
Entra no modo de configuração. |
console(conf)# logging buffered <0-7> |
Defina o nível de severidade do registro para o buffer. (padrão = 7)alerts Immediate action needed (severity=1)critical Critical conditions (severity=2)debugging Debugging messages (severity=7)emergencies System is unusable (severity=0)errors Error conditions (severity=3)informational Informational messages (severity=6)notifications Normal but significant conditions (severity=5)warnings Warning conditions (severity=4) |
console(conf)# logging console <0-7> |
Defina a severidade do nível de log para o console. (padrão = 7)alerts Immediate action needed (severity=1)critical Critical conditions (severity=2)debugging Debugging messages (severity=7)emergencies System is unusable (severity=0)errors Error conditions (severity=3)informational Informational messages (severity=6)notifications Normal but significant conditions (severity=5)warnings Warning conditions (severity=4) |
console(conf)# logging monitor <0-7> |
Defina a gravidade do nível de log para o monitor. (padrão = 7)alerts Immediate action needed (severity=1)critical Critical conditions (severity=2)debugging Debugging messages (severity=7)emergencies System is unusable (severity=0)errors Error conditions (severity=3)informational Informational messages (severity=6)notifications Normal but significant conditions (severity=5)warnings Warning conditions (severity=4) |
console(conf)# logging trap <0-7> |
Defina o nível de gravidade do registro para interceptações. (padrão = 6)alerts Immediate action needed (severity=1)critical Critical conditions (severity=2)debugging Debugging messages (severity=7)emergencies System is unusable (severity=0)errors Error conditions (severity=3)informational Informational messages (severity=6)notifications Normal but significant conditions (severity=5)warnings Warning conditions (severity=4) |
console(conf)# logging history <0-7> |
Definir a severidade do nível de log para o histórico. (padrão = 4)alerts Immediate action needed (severity=1)critical Critical conditions (severity=2)debugging Debugging messages (severity=7)emergencies System is unusable (severity=0)errors Error conditions (severity=3)informational Informational messages (severity=6)notifications Normal but significant conditions (severity=5)size Set history table sizewarnings Warning conditions (severity=4) |
console(conf)# logging buffered <40960-524288> |
Definir o tamanho do buffer de registro (padrão = 40960) |
console(conf)# logging history size <0-500> |
Defina o tamanho do histórico de logs. (padrão = 1) |
console(conf)# service timestamps log datetime localtime |
Defina o registro de data e hora para corresponder à hora e ao fuso horário configurados no switch. Nota: Após o firmware 9.14.1.5, essa é a configuração padrão. Antes da versão 9.14.1.5, o registro de data e hora está em UTC, a menos que configurado com este comando. |
Verificar e visualizar registros
Para exibir o conteúdo atual do buffer de registro e as configurações de registro do sistema, use o comando show logging (mostrar registro) no modo de privilégio EXEC.
console# show logging syslog logging: enabled Console logging: level Debugging Monitor logging: level Debugging Buffer logging: level Debugging, 40 Messages Logged, Size (40960 bytes) Trap logging: level Informational %IRC-6-IRC_COMMUP: Link to peer RPM is up %RAM-6-RAM_TASK: RPM1 is transitioning to Primary RPM. %RPM-2-MSG:CP1 %POLLMGR-2-MMC_STATE: External flash disk missing in 'slot0: '%CHMGR-5-CARDDETECTED: Line card 0 present%CHMGR-5-CARDDETECTED: Line card 2 present %CHMGR-5-CARDDETECTED: Line card 4 present %CHMGR-5-CARDDETECTED: Line card 5 present %CHMGR-5-CARDDETECTED: Line card 8 present %CHMGR-5-CARDDETECTED: Line card 10 present %CHMGR-5-CARDDETECTED: Line card 12 present %TSM-6-SFM_DISCOVERY: Found SFM 0 %TSM-6-SFM_DISCOVERY: Found SFM 1 %TSM-6-SFM_DISCOVERY: Found SFM 2 %TSM-6-SFM_DISCOVERY: Found SFM 3 %TSM-6-SFM_DISCOVERY: Found SFM 4%
Affected Products
Force10 S25N-S50N, Force10 S25-01-GE-24P, Force10 S25-01-GE-24T, Force10 S25-01-GE-24V, Force10 S50-01-GE-48T, PowerSwitch S3048-ON, PowerSwitch S4048-ON, PowerSwitch S4810P, PowerSwitch S4810-ON, PowerSwitch S4820T, PowerSwitch S5000, Force10 S50P
, Force10 S55T, Force10 S60-44T, PowerSwitch S6000, PowerSwitch S6000 ON, Force10 Z9000, Dell Networking Z9500, PowerSwitch S4048T-ON, PowerSwitch S5048F-ON, PowerSwitch S6010-ON, PowerSwitch S6100-ON, PowerSwitch Z9100-ON
...
Article Properties
Article Number: 000102563
Article Type: How To
Last Modified: 05 Jun 2025
Version: 7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.