SNMP Configuration Tasks
To configure the SNMP server:
1.
Enable the SNMP server.
host1(config)#
snmp-server
2.
Configure at least one authorized SNMP community (SNMPv1/v2c) or user (SNMPv3),
which provides SNMP client access.
host1(config)#
snmp-server community boston view everything rw
host1(config)#
snmp-server user fred group private auth sha fred-password priv des
password
3.
(Optional) Set the server parameters—contact name and server location.
host1(config)#
snmp-server contact Bob Smith
host1(config)#
snmp-server location 3rdfloor
4.
(Optional) Reconfigure the maximum SNMP packet size.
host1(config)#
snmp-server packetsize 1000
5.
(Optional) Configure memory warning parameters.
host1(config)#
memory warning 80 70
6.
(Optional) Configure the method the router uses to encode the ifDescr and ifName
objects.
host1(config)#
snmp interfaces description-format common
7.
(Optional) Manage the interface sublayers (compress interfaces and control interface
numbering).
host1(config)#
snmp-server interfaces compress atmAal5
host1(config)#
snmp-server interface compress-restriction ifadminstatusdown
host1(config)#
snmp interfaces rfc1213 55000 100000
8.
(Optional) Configure the dynamic group parameters.
host1(config)#
snmp-server group grp1authpriv usm priv read grp1read write grp1write
notify grp1notify
9.
(Optional) Configure the dynamic view parameters.
host1(config)#
snmp-server view view1 1.3.6.1 included non-volatile
You can also set up SNMP traps and set up the router to collect bulk statistics. See
“Configuring Traps” on page 156 and “Collecting Bulk Statistics” on page 183.
Enabling SNMP
To enable the SNMP server, use the following command.
snmp-server
•
Use to enable SNMP server operation.
•
Example
Copyright © 2010, Juniper Networks, Inc.
148
JunosE 11.3.x System Basics Configuration Guide
Summary of Contents for JUNOSE 11.3
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 3 x System Basics Configuration Guide...
Page 24: ...Copyright 2010 Juniper Networks Inc xxiv JunosE 11 3 x System Basics Configuration Guide...
Page 32: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 3 x System Basics Configuration Guide...
Page 146: ...Copyright 2010 Juniper Networks Inc 116 JunosE 11 3 x System Basics Configuration Guide...
Page 166: ...Copyright 2010 Juniper Networks Inc 136 JunosE 11 3 x System Basics Configuration Guide...
Page 432: ...Copyright 2010 Juniper Networks Inc 402 JunosE 11 3 x System Basics Configuration Guide...
Page 488: ...Copyright 2010 Juniper Networks Inc 458 JunosE 11 3 x System Basics Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 494 JunosE 11 3 x System Basics Configuration Guide...
Page 554: ...Copyright 2010 Juniper Networks Inc 524 JunosE 11 3 x System Basics Configuration Guide...
Page 566: ...Copyright 2010 Juniper Networks Inc 536 JunosE 11 3 x System Basics Configuration Guide...
Page 588: ...Copyright 2010 Juniper Networks Inc 558 JunosE 11 3 x System Basics Configuration Guide...
Page 613: ...PART 3 Index Index on page 585 583 Copyright 2010 Juniper Networks Inc...
Page 614: ...Copyright 2010 Juniper Networks Inc 584 JunosE 11 3 x System Basics Configuration Guide...
Page 632: ...Copyright 2010 Juniper Networks Inc 602 JunosE 11 3 x System Basics Configuration Guide...