
6
To simply the operation, all functions are provided in a single command called “osctl”. osctl provides
3 major functions
1.
Network & Host configuration (allowed only in “root”)
2.
Switch Control & Status
3.
Port group Management
The following are the commands used to configure network.
1.
To configure static IP
#
osctl -i <ip> -m <mask> -g <gw>
2.
To use DHCP (dynamic IP)
#
osctl -D
3.
To configure hostname alone
#
osctl -h <hostname>
4.
To configure a DNS or Nameserver, you can use “-n” option of osctl.
#
osctl –n <dns_server_ip>
5.
To configure syslog server to receive FC811’s events
#
osctl –S <syslog_server_ip>
For details refer to installation section as these are explained in that section.
In order to switch ON or OFF particular a port or ports or a group you can use following command.
$
osctl -p {<port#/s> | <port_range> | <port_group>} <on|off> [-t <secs>]
Note that the “{}” (braces) groups options and “|” is equivalent to “or”. If the options are in square
brackets “[]” then it is optional. Wherever you see port# or in_port# they all the same and represents
one of 8 ports of FC811.
For example:
$
osctl -p 4 on
switch port 4 to ON. LED on port 4 of FC811 lids when this command is issued which
confirms that the port is switched ON.
$
osctl -p "1 2 3" on
Operation
Network & Host configuration
Switch Control
Содержание FC811
Страница 10: ...10 delete all groups in the database...
Страница 12: ...12...
Страница 18: ...18 Terminate telnet send exit r...