beautypg.com

Snmp commands set – American Fibertek SM9p User Manual

Page 38

background image

30

static hwaddr

[MAC]

MAC address table of

interface (static)

fastEthernet 2

switch(config-if)#no

mac-address-table static hwaddr

000012345678

no mac-address-table

filter hwaddr

[MAC]

G

Remove an entry of

MAC address table

(filter)

switch(config)#no

mac-address-table filter hwaddr

000012348678

no mac-address-table

G

Remove dynamic entry

of MAC address table

switch(config)#no

mac-address-table

SNMP Commands Set

Netstar Commands

Level Description

Example

snmp system-name

[System Name]

G

Set SNMP agent

system name

switch(config)#snmp

system-name l2switch

snmp system-location

[System Location]

G

Set SNMP agent

system location

switch(config)#snmp

system-location lab

snmp system-contact

[System Contact]

G

Set SNMP agent

system contact

switch(config)#snmp

system-contact where

snmp agent-mode

[v1v2c|v3|v1v2cv3]

G

Select the agent mode

of SNMP

switch(config)#snmp agent-mode

v1v2cv3

snmp

community-strings

[Community]

right

[RO/RW]

G

Add SNMP community

string.

switch(config)#snmp

community-strings public right

rw

snmp-server host

[IP address]

community

[Community-string]

trap-version

G

Configure SNMP

server host information

and community string

switch(config)#snmp-server host

192.168.1.50 community public

trap-version v1

(remove)

Switch(config)#