45
Advanced LAN Bypass User Manual
Chapter 4
L
BPCU
4.5
./lbpcu -n
Gets the total number of segments defined in lbpcu.cfg (cf. Section 3.7.2.2):
Figure 4.7 Usage of the "lbpcu -n" Command
4.6
./lbpcu -GA
Returns the current action for the specified event on a specific segment (cf. Section
3.7.3.1):
Figure 4.8 Usage of the "lbpcu -GA" Command
Example
Retrieve the current action (DISCONNECT in this example) for the POWER_OFF
event on Segment 1:
Figure 4.9 Return the Current Action for the POWER_OFF Event on Segment 1
--------------------
root@localhost:~# ./lbpcu -n
Segment number in conf file : 2
Seg 1 : 5e:00.0
Seg 2 : 5e:00.2
-----------------------
root@localhost:~# ./lbpcu -GA
Example: Current POWER_OFF event action setting is BYPASS. So
use -GA 1 POWER_OFF will get BYPASS output.
Command: Get Action
Syntax: GA <segment> <event>
Output: Action defined for the <event> of this <segment>
event list:
POWER_ON
POWER_OFF
POWER_RST
WATCHDOG_START
WATCHDOG_TIMEOUT
EXTERNAL_TRIGGER
BUTTON_EVENT_1
BUTTON_EVENT_2
action list:
CONNECT
DISCONNECT
BYPASS
DO_NOT_CHANGE
Error: LBP_ERR_PARAM_OUT_OF_BOUND (0x93)
root@localhost:~# ./lbpcu -GA 1 POWER_OFF
Event: POWER_OFF
Action: DISCONNECT
Summary of Contents for LAN Bypass
Page 1: ...User Manual Advantech Advanced LAN Bypass...
Page 4: ...Advanced LAN Bypass User Manual iv...
Page 10: ...Advanced LAN Bypass User Manual x...
Page 11: ...Chapter 1 1 ADVANCED LAN BYPASS...
Page 14: ...Advanced LAN Bypass User Manual 4...
Page 15: ...Chapter 2 2 OVERVIEW...
Page 26: ...Advanced LAN Bypass User Manual 16...
Page 27: ...Chapter 3 3 LIBLBPCU ADVANCED LAN BYPASS LIBRARY...
Page 51: ...Chapter 4 4 LBPCU...
Page 79: ...Appendix A A OS limitation...
Page 81: ...71 Advanced LAN Bypass User Manual Appendix A OS limitation...