Dell Networking OS9: スイッチでロギングを設定および管理する方法

Summary: この記事では、OS9を実行しているDellスイッチで基本ログを設定する方法について説明します。

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

目次

  1. 概要
  2. ロギングを有効にする
  3. ロギングを無効にする
  4. ロギングの設定の変更
  5. ログ ファイルの確認と表示


概要

Dell Networking OSは、イベント メッセージとエラー メッセージを使用してシステム内の変更を追跡します。
デフォルトでは、Dell Networking OSは次の場所にこれらのメッセージを記録します。

  • 内部バッファー
  • コンソールおよび端末回線
  • すべての構成済みSyslogサーバー


ロギングを有効にする

内部バッファのログメッセージは以下の通りです。
 
で始まるものを除くすべてのエラーメッセージ %BOOTUP (Message)は、内部バッファーに記録されます。
例えば:
%BOOTUP:RPM0:CP %PORTPIPE-INIT-SUCCESS: Portpipe 0 enabled

システムメッセージを指定されたsyslogサーバに送信するには、以下のコマンドを使用します。
 
コマンド パラメータ
console# configure 設定モードに入ります。
console(conf)# logging 192.168.1.1
 
オプションの送信元ポート指定を含むログ出力を送信する外部syslogサーバーのIPアドレスまたはホスト名を設定します。

syslogサーバは最大8台設定できます。
 

ロギングを無効にする

コマンド パラメータ
console# configure 設定モードに入ります。
console(conf)# no logging on コンソールを除き、すべてのロギングを無効にします。
console(conf)# no logging buffer ログバッファへのロギングを無効にします。
console(conf)# no logging monitor ターミナル行へのロギングを無効にします。
console(conf)# no logging console  コンソールのロギングを無効にします。
 

ロギングの設定の変更

重大度レベルや保存場所を変更して、システムロギングのデフォルト設定を変更することができます。
デフォルトでは、デバッグレベルまでのすべてのメッセージをログ記録します。つまり、すべてのシステムメッセージが記録されます。ロギングコマンドで重大度レベルを変更すると、記録するシステムメッセージ数を調整できます。

メモ: デバッグ出力を syslog サーバに適切に記録するには、デバッグ重大度レベル 7 のトラップを有効にする必要があります。バッファリングに設定されていても、トラップが適切に有効化されていない限り、syslogサーバに送信されません。
 
コマンド パラメータ
console# configure 設定モードに入ります。
console(conf)# logging buffered <0-7> バッファのログ重大度レベルを設定します。(デフォルト= 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> コンソールのログ レベルの重大度を設定します。(デフォルト= 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> モニターのログ レベルの重大度を設定します。(デフォルト= 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> トラップのロギングレベルの重大度を設定します。(デフォルト= 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> 履歴のログ レベルの重大度を設定します。(デフォルト = 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 size
warnings                Warning conditions                (severity=4)
console(conf)# logging buffered <40960-524288> ログバッファのサイズを設定します(デフォルト= 40960)。
console(conf)# logging history size <0-500> ログ履歴のサイズを設定します。  (デフォルト= 1)
console(conf)# service timestamps log datetime localtime スイッチで構成された時刻とタイム ゾーンと一致するタイムスタンプを設定します。
注:9.14.1.5ファームウェア以降では、これがデフォルトの構成です。9.14.1.5より前では、このコマンドで設定されていない限り、タイムスタンプはUTCです。  

 

ログの表示および確認

ログバッファの現在の内容とシステムのロギング設定を表示するには、EXEC特権モードで「show」ログコマンドを使用します。 
 
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.