80
45B
SNMP Commands Set
Lantech
Commands
Command
Level
Description
Default
Example
snmp name
[station name]
Global
configuration
mode
Configure station name.
switch(config)#
snmp name
station1
snmp location
[station location]
Global
configuration
mode
Configure station location.
switch(config)#
snmp location
Taiwan
snmp contact
[station contact]
Global
configuration
mode
Configure station contact.
switch(config)#
snmp contact
H
H
snmp
community-string
s [Community]
right [RO/RW]
Global
configuration
mode
Add SNMP community string. public,
private
switch(config)#
snmp
community-strings public
right rw
no snmp
community-string
s [Community]
Global
configuration
mode
Remove the specified
community.
switch(config)#
no snmp
community-strings public
snmp-server host
[IP address]
community
[Community-strin
g]
Global
configuration
mode
Configure SNMP trap manager
information and community
string
switch(config)#
snmp-server
host 192.168.1.50 community
public
no snmp-server
host
[Host-address]
Global
configuration
mode
Remove the SNMP server
host.
switch(config)#
no snmp-server
host 192.168.1.50
show snmp
Privileged
EXEC
Show snmp configuration
switch#
show snmp
46B
DHCP Server Commands Set
Lantech
Commands
Command
Level
Description
Example
dhcpserver [ip
start] [ip number]
Global
configuration
mode
Enable dhcp server and add
lease entry.
switch(config)#
dhcpserver
192.168.1.5 5
Netmask [255.255.255.0]:
255.255.255.0