The information contained in this document is subject to change. This document contains proprietary information, which is protected by copyright
laws. All rights are reserved. No part of this document may be photocopied, reproduced or translated to another language or program language
without prior written consent of RFI Engineering B.V.
RefGuide_U-routerNGW_v1.01.docx
Page: 37(
57)
13.7 Retrieving the Interfaces of the U-router NGW: ngw-client interface
When ngw-client is called with the ‘interface’ option, the command retrieves the status of the U-
router network connections. As example:
rfi@rfi-000102
:
~
$ ngw-client interface
+---------------------------------------------------------------------+
| INTERFACE |
+---------------------------------------------------------------------+
id : eth0
mac : 40:28:14:00:01:02
state : up
method : static
ip : 192.168.168.1
mask : 255.255.255.0
metric : 125
defaultGateway : 192.168.168.253
nameServer1 : 8.8.8.8
nameServer2 : 4.4.8.8
+---------------------------------------------------------------------+
| INTERFACE |
+---------------------------------------------------------------------+
id : wwan0
mac :
state : up
ip : 31.138.222.50
mask : 255.255.255.252
gateway : 31.138.222.49
metric : 25
+---------------------------------------------------------------------+
| INTERFACE |
+---------------------------------------------------------------------+
id : tun0
state : down
ip : 0.0.0.0
+---------------------------------------------------------------------+
| INTERFACE |
+---------------------------------------------------------------------+
id : ppp0
state : down
ip : 0.0.0.0
13.8 Retrieving the Relay Information of the U-router NGW: ngw-client relay
When ngw-client is called with the ‘relay’ option, the command retrieves the state of the relay(s)
connected to the U-router NGW. Furthermore, you can also operate any relay that is connected to
the U-router NGW. As example:
rfi@rfi-000102
:
~
$ ngw-client relay
+---------------------------------------------------------------------+
| RELAYS |
+---------------------------------------------------------------------+
id : 0
description : U-router NGW internal relay
relayState : OFF
rpswState : RPSW Connected - mains on
Shows you the status of the internal relay. In the example above; the relay is off and the attached
Remote Power Switch is on.
You can also toggle the relay by specifying
on
or
off
at the end of the command. When the command
is issued without specifying the relay number the command defaults to the internal relay. For
example, if you want to switch the internal relay
on
you give the following command:
rfi@rfi-000102:~$ ngw-client relay on
+---------------------------------------------------------------------+
| RELAYS |
+---------------------------------------------------------------------+
id : 0
description : U-router NGW internal relay
relayState : ON
rpswState : RPSW Connected - mains off