
Chapter 36 System Remote Management
ZyWALL (ZLD) CLI Reference Guide
304
36.8.4 SNMP Commands Examples
The following command sets a service control rule that allowed the computers with the IP
addresses matching the specified address object to access the specified zone using SNMP
service.
The following command sets the password (secret) for read-write (
rw) access.
The following command sets the IP address of the host that receives the SNMP notifications to
172.23.15.84 and the password (sent with each trap) to qwerty.
[no] snmp-server port <1..65535> Sets the SNMP service port number. The no
command resets the SNMP service port number
to the factory default (161).
snmp-server rule {rule_number|append|insert
rule_number} access-group {ALL|address_object}
zone {ALL|zone_object} action {accept|deny}
Sets a service control rule for SNMP service.
address_object: The name of the IP address
(group) object. You may use 1-31 alphanumeric
characters, underscores(
_), or dashes (-), but the
first character cannot be a number. This value is
case-sensitive.
zone_object: The name of the zone. For the
ZyWALL USG 300 and above, use up to 31
characters (a-zA-Z0-9_-). The name cannot start
with a number. This value is case-sensitive.
The ZyWALL USG 100 and 200 models use pre-
defined zone names like DMZ, LAN1, SSL VPN,
WLAN, IPSec VPN, OPT, and WAN.
snmp-server rule move rule_number to rule_number Changes the index number of a service control
rule.
no snmp-server rule rule_number Deletes a service control rule for SNMP service.
show snmp status Displays SNMP Settings.
Table 171 Command Summary: SNMP (continued)
COMMAND DESCRIPTION
Router# configure terminal
Router(config)# snmp-server rule 11 access-group Example zone WAN action
accept
Router# configure terminal
Router(config)# snmp-server community secret rw
Router# configure terminal
Router(config)# snmp-server host 172.23.15.84 qwerty
Komentáře k této Příručce