티스토리 뷰

이스라엘 silicom 사의 바이패스 카드


Usage: bpctl [parameters]
bpctl 
- interface name, for example, eth0.
- bypass control command (see Commands List).
[parameters] - set_bypass_wd command:
WDT timeout interval, msec (0 for disabling WDT).
set_bypass/set_bypass_pwoff/set_bypass_pwup/set_dis_bypass commands:
on/off for enable/disable Bypass
set_std_nic command:
on/off for enable/disable Standard NIC mode
set_tpl command:
on/off for enable/disable TPL mode
set_tx command:
on/off for enable/disable transmit
set_tap/set_tap_pwup/set_dis_tap commands:
on/off for enable/disable TAP
set_disc/set_disc_pwup/set_dis_disc commands:
on/off for enable/disable Disconnect
set_wd_exp_mode command:
bypass/tap/disc for bypass/tap/disconnect mode
set_wd_autoreset command:
WDT autoreset interval, msec (0 for disabling WDT autoreset).
info - print Program Information.
help - print this message.

Commands List: ( Get : 확인 Set : 설정) (on : 설정 off: 해제)

is_bypass - check if device is a Bypass/TAP/Disc controlling device ; eth1 or 2의 장비의 상태를 확인

- bpctl eth1 is_bypass : The interface is a control interface.
- bpctl eth2 is_bypass : The interface is a slave interface.

get_bypass_slave - get the second port participate in the Bypass/TAP pair ; eth1 or 2에 대해 Bypass 실행하기 위한 2번째 포트를 확인 (슬레이브포트를 확인)
- bpctl eth1 get_bypass_slave : eth2 is a slave port.
- bpctl eth2 get_bypass_slave : The interface is a slave interface or doesn't support Bypass/TAP.

get_bypass_caps - obtain Bypass/TAP/Disc capabilities information ; Bypass, TAP, Disc 에 대해 eth1 or 2에 적용된 상태(특성)에 대한 정보를 확인

get_wd_set_caps - obtain watchdog timer settings capabilities ; watchdog timer 에 대해 설정된 내용 확인

get_bypass_info - get Bypass info ; eth에 대해 Bypass 모드 정보 확인

set_bypass - set Bypass mode state ; eth에 대해 Bypass mode 상태를 설정

set_bypass - get Bypass mode state ; eth에 대해 Bypass mode 상태를 확인

get_bypass_change - get change of Bypass mode state from last status check
- bpctl eth1 get_bypass_change : There was a change to Bypass state or it's now in Bypass state. ; 바이패스 모드로 전환되었거나 현재 바이패스 모드상태이다

set_dis_bypass - set Disable Bypass mode ; 바이패스 기능을 사용여부 설정
- bpctl eth1 set_dis_bypass on or off ; on ; 바이패스모드를 사용하도록 설정, off : 바이패스모드를 사용하지 않도록 설정
get_dis_bypass - get Disable Bypass mode state ; 바이패스모드 옵션 확인

set_bypass_pwoff - set Bypass mode at power-off state ; 파워전원이 꺼질때 바이패스 모드 전환 여부 설정 (on = 바이패스, off = 논바이패스)
get_bypass_pwoff - get Bypass mode at power-off state ; 파워전원이 꺼질때 바이패스모드로 전환되는 여부 확인

set_bypass_pwup - set Bypass mode at power-up state ; 파워전원이 켜져있을때 바이패스 모드 전환 여부 설정
get_bypass_pwup - get Bypass mode at power-up state ; 파워전원이 켜져있을때 바이패스 모드 전환 여부 확인

set_std_nic - set Standard NIC mode of operation ; 스탠다드 NIC 모드로 동작하게끔 셋팅 (스탠다드 NIC모드에서는 일반랜카드 처럼 작동한다고 보면 될것임, Bypass 외 기타 기능 사용이 안됨)
get_std_nic - get Standard NIC mode settings ; 스탠다드 NIC 모드인지 확인

set_bypass_wd - set watchdog state ; watchdog 상태를 설정
- bpctl eth1 set_bypass_wd 100 ; watchdog 시간을 100ms로 설정 (100, 200, 400, 800, 1600, 3200) 100에서 부터 2개의 배수인가? 

get_bypass_wd - get watchdog state ; watchdog 설정된 시간을 확인

get_wd_time_expire - get watchdog expired time ; watchdog 만기시간을 확인

reset_bypass_wd - reset watchdog timer ; watchdog 타이머값을 초기화

set_tx - set transmit enable / disable ; transmit 기능을 설정
get_tx - get transmitter state (enabled / disabled) ; transmit 옵션설정 확인


set_wd_exp_mode - set adapter state when WDT expired ; WDT가 만기 되었을시 어댑터 상태를 설정
get_wd_exp_mode - get adapter state when WDT expired ; WDT가 만기 되었을시 어댑터 상태 설정 확인
- bpctl eth1 get_wd_exp_mode - When WDT timeout occurs, the interface will be in the Bypass mode ; WDT timeout 발생시 바이패스모드로 인터페이스가 변경될것임

set_wd_autoreset - set WDT autoreset mode ; WDT autoreset 모드 설정 (on : 설정, off : 해제)
get_wd_autoreset - get WDT autoreset mode ; WDT autoreset 모드 확인

set_tpl - set TPL mode state ; TPL 모드 상태로 설정 (on : 설정 off : 해제)
get_tpl - get TPL mode state ; TPL 모드상태 확인

Example: bpctl eth0 set_bypass_wd 5000
bpctl eth0 set_bypass on
bpctl eth0 set_wd_exp_mode tap

bpctl_util eth1 set_wd_autoreset 1000 ; 1초마다 Watchdog 시간을 리셋함 (즉 1초에 한번씩 체크하게 함)

set_tap - set TAP mode state ; TAP 모드 상태로 설정 (지원안하는듯 TAP)
get_tap - get TAP mode state ; TAP 모드인지확인

set_disc - set Disconnect mode state ; Disconnect 모드상태로 설정 (지원안하는듯)
get_disc - get Disconnect mode state ; Disconnect 모드인지 확인

get_tap_change - get change of TAP mode state from last status check ; TAP 모드의 마지막 상태의 변화를 확인 ((지원안하는듯)
set_dis_tap - set Disable TAP mode ; Disable TAP 모드로 설정
get_dis_tap - get Disable TAP mode state ; Disable TAP 모드설정 확인

set_tap_pwup - set TAP mode at power-up state ; 전원켜질때 TAP 모드로 설정 (지원안하는듯)
get_tap_pwup - get TAP mode at power-up state ; 전원켜질때 TAP 모드로 설정 확인

get_disc_change - get change of Disc mode state from last status check ; Disable Disconnect 모드의 마지막 상태 변화를 확인 (지원안하는듯)
set_dis_disc - set Disable Disconnect mode ; Disable Disconnect 모드로 설정
get_dis_disc - get Disable Disconnect mode state ; Disable Disconnect 모드로 설정 확인

set_disc_pwup - set Disconnect mode at power-up state ; 전원켜졌을시 Disconnect 모드로 설정 (지원안하는듯)
get_disc_pwup - get Disconnect mode at power-up state ; 전원켜질때 Disconnect 모드 설정확인

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함