PowerShell
  • Introduction
  • Chapter1: Write a basic powershell script
    • 1.1.Parameters
  • Chapter2: Remote controlling
    • 2.1.Introduction
    • 2.2.System Requirement
    • 2.3.Environment Setting
    • 2.4.Remote login
    • 2.5.Run remote program
    • 2.6.Remote interaction patterns
  • Chapter3: Some remote interactions for Windows 7\/ 10
    • 3.1.USB throughtput interactions
    • 3.2.mSATA throughtput interactions
    • 3.3.UART-echo interactions
    • 3.4.UART-throughput interactions
    • 3.5.UART-loopback interactions
    • 3.6.Ethernet-IIS interactions
    • 3.7.Ethernet-Wake on LAN interactions
    • 3.8.Ethernet-throughput interactions
    • 3.9.Ethernet-static ip interactions
    • 3.10.Ethernet-VPN interactions
    • 3.11.run once interactions
    • 3.12.Time zone interactions
    • 3.13.Firewall interactions
    • 3.14.Watchdog interactions
    • 3.15.File System interactions
    • 3.16.NTP interactions
    • 3.17.SNMP interactions
    • 3.18.FBWF interactions
    • 3.19.EWF interactions
    • 3.20.UWF interactions
  • Chapter4: Common Type
  • Chapter5: Common Operation
  • Chapter6: Socket Programming
Powered by GitBook
On this page

Was this helpful?

  1. Chapter2: Remote controlling

2.6.Remote interaction patterns

Previous2.5.Run remote programNextChapter3: Some remote interactions for Windows 7\/ 10

Last updated 5 years ago

Was this helpful?

  • Remote control的目的是遙控遠端電腦, 或是觸發遠端電腦中的程式, 而如果可以同時控制兩台以上的電腦則可以讓他們進行一些交互動作, 例如自動化測試.

  • 而讓多台電腦進行交互動作並讓彼此知道訊息, 有許多種方式可以實作, 我將模式大致上歸納為兩種:

    • 1.相互獨立型

      • 當我們希望兩台機器(A, B)有相互的動作, 而且兩台機器上面所執行的process各自是獨立的, 不會因對方process的啟動結束時間影響自己

      • 並且我們希望當他們的process執行到某個時間時(或是結束時)可以通知對方, 一般來說我們可以由第三台機器C來統一對這兩台機器(A, B)做remote control:

      • 例如測試機器A的FBWF功能時, 可以先用C初始化A的測試環境, 再以B開始對A進行測試, 其中B可以對A不斷的單向監控, 例如監控A是否重開機完成了, 藉以知道目前A的狀態

    • 2.主從監控型:

      • 在某些情形下, 我們想讓兩台機器(A, B)有相互的動作, 而且兩台機器上面所執行的process各自是獨立的

      • 但是我們希望B機器process的起始可以被A機器trigger, B機器的process結束時也可以通知A機器

      • 例如A, B一邊是server, 一邊是client時, 彼此需要互相配合ㄡ