• 検索結果がありません。

運用管理の設定

ドキュメント内 NS-2250シリーズ_取扱説明書-01 (ページ 139-146)

4 章

4.7 運用管理の設定

4.7.1 SNTPクライアントの設定

SNTPクライアントを設定するには、下記のように set sntp serverコマンド,set sntp polltimeコマンドを実行します。SNTPサーバ(172.16.1.1)にポーリングタイマ900秒で 本装置の時刻を同期させる場合は、下記のコマンドを実行します。

SNTPサーバは最大2台まで登録できます。

(c)NS-2250# set sntp server 172.16.1.1↵

(c)NS-2250# set sntp polltime 900↵

(c)NS-2250# enable sntp↵

(c)NS-2250#

SNTPクライアントの状態は、show sntpコマンドで確認することができます。

(c)NS-2250# show sntp↵

<sntp information>

status : enable poll interval : 600

last sync server : 172.16.1.1

<primary server>

server address : 172.16.1.1

last access time : 2015/06/05 20:17:10 access result : OK

<secondary server>

server address : --- last access time : --- access result : --- (c)NS-2250#

4.7.2 SNMPエージェントの設定

SNMPエージェントを設定するには、SNMPサーバやSNMPトラップ等の設定を行った 後、SNMPエージェントを有効にします。

(1) SNMPサーバとコミュニティの設定

SNMPサーバを設定するには、set communityコマンドを実行します。

172.16.1.1のSNMPサーバからコミュニティpublicで、読み込み(RO)のアクセスを許可 する設定を行うには、下記のコマンドを実行します。

(c)NS-2250# set community 1 name public view ro manager 172.16.1.1↵

(c)NS-2250# set community 2 name public view ro manager 172.16.1.2↵

(c)NS-2250#

上記コマンドを設定して「(4) SNMPエージェントを実行」を有効にすると、SNMPサー バからのVersion1/Version2cのいずれのGet要求にも応答します。

(2) SNMPトラップの送信先の設定

SNMPトラップの送信先を設定するには、set trap managerコマンドを実行します。

SNMPトラップの送信先に172.16.1.1、トラップのコミュニティに public を設定するに は、下記のコマンドを実行します。

(c)NS-2250# set trap 1 manager 172.16.1.1 name public↵

(c)NS-2250# set trap 2 manager 172.16.1.2 name public version v2↵

(c)NS-2250#

SNMP Version2/Version1形式のトラップに対応しており、本装置が送信するトラップの

バージョン形式を指定できます。バージョン形式を指定しない場合はSNMP Version1形 式のトラップが送信されます。

(3) SNMPの管理情報の設定

SNMPの管理情報(設置場所,連絡先)を設定するには、set snmp locationコマンド,

set snmp contactコマンドを実行します。設置場所に“Server Room in TOKYO”、連絡先 に“Administrator 03-1234-7777”を設定するには、下記のコマンドを実行します。

(c)NS-2250# set snmp location “Server Room in TOKYO” ↵ (c)NS-2250# set snmp contact “Administrator 03-1234-7777” ↵ (c)NS-2250#

(4) SNMPエージェントの有効

SNMPエージェントを有効にするには、enable snmpコマンドを実行します。

(c)NS-2250# enable snmp↵

(c)NS-2250#

4章 各種設定

(5) 監視するトラップの変更

工場出荷時のSNMPエージェントが監視するトラップは、下表の値が設定されています。

トラップ 設定値

Coldstart Trap ON

Authentication Failure Trap ON

Link Trap ON

Power Trap ON

Bonding Active Switch Trap ON

Serial DSR Trap OFF

監視するトラップを変更するには、下記のように各トラップに対応したコマンドを実行し ます。

(c)NS-2250# set snmp coldstarttrap off↲

(c)NS-2250# set snmp authentrap on↲

(c)NS-2250# set snmp linktrap on↲

(c)NS-2250# set snmp powertrap on↲

(c)NS-2250# set snmp bondingactswtrap on↲

(c)NS-2250# set snmp tty 11 dsrtrap on↲

(c)NS-2250# set snmp tty 12 dsrtrap on↲

(c)NS-2250# enable snmp↲

(c)NS-2250#

SNMPエージェントの状態は、show snmpコマンドで確認できます。

(c)NS-2250# show snmp↲

status : enable

location : "Server Room in TOKYO"

contact : "Administrator 03-1234-5678"

linktrap : on powertrap : on authentrap : on coldstarttrap : off bondingactswtrap : on

dsrtrap(tty1-8) : off off off off off off off off dsrtrap(tty9-16) : off off on on off off off off dsrtrap(tty17-24) : off off off off off off off off dsrtrap(tty25-32) : off off off off off off off off --- trap configurations (1 entry) ---

<trap 1>

manager address : 172.16.1.1 community : public version : v1 <trap 2>

manager address : 172.16.1.2 community : public version : v2

--- community configurations (1 entry) --- <community 1>

community : public view : ro

manager address : 172.16.1.1 <community 2>

community : public view : ro

manager address : 172.16.1.2 (c)NS-2250#

4章 各種設定

4.7.3 SYSLOGクライアントの設定

SYSLOGクライアントを設定するには、set syslog hostコマンドを実行します。

SYSLOGサーバ(172.16.1.1)に、本装置のSYSLOGをファシリティlocal1、ポートログを ファシリティlocal0としてSYSLOGを転送する場合は、下記のコマンドを実行します。

(c)NS-2250# set syslog host 1 172.16.1.1 syslog_facility local1 portlog_facility local0↲

(c)NS-2250# enable syslog↲

(c)NS-2250#

SYSLOGクライアントの情報は、show syslogコマンドで確認できます。

(c)NS-2250# show syslog↲

Syslog Status:enable

No. Syslog Host Portlog-Facility Syslog-Facility ---

1 172.16.1.1 local0 local1

(c)NS-2250#

4.7.4 温度センサの設定

温度センサで装置内の温度を取得できます。

お お よ そ の 外 気 温 を 測 定 す る 目 的 で 温 度 セ ン サ に 補 正 値 を 設 定 す る 場 合 は 、set temperature adjustコマンドに減算する補正値を指定します。

補正値は0~20の範囲で指定でき、工場出荷値は0です。

以下の例は補正値に-10℃を設定する場合の例です。

(c)NS-2250# set temperature adjust 10↲

(c)NS-2250#

温度センサの温度や補正値の設定は、show environmentコマンドで確認できます。

(c)NS-2250# show environment↲

<Environment status>

Power information Power unit : AC Power 1 : ON Power 2 : OFF Temperature information Current temp : 39 deg C Sensor : 39 deg C Adjust : 0

(c)NS-2250#

4章 各種設定

4.7.5 タイムゾーンの設定

タイムゾーンを設定するにはset timezoneコマンドを実行します。

show timezone listコマンドで一覧表示されるタイムゾーン名を指定します。

タイムゾーンのデフォルト値はUTCです。

本装置は設定ファイルにset timezone Tokyoを設定することで、タイムゾーンをTokyo にしています。

(c)NS-2250# show timezone↲

Timezone is “Tokyo”

(c)NS-2250# show timezone list H↲

: 省略 Hongkong Honolulu : 省略

(c)NS-2250# set timezone Hongkong↲

(c)NS-2250# write↲

Do you really want to write internal & external startup1 [y/n] ? y↲

write external startup1 ...writing write internal startup1 ...writing (c)NS-2250# reboot↲

注意 (1) 起動から設定を読み込むまで、デフォルトのタイムゾーンであるUTCで時間が 表示されます。

(2) タイムゾーンを設定した後は必ず装置を再起動してください。

(3) 国によっては安全規格の取得が必要になる場合があります。

(4) 海外利用時は販売代理店もしくは弊社までご相談ください。

ドキュメント内 NS-2250シリーズ_取扱説明書-01 (ページ 139-146)