Junos OS を実行しているデバイスで SNMP を構成する
デフォルトでは、Junos OS を実行しているデバイスで SNMP が無効になっています。ルーターまたはスイッチで SNMP を有効にするには、SNMP 設定ステートメントを[edit snmp]階層レベルに含める必要があります。
ここで定義されpublicたコミュニティーは、すべての MIB データに対する読み取りアクセス権を任意のクライアントに付与します。
完全な SNMP 機能を構成するには、次の[edit snmp]ステートメントを階層レベルで行います。
snmp {
community community-name {
authorization authorization;
client-list-name client-list-name;
view view-name;
}
contact contact;
description description;
interface [ interface-names ];
location location;
name name;
rmon {
alarm index {
description text-description;
falling-event-index index;
falling-threshold integer;
falling-threshold-interval seconds;
interval seconds;
request-type (get-next-request | get-request | walk-request);
rising-event-index index;
sample-type type;
startup-alarm alarm;
syslog-subtag syslog-subtag;
variable oid-variable;
}
}
file filename <files number> <size size> <world-readable
| no-world-readable> <match regular-expression>;
flag flag;
}
trap-group group-name {
destination-port port-number;
routing-instance instance;
version (all | v1 | v2);
}
}