snmp-server group

Use this command to create a SNMP group.

Use the no form of this command to remove the groups.

Command syntax

Copy
snmp-server group WORD version (1|2c) (context (all|WORD)|) (vrf (NAME|management)|)  snmp-server group WORD version 3 (auth|noauth|priv) (context (all|WORD)|) (vrf management|)
 no snmp-server group WORD (context (all|WORD)|) (vrf (NAME|management)|)

Parameters

WORD

Specify the snmp group name (Maximum 32 alphanumeric characters)

version

SNMP Version

1

SNMP v1

2c

SNMP v2c

3

SNMP v3 security level

noauth

No authentication and no privacy (noAuthNoPriv) security model: messages transmitted as clear text providing backwards compatibility with earlier versions of SNMP

auth

Authentication and no privacy (authNoPriv) security model: use message digest algorithm (MD5) or Secure Hash Algorithm (SHA) for packet authentication; messages transmitted in clear text

priv

Authentication and privacy (authPriv) security model: use authNoPriv packet authentication with Data Encryption Standard (DES) Advanced Encryption Standard (AES) for packet encryption

context

SNMP context name

WORD

SNMP context string (Maximum 32 alphanumeric characters)

all

All context name’s allowed for this group.

vrf management

Defines the management VRFClosed Virtual Routing and Forwarding instance.

vrf NAME

Specify the user-defined VRF instance name.

Default

None

Command Mode

Configure mode

Applicability

This command is introduced in OcNOS version 5.1. Added VRF NAME parameter in OcNOS version 6.5.3.

Examples

Copy
OcNOS#con t
OcNOS(config)#snmp-server context ctx1 vrf management
OcNOS(config)#snmp-server group grp1 version 3 auth context ctx1 vrf management
OcNOS(config)#snmp-server group grp3 version 2c context ctx2 vrf management