snmpv3安全级别

Syntax

snmpv3安全级别{auth | auth-privacy} no snmpv3 security-level {auth | auth-privacy}

描述

Configures the SNMPv3 security level. The security level determines which SMNPv3 users defined by the commandsnmpv3用户are able to connect.

The没有form of this command changes the security level as follows:

  • 没有snmpv3安全级别auth: Sets the security level toauth-privacy.
  • 没有snmpv3安全级别auth-privacy: Sets the security level to no authentication or privacy, allowing any SNMP user to connect.

Command context

config

Parameters

auth

SNMPv3 users that support authentication, or authentication and privacy are allowed.

auth-privacy

Only SNMPv3 users with both authentication and privacy are allowed. This is the highest level of SNMPv3 security. Default.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Setting the SNMPv3 security level to authentication and privacy:

switch(config)#snmpv3安全级别auth-privacy

Setting the SNMPv3 security level to authentication only:

switch(config)#snmpv3安全级别auth

Setting the SNMPv3 security level to no authentication and no privacy:

switch(config)#没有snmpv3安全级别auth-privacy

Restoring the default SNMPv3 security level to authentication and privacy:

switch(config)#没有snmpv3安全级别auth