Skip to content

Commit

Permalink
added multilab example
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Feb 3, 2021
1 parent 7805f85 commit 53c95ca
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/cmd/inspect.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ The `inspect` command provides the information about the deployed labs.
### Flags

#### all
With the local `--all` flag its possible to list all deployed labs in a single table.
With the local `--all` flag its possible to list all deployed labs in a single table. The output will also show the relative path to the topology file that was used to spawn this lab.

The lab name and path values will be set for the first node of such lab, to reduce the clutter. Refer to the [examples](#examples) section for more details.

#### topology | name

Expand All @@ -33,12 +35,14 @@ With this flag inspect command will output every bit of information about the ru
```bash
# list all running labs on the host
containerlab inspect --all
+---+-----------+----------+-----------------+--------------+--------------------+------+-------+---------+----------------+----------------------+
| # | Topo Path | Lab Name | Name | Container ID | Image | Kind | Group | State | IPv4 Address | IPv6 Address |
+---+-----------+----------+-----------------+--------------+--------------------+------+-------+---------+----------------+----------------------+
| 1 | srl02.yml | srl01 | clab-srl01-srl | d8a902b057b7 | srlinux:20.6.3-145 | srl | | running | 172.20.20.2/24 | 2001:172:20:20::2/80 |
| 2 | | | clab-srl01-srl2 | eda1d2e9fabd | srlinux:20.6.3-145 | srl | | running | 172.20.20.3/24 | 2001:172:20:20::3/80 |
+---+-----------+----------+-----------------+--------------+--------------------+------+-------+---------+----------------+----------------------+
+---+------------+----------+-----------------+--------------+--------------------+------+-------+---------+----------------+----------------------+
| # | Topo Path | Lab Name | Name | Container ID | Image | Kind | Group | State | IPv4 Address | IPv6 Address |
+---+------------+----------+-----------------+--------------+--------------------+------+-------+---------+----------------+----------------------+
| 1 | newlab.yml | newlab | clab-newlab-n1 | 3c8262034088 | srlinux:20.6.3-145 | srl | | running | 172.20.20.4/24 | 2001:172:20:20::4/80 |
| 2 | | | clab-newlab-n2 | 79c562b71997 | srlinux:20.6.3-145 | srl | | running | 172.20.20.5/24 | 2001:172:20:20::5/80 |
| 3 | srl02.yml | srl01 | clab-srl01-srl | 13c9e7543771 | srlinux:20.6.3-145 | srl | | running | 172.20.20.2/24 | 2001:172:20:20::2/80 |
| 4 | | | clab-srl01-srl2 | 8cfca93b7b6f | srlinux:20.6.3-145 | srl | | running | 172.20.20.3/24 | 2001:172:20:20::3/80 |
+---+------------+----------+-----------------+--------------+--------------------+------+-------+---------+----------------+----------------------+

# provide information about the running lab named srl02
containerlab inspect --name srlceos01
Expand Down

0 comments on commit 53c95ca

Please sign in to comment.