Chapter 16: Unit Management (CLI)
Configuring SNMP (CLI)
This section includes:
•
Configuring SNMP (CLI)
•
Defining the SNMP Parameters
•
Displaying the SNMP Settings (CLI)
•
Configuring Trap Managers (CLI)
Configuring SNMP (CLI)
PTP 820G and PTP 820F supports SNMP v1, V2c, and v3. You can set community strings for access to IDUs.
PTP 820G and PTP 820F supports the following MIBs:
•
RFC-1213 (MIB II)
•
RMON MIB
•
MIB (proprietary)
Defining the SNMP Parameters (CLI)
The following commands are relevant for all SNMP versions.
To enable SNMP, enter the following command in root view:
root> platform security protocols-control snmp admin set <admin>
To specify the SNMP version, enter the following command in root view:
root> platform security protocols-control snmp version set <version>
To specify the SNMP read and write communities, enter the following command in root view:
root> platform security protocols-control snmpv1v2 set read-community
<read-community> write-community <write-community>
The following commands are relevant for SNMPv3.
To block SNMPv1 and SNMPv2 access so that only SNMPv3 access will be enabled, enter the following command in
root view:
root> platform security protocols-control snmp v1v2-block set <set-block>
To block SNMPv1 and SNMPv2 access so that only SNMPv3 access will be enabled, enter the following command in
root view:
root> platform security protocols-control snmp v1v2-block set <set-block>
To add an SNMPv3 user, enter the following command in root view:
root> platform security protocols-control snmp v3-authentication add v3-
user-name <v3-user-name> v3-user-password <v3-user-password> v3-security-
mode <v3-security-mode> v3-encryption-mode <v3-encryption-mode> v3-auth-
algorithm <v3-auth-algorithm> v3-access-mode <v3-access-mode>
(CLI)
phn-3965_006v002
Page 16-6
Configuring SNMP (CLI)