88

AT-IFS802SP-80 User Manual

 

 

SNMP Commands Set

 

 

 

 

 

 

 

Netstar Commands

Level

Description

Example

 

 

 

 

 

 

 

 

snmp system-name

G

Set SNMP agent system

switch(config)#snmp system-name l2switch

 

 

[System Name]

name

 

 

 

 

 

 

 

 

 

 

 

 

snmp system-location

G

Set SNMP agent system

switch(config)#snmp system-location lab

 

 

[System Location]

 

location

 

 

 

snmp system-contact

G

Set SNMP agent system

switch(config)#snmp system-contact

 

 

[System Contact]

contact

where

 

 

 

 

 

 

 

 

 

 

 

snmp agent-mode

G

Select the agent mode of

switch(config)#snmp agent-mode v1v2cv3

 

 

[v1v2cv3v1v2cv3]

SNMP

 

 

 

 

 

 

snmp community-

 

 

 

 

 

strings [Community]

G

Add SNMP community

switch(config)#snmp community-strings

 

 

right

string.

public right rw

 

 

 

 

 

[RO/RW]

 

 

 

 

 

snmp-server host

 

 

switch(config)#snmp-server host

 

 

 

 

192.168.1.50 community public trap-

 

 

[IP address]

 

 

 

 

 

Configure SNMP server

version v1

 

 

community

 

 

 

G

host information and

(remove)

 

 

[Community-string]

 

 

 

community string

Switch(config)#

 

 

trap-version

 

 

 

 

 

no snmp-server host

 

 

[v1v2c]

 

 

 

 

 

 

192.168.1.50

 

 

 

 

 

 

 

 

 

 

 

 

 

snmpv3 context-name

G

Configure the context name

switch(config)#snmpv3 context-name Test

 

 

[Context Name ]

 

 

 

 

 

snmpv3 user

 

 

 

 

 

[User Name]

 

 

 

 

 

group

 

Configure the userprofile

 

 

 

[Group Name]

 

switch(config)#snmpv3 user test01 group

 

 

G

for SNMPV3 agent. Privacy

 

 

password

G1 password AuthPW PrivPW

 

 

 

password could be empty.

 

 

[Authentication

 

 

 

 

 

 

 

 

 

Password] [Privacy

 

 

 

 

 

Password]

 

 

 

 

 

snmpv3 access

 

 

 

 

 

context-name

 

 

 

 

 

[Context Name ]

 

 

 

 

 

group

 

 

 

 

 

[Group Name ]

 

 

 

 

 

security-level

 

 

switch(config)#snmpv3 access context-

 

 

[NoAuthNoPrivAuth

 

Configure the access table

 

 

G

name Test group G1 security-level AuthPriv

 

 

NoPrivAuthPriv]

 

of SNMPV3 agent

match-rule Exact views V1 V1 V1

 

 

match-rule

 

 

 

 

 

 

 

 

 

[ExactPrifix]

 

 

 

 

 

views

 

 

 

 

 

[Read View Name]

 

 

 

 

 

[Write View Name]

 

 

 

 

 

[Notify View Name]

 

 

 

 

Page 92
Image 92
Allied Telesis AT-IFS802SP V1v2cv3v1v2cv3, Strings Community, Community-string, Trap-version, Context Name, User Name