| 6 | == BigOS CLI == |
| 7 | This is the main interface to the Big Switch controller. From here, you can query for various information, such as controller state and the switches connected to it. |
| 8 | === Logging in === |
| 9 | From gw.orbit-lab.org, ssh to `kvm-big` as user `admin`, password ''native101''. You should see something like below: |
| 10 | {{{ |
| 11 | ~$ ssh kvm-big -l admin |
| 12 | admin@kvm-big's password: |
| 13 | Last login: Sat Feb 12 07:19:47 2011 from 10.50.0.12 |
| 14 | BigShell (bigsh) v0.1 (c) by Big Switch Networks. |
| 15 | default controller is: 127.0.0.1:8000 |
| 16 | 172.16.0.14> |
| 17 | }}} |
| 18 | The caret is the prompt for the CLI, which follows syntax similar to Cisco IOS. To see available commands, just type "?". For example, to see the list of !OpenFlow switches connected to the controller, type `show switch`: |
| 19 | {{{ |
| 20 | 172.16.0.14> show switch |
| 21 | Switch DPID Active Last Connect Time IP Address Socket Address Max Packets Max Tables |
| 22 | -----------------------|------|-------------------|------------|-------------------|-----------|---------- |
| 23 | 00:00:00:00:00:00:00:01 True 2011-02-14 02:25:53 172.16.0.241 /172.16.0.241:52683 256 3 |
| 24 | 00:00:00:10:10:20:32:30 False 2011-02-09 07:36:59 172.16.0.253 /172.16.0.253:63202 256 2 |
| 25 | 00:00:00:10:10:22:32:32 True 2011-02-14 02:25:30 172.16.0.253 /172.16.0.253:62957 256 2 |
| 26 | 00:00:00:10:10:24:32:34 True 2011-02-10 15:56:57 172.16.0.4 /172.16.0.4:59345 256 2 |
| 27 | }}} |
| 28 | |
| 29 | More information on each switch can be found by context switch to the DPID's of the switches: |
| 30 | {{{ |
| 31 | 172.16.0.14> show switch 00:00:00:10:10:22:32:32 desc |
| 32 | Serial # Vendor Make Model SW Version |
| 33 | --------|---------------|--------------------------|--------|---------- |
| 34 | None NEC Corporation Reference Userspace Switch sw-sb-01 |
| 35 | |
| 36 | }}} |
| 37 | Here, we have switched to the context of a switch whose DPID is 00:00:00:10:10:22:32:32, in order to look up general information about it. |
| 38 | |