N-Tron 7014TX Switch User Manual


 
6/28/2007 page 107 of 145
Port Manager Commands
Get the link state of a given port
Command Name
port get linkstate
Description This command is used to get the present link state of a given port.
Whenever there is an active connection, link state (operational state) is
up; else link state is down.
Syntax port get linkstate <port-no>
Parameters
port-no
Port number. (1 ~ 14).
Examples
N-TRON/Admin#[1]> port get linkstate 3
Link state of [3] port is: [down]
N-TRON/Admin#[2]> port get linkstate 1
Link state of [1] port is: [up]
NOTES Check whether port-no is in the valid range. (1 ~ 14)
Get admin status of the port
Command Name
port get adminstatus
Description This command is used to the get present adminstatus of a given port.
Adminstatus is used to enable or disable the port operations even though
there are active connections.
Syntax port get adminstatus <port-no>
Parameters
port-no
Port number. (1 ~ 14).
Examples
N-TRON/Admin#[1]> port get adminstatus 4
Admin state of [4] port is: [enable]
N-TRON/Admin#[2]> port get adminstatus 9
Admin state of [9] port is: [disable]
NOTES Check whether port-no is in the valid range. (1 ~ 14)
Set admin status of a port
Command Name
port set adminstatus
Description This command is used to set the adminstatus of a given port to enable or
disable. If the adminstatus is disabled, the port cannot process the received
packets.
Syntax port set adminstatus <port-no><enable | disable>
Parameters
1. port-no
Port number. (1 ~ 14).
2. adminstatus
adminstatus is either enable or disable.
Examples
N-TRON/Admin#[1]> port set adminstatus 4 enable
N-TRON/Admin#[2]> port set adminstatus 8 disable
NOTES Check whether port-no is in the valid range. (1 ~ 14)