CML-P macOSでのbreakout toolの利用


Mac OSでCML-Pのbreakout toolを利用するときにちょっと困ったのでメモ。


そもそもmacOS Big Surにはtelnetコマンドが用意されてません。




% brew install inetutils

breakout toolに実行権限を追加

% chmod +x breakout-macos-x86_amd64

sudoでbreakout toolを実行

% sudo ./breakout-macos-x86_amd64 ui
Starting up...
W0430 17:03:15.169156   23327 run.go:238] open labs.yaml: no such file or directory
Running... Serving UI/API on http://[::1]:8080, Ctrl-C to stop.


breakout toolサイトへのアクセス

ブラウザからlocalhost:8080へアクセスするとWeb GUIが表示される。

オマケ:breakout toolのヘルプ

breakout-macos-x86_amd64 0.2.1-build-v2.1.2-39
Build info:
  Built:      2021-01-26T19:07:22Z
  Git commit: 13c7b78e00299229
  Go version: go1.14.6
  Platform:   linux/amd64
  Build host: 4.18.0-193.19.1.el8_2.x86_64 x86_64

    breakout-macos-x86_amd64 [flags] COMMAND
    COMMAND (required), 'config', 'init', 'run' or 'ui'
    'init' takes an optional 'lab' argument
    it will look for a lab ID or label that matches
    if providing a lab title, it has to be unique
    BREAKOUT_ enviroment variables control config as well.
    - create a default configuration file with 'config', adapt to your needs
    - use 'init' to retrieve lab information from controller
    - enable labs or individual nodes in lab configuration file created by 'init'
    - use 'run' to start the breakout process
    - use 'ui' to run a web frontend.
        log to standard error as well as files
  -config string
        global configuration filename (default "config.yaml")
        send an extra LF when serial line is opened
  -labs string
        the data file to use (default "labs.yaml")
  -listen string
        address to listen on (default "[::1]")
  -log_backtrace_at value
        when logging hits line file:N, emit a stack trace
  -log_dir string
        If non-empty, write log files in this directory
        log to standard error instead of files
        disable TLS verify
  -port int
        local port to listen on for UI mode (default 8080)
  -stderrthreshold value
        logs at or above this threshold go to stderr
  -v value
        log level for V logs
  -vmodule value
        comma-separated list of pattern=N settings for file-filtered logging