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

運用管理の設定

ドキュメント内 NS-2240シリーズ_取扱説明書-10 (ページ 149-155)

4 章

4.7 運用管理の設定

4.7.1 SNTPクライアントの設定

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

(c)NS-2240# configure↵

(c)NS-2240(conf)# set sntp server 172.16.1.1↵ (c)NS-2240(conf)# set sntp polltime 900↵ (c)NS-2240(conf)# enable sntp↵

(c)NS-2240(conf)# exit↵

システムソフトウェアVersion1.7からSNTPサーバは最大2台まで登録できます。

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

(c)NS-2240# 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 : 2012/06/05 20:17:10 access result : OK

<secondary server>

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

本コマンドの表示形式はシステムソフトウェアVersion1.7で大きく変更しています。

4章 各種設定

4.7.2 SNMPエージェントの設定

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

SNMPエージェントを有効にします。

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

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

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

(c)NS-2240# configure↵

(c)NS-2240(conf)# set community 1 name public view ro manager 172.16.1.1↵ (c)NS-2240(conf)# set community 2 name public view ro manager 172.16.1.2↵ (c)NS-2240(conf)#

以前はSNMP Version1のみの対応でしたが、システムソフトウェアVersion1.4よりSNMP

Version2cに対応しました。上記コマンドを設定して「(4) SNMPエージェントを実行」を

有効にすると、SNMPサーバからのVersion1/Version2cのいずれのGet要求にも応答しま す。

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

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

SNMPトラップの送信先に172.16.1.1、トラップのコミュニティにpublicを設定するには、

下記のコマンドを実行します。

(c)NS-2240# configure↵

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

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

以前はSNMP Version1形式のトラップのみの対応でしたが、システムソフトウェア

Version1.4よりSNMP Version2形式のトラップに対応し、本装置が送信するトラップのバ ージョン形式を指定できます。バージョン形式を指定しない場合はSNMP Version1形式の トラップが送信されます。

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

SNMPの管理情報(設置場所,連絡先)を設定するには、set snmp locationコマンド,set snmp contactコマンドを実行します。設置場所に“Server Room in TOKYO”、連絡先に

Administrator 03-1234-7777”を設定するには、下記のコマンドを実行します。

(c)NS-2240# configure↵

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

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

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

(c)NS-2240# configure↵

(c)NS-2240(conf)# enable snmp↵ (c)NS-2240(conf)#

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

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

トラップ 設定値

Coldstart Trap ON

Authentication Failure Trap ON

Serial DSR Trap ON (全てのシリアルポートを監視)

Link Trap ON

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

(c)NS-2240(conf)# configure↲

(c)NS-2240(conf)# set snmp coldstarttrap off↲ (c)NS-2240(conf)# set snmp authentrap on↲ (c)NS-2240(conf)# set snmp linktrap on↲

(c)NS-2240(conf)# set snmp tty 1-32 dsrtrap on↲ (c)NS-2240(conf)# set snmp tty 11 dsrtrap off↲ (c)NS-2240(conf)# set snmp tty 12 dsrtrap off↲ (c)NS-2240(conf)# enable snmp↲

(c)NS-2240(conf)# exit↲

シリアルポートの範囲を指定するTTYリストは、システムソフトウェアVersion1.1 で追加された機能です。

4章 各種設定

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

(c)NS-2240# show snmp↲

status : enable

location : "Server Room in TOKYO"

contact : "Administrator 03-1234-5678"

linktrap : on authentrap : on coldstarttrap : off

dsrtrap(tty1-8) : on on on on on on on on dsrtrap(tty9-16) : on on off off on on on on dsrtrap(tty17-24) : on on on on on on on on dsrtrap(tty25-32) : on on on on on on on on --- 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-2240#

show snmpコマンドに含まれるトラップのVersionは、システムソフトウェアVersion1.4 で追加された項目です。

4.7.3 SYSLOGクライアントの設定

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

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

(c)NS-2240# configure↲

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

(c)NS-2240(conf)# enable syslog↲ (c)NS-2240(conf)# exit↲

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

(c)NS-2240# show syslog↲ Syslog Status:enable

No. Syslog Host Portlog-Facility Syslog-Facility --- 1 172.16.1.1 local0 local1

(c)NS-2240#

4.7.4 温度センサの設定

温度センサはNS-2240-48/48Dにのみ搭載されています。工場出荷状態から温度センサは 動作しており、特に設定をしなくても温度は取得できます。

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

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

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

(c)NS-2240# configure↲

(c)NS-2240(conf)# set temperature adjust 10↲ (c)NS-2240(conf)# exit↲

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

(c)NS-2240# show temperature↲

<temperature information>

Current temp : 24c

(Sensor : 34c / Adjust : -10 ) (c)NS-2240#

本機能はNS-2240-48/48Dにのみ搭載しており、システムソフトウェアVersion1.5以降で 利用できます。

4章 各種設定

4.7.5 タイムゾーンの設定

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

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

タイムゾーンの工場出荷値はTokyoです。

(c)NS-2240# show timezone↲ Timezone is “Tokyo”

(c)NS-2240# show timezone list H↲ : 省略

Hongkong Honolulu : 省略

(c)NS-2240# configure↲

(c)NS-2240(conf)# set timezone Hongkong↲ (c)NS-2240(conf)# exit↲

(c)NS-2240# reboot↲

本機能はシステムソフトウェアVersion1.7.1以降で利用できます。

注意 (1) 起動から設定を読み込むまで、前回設定されていたタイムゾーンで時間が 表示されます。

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

(3) 起動時のSystem Up TimeはUTC+9時間表示に固定されています。

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

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

ドキュメント内 NS-2240シリーズ_取扱説明書-10 (ページ 149-155)