測試連線

您可以使用 telnet 或「管理主控台」中的測試,來測試與代理程式之間的連線。

如果要從指令行測試連線,請執行下列動作:

  1. 利用 telnet 指令連接代理程式。如果您已登入正在執行代理程式的主機,您可以使用 localhost 作為主機名稱。
    telnet hostname 5555
    這個回應表示連線成功:
    200 HELLO - BuildForge Agent v7.0.1.buildnumber
  2. 利用您的登入認證,發出下列指令來檢查鑑別:
    telnet localhost 5555
    username user name
    password  password
    cmd ping
    go

    下列訊息表示成功:

    AUTH: set user account to <user name>
    如果可以進行上述測試但工作失敗,且伺服器的測試顯示使用者鑑別錯誤,則請檢查可外掛鑑別模組 (PAM) 的配置。如果您看到如下訊息,則請繼續下一步驟。
    AUTH: unable to set user account to <user name>: unknown account (1)
  3. 輸入下列指令:
    cmd ping go

    以下是 telnet 階段作業的一般輸出。請特別尋找輸出結尾的 RESULT 0 代表成功。這項測試是針對 Windows 上執行的代理程式來執行。

    300 DATA s 67
    AUTH: Running as: [SYSTEM] in domain [NT AUTHORITY] SID Type [User]
    300 DATA s 52
    AUTH: Running with Privilege: [Lock pages in memory]
    300 DATA s 66
    AUTH: Running with Privilege: [Adjust memory quotas for a process]
    300 DATA s 63
    AUTH: Running with Privilege: [Create permanent shared objects]
    300 DATA s 46
    AUTH: Running with Privilege: [Debug programs]
    300 DATA s 56
    AUTH: Running with Privilege: [Bypass traverse checking]
    300 DATA s 61
    AUTH: Running with Privilege: [Back up files and directories]
    300 DATA s 54
    AUTH: Running with Privilege: [Change the system time]
    300 DATA s 68
    AUTH: Running with Privilege: [Remove computer from docking station]
    300 DATA s 73
    AUTH: Running with Privilege: [Impersonate a client after authentication]
    300 HEARTBEAT 1
    300 DATA s 16
    PLAT: Windows XP
    250 RESULT 0
    PING: internal loopback test complete
    260 EOR

如果要從「管理主控台」測試連線,請執行下列動作:

註: 只有當伺服器已經設為使用代理程式時,才能使用此方法。
  1. 跳至伺服器
  2. 在伺服器的清單中,按一下要測試的伺服器。
  3. 按一下測試連線

測試之後,結果會顯示在測試結果標籤中。

與下列輸出類似的訊息表示有問題。
Could not open a connection to host on port 5555
可能是「管理主控台」無法連接至主機,或是代理程式無法運作。

意見