If a period "
.
" followed by a tab is now entered, NetDefendOS displays the current value for
Address
. If that value were the IPv4 list
10.6.58.10,192.168.2.1
then the unfinished command line
will automatically become:
gw-world:/> set Address IPAddress If1_ip Address=10.6.58.10,192.168.2.1
The displayed values can then be added to or changed with the backspace and back arrow keys
before completing the command.
Object Categories
It has been mentioned that objects are grouped by
type
, such as
IP4Address
. Types themselves
are grouped by
category
. The type
IP4Address
belongs to the category
Address
. The main use of
categories is in tab completion when searching for the right object type to use.
If a command such as
add
is entered and then the tab key is pressed, NetDefendOS displays all
the available categories. By choosing a category and then pressing tab again all the object types
for that category is displayed. Using categories means that the user has a simple way to specify
what kind of object they are trying to specify and a manageable number of options are displayed
after pressing tab.
Not all object types belong in a category. The object type
UserAuthRule
is a type without a
category and will appear in the category list after pressing tab at the beginning of a command.
The category is sometimes also referred to as the CLI
context
. The category does not have to be
entered for the command to be valid but always appears when using tab completion. As
discussed later, when commands are created automatically using CLI scripting, NetDefendOS
omits the category in the commands it creates.
Selecting Object Categories
With some categories, it is necessary to first choose a member of that category with the
cc
(change category) command before individual objects can be manipulated. This is the case, for
example, with routes. There can be more than one routing table, so when adding or
manipulating a route we first have to use the
cc
command to identify which routing table we are
interested in.
Suppose a route is to be added to the routing table
main
. The first command would be:
gw-world:/> cc RoutingTable main
gw-world:/main>
Notice that the command prompt changes to indicate the current category. The route can now
be added:
gw-world:/main> add Route Name=new_route1 Interface=lan Network=If1_net
To deselect the category, the command is
cc
on its own:
gw-world:/main> cc
gw-world:/>
The categories that require an initial
cc
command before object manipulation have a "/"
character following their names when displayed by a
show
command. For example:
RoutingTable/
.
Specifying Multiple Property Values
Chapter 2: Management and Maintenance
50
Summary of Contents for NetDefendOS
Page 30: ...Figure 1 3 Packet Flow Schematic Part III Chapter 1 NetDefendOS Overview 30 ...
Page 32: ...Chapter 1 NetDefendOS Overview 32 ...
Page 144: ...Chapter 2 Management and Maintenance 144 ...
Page 284: ...Chapter 3 Fundamentals 284 ...
Page 392: ...Chapter 4 Routing 392 ...
Page 419: ... Host 2001 DB8 1 MAC 00 90 12 13 14 15 5 Click OK Chapter 5 DHCP Services 419 ...
Page 420: ...Chapter 5 DHCP Services 420 ...
Page 573: ...Chapter 6 Security Mechanisms 573 ...
Page 607: ...Chapter 7 Address Translation 607 ...
Page 666: ...Chapter 8 User Authentication 666 ...
Page 775: ...Chapter 9 VPN 775 ...
Page 819: ...Chapter 10 Traffic Management 819 ...
Page 842: ...Chapter 11 High Availability 842 ...
Page 866: ...Default Enabled Chapter 13 Advanced Settings 866 ...
Page 879: ...Chapter 13 Advanced Settings 879 ...