mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
Fix ID doesn't exist in T4 (#1451)
This commit is contained in:
@@ -40,6 +40,8 @@ echo $session_id`{{execute T3}}
|
||||
|
||||
`b09f1353-202c-407b-af24-701b744f971e`;
|
||||
|
||||
请记下这里的会话ID,在Terminal 4中需要手动输入。
|
||||
|
||||
当前消费者ID为:
|
||||
|
||||
`consumer_id=$(echo $session_data | sed 's/.*"consumerId":"\([^"]*\)".*/\1/g')
|
||||
@@ -80,6 +82,8 @@ echo $consumer_id`{{execute T3}}
|
||||
|
||||
`8f7f6ad7bc2d4cb5aa57a530927a95cc_2 ` 。
|
||||
|
||||
请记下这里的消费者ID,在Terminal 4中需要手动输入。
|
||||
|
||||
#### 拉取命令结果
|
||||
|
||||
拉取命令结果消息的action为`pull_results`。请使用Http long-polling方式,定时循环拉取结果消息。
|
||||
@@ -97,6 +101,20 @@ echo $consumer_id`{{execute T3}}
|
||||
|
||||
用Bash脚本定时拉取结果消息:
|
||||
|
||||
请在Terminal 4中输入Terminal 3中的会话ID,这里的例子如下:
|
||||
|
||||
`b09f1353-202c-407b-af24-701b744f971e`
|
||||
|
||||
`echo -n "Enter your sessionId in T3:"
|
||||
read session_id`{{execute T4}}
|
||||
|
||||
同样,接着输入Terminal 3中的消费者ID,这里的例子如下:
|
||||
|
||||
`8f7f6ad7bc2d4cb5aa57a530927a95cc_2 `
|
||||
|
||||
`echo -n "Enter your consumerId in T3:"
|
||||
read consumer_id`{{execute T4}}
|
||||
|
||||
`while true; do curl -Ss -XPOST http://localhost:8563/api -d '
|
||||
{
|
||||
"action":"pull_results",
|
||||
|
||||
@@ -41,6 +41,8 @@ echo $session_id`{{execute T3}}
|
||||
|
||||
`b09f1353-202c-407b-af24-701b744f971e`;
|
||||
|
||||
Please take a note of your session ID here, it will be entered in Terminal 4 in the following steps.
|
||||
|
||||
consumer ID is:
|
||||
|
||||
`consumer_id=$(echo $session_data | sed 's/.*"consumerId":"\([^"]*\)".*/\1/g')
|
||||
@@ -48,6 +50,8 @@ echo $consumer_id`{{execute T3}}
|
||||
|
||||
`5ae4e5fbab8b4e529ac404f260d4e2d1_1`.
|
||||
|
||||
Please take a note of your consumer ID here, it will be entered in Terminal 4 in the following steps.
|
||||
|
||||
#### Join session
|
||||
|
||||
Specify the session ID to join, and the server will assign a new
|
||||
@@ -108,6 +112,20 @@ The request parameters require session ID and consumer ID:
|
||||
|
||||
Use Bash scripts to regularly pull results messages:
|
||||
|
||||
Please enter the sessionID from your Terminal 3 in Terminal 4, an example is here:
|
||||
|
||||
`b09f1353-202c-407b-af24-701b744f971e`
|
||||
|
||||
`echo -n "Enter your sessionId in T3:"
|
||||
read session_id`{{execute T4}}
|
||||
|
||||
Also, Please enter the consumerID, an example is here:
|
||||
|
||||
`8f7f6ad7bc2d4cb5aa57a530927a95cc_2`
|
||||
|
||||
`echo -n "Enter your consumerId in T3:"
|
||||
read consumer_id`{{execute T4}}
|
||||
|
||||
`while true; do curl -Ss -XPOST http://localhost:8563/api -d '
|
||||
{
|
||||
"action":"pull_results",
|
||||
|
||||
Reference in New Issue
Block a user