4 Command Line Interface

Example

Console#show snmp

SNMP Agent: enabled

SNMP traps:

Authentication: enable

Link-up-down: enable

SNMP communities:

1.private, and the privilege is read-write

2.public, and the privilege is read-only

0 SNMP packets input

0 Bad SNMP version errors

0 Unknown community name

0 Illegal operation for community name supplied

0 Encoding errors

0 Number of requested variables

0 Number of altered variables

0Get-request PDUs

0Get-next PDUs

0Set-request PDUs

0 SNMP packets output

0 Too big errors

0 No such name errors

0 Bad values errors

0 General errors

0 Response PDUs

0 Trap PDUs

SNMP logging: disabled

Console#

snmp-server community

This command defines the SNMP v1 and v2c community access string. Use the no form to remove the specified community string.

Syntax

snmp-server community string [rorw] no snmp-server community string

string - Community string that acts like a password and permits access to the SNMP protocol. (Maximum length: 32 characters, case sensitive; Maximum number of strings: 5)

ro - Specifies read-only access. Authorized management stations are only able to retrieve MIB objects.

rw - Specifies read/write access. Authorized management stations are able to both retrieve and modify MIB objects.

Default Setting

public - Read-only access. Authorized management stations are only able to retrieve MIB objects.

4-102

Page 344
Image 344
SMC Networks SMC8150L2 manual Snmp-server community, Syntax