beautypg.com

H3C Technologies H3C S3100 Series Switches User Manual

Page 449

background image

Operation Manual – SNMP and RMON

H3C S3100-52P Ethernet Switch

Chapter 1 SNMP Configuration

1-4

Operation

Command

Description

Set system information

snmp-agent sys-info

{ contact sys-contact |
location

sys-location |

version

{ { v1 | v2c |

v3

}* | all } }

Required
By default, the contact

information for system

maintenance is "

Hangzhou H3C

Technologies.

Co.,Ltd.", the system

location is "Hangzhou

China", and the

SNMP version is

SNMPv3.

Direct

configu

ration

Set a

commun

ity name

snmp-agent
community

{ read |

write

} community-name

[ acl acl-number |
mib-view

view-name ]*

Set an

SNMP

group

snmp-agent group

{ v1

| v2c } group-name

[ read-view read-view ]

[ write-view write-view ]

[

notify-view

notify-view

] [ acl

acl-number

]

Set a

communi

ty name

and

access

permissi

on

Indirect

configu

ration

Add a

user to

an

SNMP

group

snmp-agent usm-user

{ v1 | v2c } user-name
group-name

[ acl

acl-number

]

Required

z

You can set an

SNMPv1/SNMPv2

C community

name through

direct

configuration.

z

Indirect

configuration is

compatible with

SNMPv3. The

added user is

equal to the

community name

for SNMPv1 and

SNMPv2C.

z

You can choose

either of them as

needed.

Set the maximum SNMP

packet size for SNMP agent

snmp-agent packet
max

-size byte-count

Optional
By default, the

maximum SNMP

packet size is 1,500

bytes.

Set the device engine ID

snmp-agent
local

-engineid engineid

Optional
By default, the device

engine ID is formed by

appending device

information to the

enterprise number.

Create/Update the view

information

snmp-agent mib

-view

{ included | excluded }
view

-name oid-tree

Optional
By default, the view

name is “ViewDefault”

and OID is 1.