[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

SNMP Configuration Statement Hierarchy

To configure SNMP, use the following statements at the [edit snmp] hierarchy level. Statements exclusively for J-series and SRX-series devices running JUNOS software are shown in bold font and are documented in this chapter.

Shared JUNOS statements in the snmp hierarchy are shown in normal font and are documented in the JUNOS Network Management Configuration Guide.

snmp {
client-list list-name;
community community-name {
authorization (read-only | read-write);
client-list-name client-list-name;
clients {
address < restrict>;
}
routing-instances routing-instances {
client-list-name client-list-name ;
clients {
address < restrict>;
}
}
view view-name ;
}
contact contact-information ;
description description ;
engine-id {
(local engine-id | use-default-ip-address | use-mac-address);
}
filter-duplicates;
health-monitor {
falling-threshold percentage ;
interval seconds;
rising-threshold percentage ;
}
interface [ interface-names ];
location location ;
logical-system-trap-filter;
name system-name ;
nonvolatile {
commit-delay seconds ;
}
rmon {
alarm index {
description 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 ;
rising-threshold integer ;
sample-type (absolute-value | delta-value);
startup-alarm (falling-alarm | rising-alarm | rising-or-falling-alarm);
syslog-subtag text-string ;
variable oid-variable ;
}
event index {
community community-name ;
description description ;
type (log | log-and-trap | none | snmptrap);
}
}
routing-instance access {
access-list {
routing-instance-name ;
}
}
traceoptions {
file filename <files number > <match regular-expression >
<size maximum-file-size > <world-readable | no-world-readable>;
flag flag ;
}
trap-group group-name {
categories {
authentication;
chassis;
configuration;
link;
remote-operations;
rmon-alarm;
routing;
services;
sonet-alarms {
alarm-name ;
}
startup;
vrrp-events;
}
destination-port port-number ;
routing-instance instance-name ;
targets {
address ;
}
version (all | v1 | v2);
}
trap-options {
agent-address outgoing-interface;
routing-instances instance-name {
source-address address ;
}
source-address address ;
}
v3 {
notify notify-name {
tag tag-name ;
type (inform | trap);
}
notify-filter notify-filter-name {
oid oid-name <exclude | include>;
}
snmp-community community-index {
community-name community-name ;
context context ;
security-name security-name ;
tag tag-name ;
}
target-address target-address-name {
address address ;
address-mask address-mask ;
port port-number ;
retry-count number ;
routing-instance instance-name ;
tag-list tag-list ;
target-parameters parameter-name ;
timeout seconds ;
}
target-parameters target-parameters-name {
notify-filter notify-filter-name ;{
parameters {
message-processing-model (v1 | v2c | v3);
security-level (authentication | none | privacy);
security-model (usm | v1 | v2c);
security-name security-name ;
}
}
usm {
local-engine {
user user-name {
authentication-md5 {
authentication-password password ;
}
authentication-none;
authentication-sha {
authentication-password password ;
}
privacy-3des {
privacy-password password ;
}
privacy-aes128 {
privacy-password password ;
}
privacy-des {
privacy-password password ;
}
privacy-none;
}
}
remote-engine {
user user-name {
authentication-md5 {
authentication-password password ;
}
authentication-none;
authentication-sha {
authentication-password password ;
}
privacy-3des {
privacy-password password ;
}
privacy-aes128 {
privacy-password password ;
}
privacy-des {
privacy-password password ;
}
privacy-none;
}
}
}
vacm {
access {
group group-name {
context-prefix prefix {
security-model (any | usm | v1 | v2c) {
security-level (authentication | none | privacy) {
context-match (exact | prefix);
notify-view notify-view-name ;
read-view read-view-name ;
write-view write-view-name ;
}
}
}
default-context-prefix {
security-model (any | usm | v1 | v2c) {
security-level (authentication | none | privacy) {
context-match (exact | prefix);
notify-view notify-view-name ;
read-view read-view-name ;
write-view write-view-name ;
}
}
}
}
}
security-to-group {
security-model (usm | v1 | v2c) {
security-name security-name {
group group-name ;
}
}
}
}
}
view view-name {
oid oid-name {
<exclude | include>;
}
}
}
}

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]