1*cfb92d14SAndroid Build Coastguard Worker# OpenThread Certification Tests 2*cfb92d14SAndroid Build Coastguard Worker 3*cfb92d14SAndroid Build Coastguard Worker## Inspector 4*cfb92d14SAndroid Build Coastguard Worker 5*cfb92d14SAndroid Build Coastguard WorkerInspect nodes status by the following modification: 6*cfb92d14SAndroid Build Coastguard Worker 7*cfb92d14SAndroid Build Coastguard Worker1. Insert the inspector to where you want to inspect. 8*cfb92d14SAndroid Build Coastguard Worker 9*cfb92d14SAndroid Build Coastguard Worker```python 10*cfb92d14SAndroid Build Coastguard Workerimport debug 11*cfb92d14SAndroid Build Coastguard Workerdebug.Inspector(self).inspect() 12*cfb92d14SAndroid Build Coastguard Worker``` 13*cfb92d14SAndroid Build Coastguard Worker 14*cfb92d14SAndroid Build Coastguard Worker2. Run the test and it will stop at the line above and prompt `#`. 15*cfb92d14SAndroid Build Coastguard Worker 16*cfb92d14SAndroid Build Coastguard Worker```sh 17*cfb92d14SAndroid Build Coastguard Worker./script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py 18*cfb92d14SAndroid Build Coastguard Worker``` 19*cfb92d14SAndroid Build Coastguard Worker 20*cfb92d14SAndroid Build Coastguard Worker3. Inspect 21*cfb92d14SAndroid Build Coastguard Worker 22*cfb92d14SAndroid Build Coastguard Worker```sh 23*cfb92d14SAndroid Build Coastguard Worker# 24*cfb92d14SAndroid Build Coastguard Worker# 1 25*cfb92d14SAndroid Build Coastguard Worker> state 26*cfb92d14SAndroid Build Coastguard Workerleader 27*cfb92d14SAndroid Build Coastguard Worker> exit 28*cfb92d14SAndroid Build Coastguard Worker# 2 29*cfb92d14SAndroid Build Coastguard Worker> panid 30*cfb92d14SAndroid Build Coastguard Workerface 31*cfb92d14SAndroid Build Coastguard Worker> exit 32*cfb92d14SAndroid Build Coastguard Worker# exit 33*cfb92d14SAndroid Build Coastguard Worker``` 34*cfb92d14SAndroid Build Coastguard Worker 35*cfb92d14SAndroid Build Coastguard Worker### CLI reference 36*cfb92d14SAndroid Build Coastguard Worker 37*cfb92d14SAndroid Build Coastguard Worker#### `#` mode 38*cfb92d14SAndroid Build Coastguard Worker 39*cfb92d14SAndroid Build Coastguard WorkerThis is selection mode. You may select the node to inspect here. 40*cfb92d14SAndroid Build Coastguard Worker 41*cfb92d14SAndroid Build Coastguard Worker- `list` - list available nodes. 42*cfb92d14SAndroid Build Coastguard Worker- `exit` - end inspecting, continue running test case. 43*cfb92d14SAndroid Build Coastguard Worker- \<number\> - select the node with id \<number\>. This will result in entering `>` mode. 44*cfb92d14SAndroid Build Coastguard Worker 45*cfb92d14SAndroid Build Coastguard Worker#### `>` mode 46*cfb92d14SAndroid Build Coastguard Worker 47*cfb92d14SAndroid Build Coastguard WorkerThis is node mode. You may run OpenThread CLI here. 48*cfb92d14SAndroid Build Coastguard Worker 49*cfb92d14SAndroid Build Coastguard Worker- `exit` - go back to `#` mode. 50