blob: 222c934e20fb657e594553cfdb8ed479fd0fa013 [file] [log] [blame]
Daniele Moro5212da62021-10-11 16:20:26 +02001.. _troubleshooting_guide:
2
Charles Chancaebcf32021-09-20 22:17:52 -07003Troubleshooting Guide
4=====================
Charles Chanbf55e742021-10-04 17:46:46 -07005
6Frequently Used Commands
7------------------------
8In this section, we are going to introduce a few commands we frequently used when troubleshooting SD-Fabric.
9
10ONOS
11^^^^
12To execute following ONOS CLI commands,
13
14- Create K8s port forwarding by `kubectl -n tost port-forward onos-tost-onos-classic-0 8101`
15- Login to ONOS CLI by `ssh -p 8101 karaf@localhost`. Default password is `karaf`
16
17ONOS basics
18"""""""""""
19- `flows`: List flow tables. `-s` for simplified output.
20- `groups`: List group tables. `-s` for simplified output.
21- `devices`: List device information. `-s` for simplified output.
22- `ports`: List port information. `-e` to list enabled ports only.
23- `links`: List discovered links
24- `hosts`: List discovered hosts. `-s` for simplified output.
25- `netcfg`: List network configuration
26- `interfaces`: List interface configuration
27
28trellis-control
29"""""""""""""""
30- `sr-pr-list`: List current recovery phase of each device
31- `sr-device-subnets`: List device-subnet mapping
32
33fabric-tna
34""""""""""
35- `slices`: List network slices
36- `tcs`: List traffic classes of given slice
37
38up4
39"""
40- `read-interfaces`: List all interfaces installed in the data plane
41- `read-pdrs`: List all PDRs installed in the data plane
42- `read-fars`: List all FARS installed in the data plane
43- `read-flows`: List all UE data flows installed in the data plane)
44
45Stratum
46^^^^^^^
47To execute following BF SDE commands,
48
49- Login to Stratum switch by `ssh root@<switch_ip>`. Default password is `onl`
50- Attach to Stratum docker container by `docker attach \`docker ps | grep stratum-bfrt | awk \'{print $1}\'\``
51
52 - Hit `enter` for the prompt
53 - Use `<Ctrl-P><Ctrl-Q>` to exit the container. Do not use `<Ctrl-C>` since it will terminate the process.
54
55BF SDE
56""""""
57- `pm.show`: List port configurations. `-a` to list all ports.
58
59K8s troubleshooting
60-------------------
61..
62 TODO Hung-Wei
63
pudelkoM964f63e2021-10-08 11:10:28 -070064ONOS diagnostics
Charles Chanbf55e742021-10-04 17:46:46 -070065----------------
66..
67 TODO Hung-Wei
68
69FAQ
70---
71..
72 TODO Hung-Wei