Skip to main content

You can connect via SSH using a language called TTL(Terawaros Tekitou Language), which is similar to teraterm macro, and ping other servers as stepping stones.

Project description

NextNextPing

  • This software is a tool similar to ExPing for pinging multiple devices in Windows.
  • You can connect via SSH using a language called TTL(Terawaros Tekitou Language), which is similar to teraterm macro, and ping other servers as stepping stones.

How to run a macro

For Linux or Python

(1) install

$ pip3 install nextnextping

(2) Invoke pyttl

  • You can connect via SSH using a language called TTL(Terawaros Tekitou Language), which is similar to teraterm macro, and ping other servers as stepping stones.
$ pyttl TTL_FILENAME

Example:
$ pyttl ./test/0000_ok_test.ttl

(3) Invoke nextnextping

$ nextnextping
  • This software is a tool similar to ExPing for pinging multiple devices in Windows.

For Windows

(1) Download

(2) Screen image

For Linux and ansible

Downlad Sourcecode

For TTL macro

基本的な使い方

  • Basic -- sample01/setting.txt に例があります。
    • nextnextpingを起動します。
    • トップ画面で適当にipを並べます。
    • メニューバーから、File ⇒ Setting で 設定画面 を開いて設定を変更します。
    • Updateボタンをクリックします。
    • Pingボタンをクリックします。
    • しばらくするとpingに成功したものがOK、失敗したものがNGで表示されます。
    • メニューバーから、File ⇒ Save setting で設定の保存ができます。
    • メニューバーから、File ⇒ Save log でログの保存ができます。
    • メニューバーから、File ⇒ Exit で終了できます。
  • Advanced -- sample02/setting.txt に例があります。
    • nextnextpingを起動します。
    • メニューバーから、Tool ⇒ Sheet をクリックします。
    • 設定用CSVファイルを作成します。やり方は2種類あります。
      • メニューバーから、File ⇒ Load csv で保存した csvをロードします。
      • Createボタンを押して 設定画新規作成または編集画面面 を開いて編集します。
      • 行をダブルクリックすると編集ができます。
    • 今後のために File ⇒ Save csv で保存した csvをセーブします。
    • メニューバーから、Go ⇒ Create ttl で ttlを自動生成します。
    • メニューバーから、File ⇒ Closeでツールを終了します。
    • 結果表示画面 からPingボタンをクリックします。
    • しばらくするとpingに成功したものがOK、失敗したものがNGで表示されます。
    • メニューバーから、File ⇒ Save log でログの保存ができます。
    • メニューバーから、File ⇒ Exit で終了できます。
  • Legend -- sample03/setting.txt に例があります。
    • nextnextpingを起動します。
    • メニューバーから、File ⇒ Setting で 設定画面 を開いて設定を変更します。
    • ttlを自作します。
    • トップ画面[説明文] (ttl) ttlマクロのファイル名 と記述します。
    • Updateボタンをクリックします。
    • Pingボタンをクリックします。
    • しばらくするとpingに成功したものがOK、失敗したものがNGで表示されます。
      • 失敗の条件はエラーが発生したか、または、 result が 0 である場合のいずれかです。
    • メニューバーから、File ⇒ Save setting で設定の保存ができます。
    • メニューバーから、File ⇒ Save log でログの保存ができます。
    • メニューバーから、File ⇒ Exit で終了できます。

開発者に向けた README

  • 動作確認方法
  • 以下、カレントフォルダを . とする
    • 必要なパッケージが入ってなかったら入れる ※最初のみ
    • 別のPCにインストールしたときはフォルダ名等は見直す ※最初のみ
    • .pypirc を持ってきて置く。※ Python packageを改版する場合
    • python mybuild.py の中にある VERSION= 情報を変更する。最後が0になるの数値は使わないこと
    • python mybuild.py を実行する。※ pyinstaller が動きます
    • pytest -s を実行する
      • すべての test にパスすることを確認する
      • 内部で Mock の ssh や scp サーバを起動します
      • Layer4 port 2200 を占有します
    • wsl を起動する
      • wsl の中で pytest -s を実行する
      • すべての test にパスすることを確認する
      • wsl の中で python3 test/test_nextnextping.py を起動しっぱなにする
      • wsl の中で実行しないと後続の site.yml が正常動作しません
      • Mock の ssh や scp サーバを起動します
      • Layer4 port 2200 を占有します
    • もう一枚コマンドプロンプトを起動して wsl を起動する
      • cd ./forwsl2 に移動する
      • wsl の中で ansible-palybook site.yml を実行する
      • すべての test にパスすることを確認する
      • cd ../bin に移動する
      • nextnextping を実行して動作に問題ないことを確認する
        • wsl の tkinterで文字化けするのは font が入ってないせい
        • sudo apt install fonts-noto-cjk で font を入れること
      • pyttl ./test/0000_ok_test.ttl を実行して動作に問題ないことを確認する
      • 2つのコマンドプロンプトを wslexit で抜ける
      • wsl の中で ansible-playbook site_pypi.yml を実行して PyPi にアップロードする
      • ./dest 配下に公開に必要なファイル群ができあがる
    • ansible-galaxy に登録する
    • githubに登録する
      • git add .
      • git commit . -m "DOCUMENT"
      • git push
    • エラーが出た時は、指示に従って見直す
      • pyinstall, tkinter, pytest など必要なパッケージが入ってないとエラーになります
      • フォルダ名は環境に合わせて修正が必要です

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nextnextping-1.24.1.tar.gz (128.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nextnextping-1.24.1-py3-none-any.whl (134.0 kB view details)

Uploaded Python 3

File details

Details for the file nextnextping-1.24.1.tar.gz.

File metadata

  • Download URL: nextnextping-1.24.1.tar.gz
  • Upload date:
  • Size: 128.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nextnextping-1.24.1.tar.gz
Algorithm Hash digest
SHA256 0003e96249c8beb7da20146cd7b6bb7266ca433c11b5f3396181e00e2ac0a8e0
MD5 3d2f113c02b580a134fbaa222813b3cf
BLAKE2b-256 0aab77a13411891e4a033724abb082304ce44ec256a735a341c7d37b9ec0a544

See more details on using hashes here.

File details

Details for the file nextnextping-1.24.1-py3-none-any.whl.

File metadata

  • Download URL: nextnextping-1.24.1-py3-none-any.whl
  • Upload date:
  • Size: 134.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nextnextping-1.24.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5412a62a840265e9a430c9ae60fc0d34a10f530ffba8f4d0cc5559f998f55b8b
MD5 bdb94d02e37c03bc8f8e9ace6e752ded
BLAKE2b-256 4464a7ad49f670ff7214f3c3b82d5b906972a5ccee5fa5e5de03c4dae04a7660

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page