
7
Switch Control
In order to switch input to output port 1 to 4 of a particular port block is achieved
by using following command.
$ osctl
osctl
osctl
osctl ----p
p
p
p {<port#/s> | <port_range> | <port_group>} <
{<port#/s> | <port_range> | <port_group>} <
{<port#/s> | <port_range> | <port_group>} <
{<port#/s> | <port_range> | <port_group>} <1
1
1
1||||2
2
2
2|3|4
|3|4
|3|4
|3|4> [
> [
> [
> [----t <secs>]
t <secs>]
t <secs>]
t <secs>]
Note that the “{}” (braces) groups options and “|” is equivalent to “or”. If the
options are in square brackets “[]” then it is optional.
Note: wherever you see
in_port# or port# they represent 1 of 4 port block of OS414.
For example
:
$ osct
osct
osct
osctl
l l
l ----p
p
p
p 4
4
4
4 1
1
1
1
switch input port 4 (port block 4) to output port 1 of same port block.
LED on output port 1 lids when this command is issued which confirms
that the input port is switched to out port 1.
$ osctl
osctl
osctl
osctl ----p "1 2 3"
p "1 2 3"
p "1 2 3"
p "1 2 3" 2
2
2
2
switch input ports 1, 2 and 3 to their corresponding output port 2. Note
that the double quote is required, without double quote the command will
fail.
$ osctl
osctl
osctl
osctl ----p
p
p
p "1
"1
"1
"1----4"
4"
4"
4" 1
1
1
1
switch ports 1, 2, 3 and 4 to corresponding output port 1 (range 1 to 4).
This comes in handy when you want to switch bunch of ports in order.
$ osctl
osctl
osctl
osctl ----p
p
p
p gp1
gp1
gp1
gp1 1
1
1
1
switch all ports in group "gp1" to corresponding output port 1. You will
have to create the group with “-c” option before using above command as
explained in “Port group Management” section.
$ osctl
osctl
osctl
osctl ----p
p
p
p 2
2
2
2 2
2
2
2 ----t 120
t 120
t 120
t 120
switch port 2 to output port 2 after 120 secs (delayed switching)
Summary of Contents for OS414-MM
Page 2: ...2 ...