Перейти к основному контенту

Настройка функции CLI. Зондов Метротек: WPE-114-А, WPE-114-Е

Для входа в специальный интерфейс командной строки из оболочки Linux используется команда «run-klish».

admin@smart-sfp:~$ run-klish
smart-sfp(admin)#
 !           Comments
 configure Enter configuration mode exit  Exit from the CLI
 show    Show information
 system  Enter system command mode
 up        Go one level up (^Z
smart-sfp(admin)#

Для перехода в общий режим управления системой используется команда «system».

smart-sfp(admin)# system
smart-sfp(admin)(system)#
 !           Comments
 exit       Exit from the CLI
 passwd Change password of selected user reboot         
 Reboot the system
 shutdown Shutdown the system 
 su         Switch user
 up        Go one level up (^Z)

Для перехода в режим настройки конкретных функций используется команда «configure terminal».

smart-sfp(admin)# configure terminal
smart-sfp(admin)(config)#
 !           Comments
 exit       Exit from configure mode
 filter      Filter management fstatistic Filter statistic management loopback          
 Loopback management
 shaper  Traffic limit management show   Show information
 ssfp      SSFP management
 statistics Clear accumulated statistics
 timesync           Manage time synchronization
 up        Go one level up (^Z)

Для перехода в режим конфигурации функции «Loopback» для выбранного профиля используется команда «loopback config profile0/1».

smart-sfp(admin)(config)# loopback config profile0
* Enter `show` to view the configuration
smart-sfp(admin)(config-loopback[profile0])#
 !           Comments
 duration Loopback duration exit  Exit from the CLI
 learn ARP notification settings show Show loopback information
 topology Loopback topology
 type     Loopback type
 up       Go one level up (^Z)

Для перехода в режим конфигурации функции «Shaper» для выбранного профиля используется команда «shaper config profile0/1».

smart-sfp(admin)(config)# shaper config profile0
* Enter `show` to view the configuration smart-sfp(admin)(config-shaper[profile0])#
 !           Comments
 exit       Exit from the CLI
 priv       Traffic privilege
 rate      Rate limit
 show    Show shaper information
 topology Shaper topology
 up        Go one level up (^Z)

Для перехода в режим настройки оптического приёмопередатчика Smart SFP используется команда «ssfp config».

smart-sfp(admin)(config)# ssfp config
* Enter `show` to view the configuration
smart-sfp(admin)(config-ssfp)#
 !           Comments
 exit       Exit from the CLI
 rx_los RX loss signal management show
 Show SSFP information tx_flt
 TX FLT signal management
 up        Go one level up (^Z)

Для перехода в режим настройки функции синхронизации времени для выбранного профиля используется команда «timesync config profile0/1».

smart-sfp(root)(config)# tymesync config profile0
* Enter `show` to view the configuration
smart-sfp(root)(config-fstatistic[profile0])#
 !           Comments
 duration Set synchronization's type
 exit      Exit from the CLI
 mode    Set synchronization's mode
 ntp       NTP mode
 ptp       PTP mode
 show    Show time synchronization information
 topology Synchronization topology
 type      Set synchronization's type
 up        Go one level up (^Z)

Для перехода в режим заимствования ip адреса для выбранного профиля используется команда «loaned-ip config profile0/1».

smart-sfp(admin)(config)# loaned-ip config profile0
* Enter `show` to view the configuration
smart-sfp(admin)(config-loaned-ip[profile0])#
 !           Comments
 exit       Exit from the CLI
 ip          Loaned IP
 range    Port range limit
 show    Show loaned IP information
 topology Loaned IP topology
 up        Go one level up (^Z)

Для перехода в режим настройки функции захвата и зеркалирования трафика для выбранного профиля используется команда «erspan config profile0/1».

smart-sfp(root)(config)# erspan config profile0
* Enter `show` to view the configuration
smart-sfp(root)(config-erspan[profile0])#
 !           Comments 
 duration ERSPAN duration
 erspan  ERSPAN rule
 exit       Exit from the CLI 
 filter      Filter settings
 show    Show ERSPAN information t
 opology ERSPAN topology
 up        Go one level up (^Z)