EasyManua.ls Logo

D-Link NetDefendOS - Page 49

D-Link NetDefendOS
912 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
broken into indented separate lines. In a console window they would appear as a single
continuous line which folds at the right margin.
For example, if the following command is typed:
gw-world:/> add IPRule
SourceInterface=If2
SourceNetwork=all-nets
DestinationInterface=If2
DestinationNetwork=all-nets
Action=Allow
Service=all_services
Na
If the tab key is now pressed, the letters Na will now be completed to become Name= because all
the mandatory parameters have already been entered.
Note: Rule names are recommended
Even when it is optional, it is recommended that a Name value is assigned to a rule. This
makes examining and understanding the configuration easier.
Getting the Default or Current Property Value
The period "." character before a tab can be used to automatically fill in the default value for an
object property in an Add command. For example:
gw-world:/> add LogReceiver LogReceiverSyslog log_example
Address=example_ip
LogSeverity=.<tab>
This will fill in the default value for LogSeverity:
gw-world:/> add LogReceiver LogReceiverSyslog example
Address=example_ip
LogSeverity=Emergency,Alert,Critical,Error,Warning,Notice,Info
This severity list can then be edited with the back arrow and backspace keys. A default value is
not always available. For example, the Action of an IP rule has no default.
This same sequence can be used to get the current property value in a Set command. For
example:
gw-world:/> set LogReceiver LogReceiverSyslog log_example Address=.<tab>
This will display the current value for the Address property.
Appending Property Values
Another usage of the period character before a tab is to automatically fill in the current value of
an object property in a command line. This is very useful when there is a need to append a new
value to a list of pre-existing values.
For example, the following unfinished command may have been typed:
gw-world:/> set Address IP4Address If1_ip Address=
Chapter 2: Management and Maintenance
49

Table of Contents

Related product manuals