summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/cli-operations.md
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-04-21 21:25:54 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-22 18:12:51 +0900
commit7313e77104534aa88c570073c8a042a8a4babdaf (patch)
tree4e09a6b9bdba6dec2e42b5367e76003c8b5bc8a7 /docs/sources/cli-operations.md
parentce20ba94e672d22621e0d5ed2e020f29dbf5f3e8 (diff)
doc: change cli syntax
Diffstat (limited to 'docs/sources/cli-operations.md')
-rw-r--r--docs/sources/cli-operations.md27
1 files changed, 15 insertions, 12 deletions
diff --git a/docs/sources/cli-operations.md b/docs/sources/cli-operations.md
index 8ed0feee..3a1267ea 100644
--- a/docs/sources/cli-operations.md
+++ b/docs/sources/cli-operations.md
@@ -13,7 +13,7 @@ This example starts with the same configuration with [Getting Started](https://g
Make sure that all the peers are connected.
```
-$ gobgp show neighbors
+$ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted
10.0.255.1 65001 00:00:04 Establ | 2 2 2
10.0.255.2 65002 00:00:04 Establ | 2 2 2
@@ -47,7 +47,7 @@ should be like the following.
After you send `HUP` signal (`kill` command), you should see 10.0.255.3 peer.
```
-$ gobgp show neighbors
+$ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted
10.0.255.1 65001 00:03:42 Establ | 3 2 2
10.0.255.2 65002 00:03:42 Establ | 3 2 2
@@ -61,8 +61,8 @@ removing the configuration for the peer. Likely, again you enable the
peer later.
```
-$ gobgp disable neighbor 10.0.255.1
-$ gobgp show neighbors
+$ gobgp neighbor 10.0.255.1 disable
+$ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted
10.0.255.1 65001 never Idle(Admin) | 0 0 0
10.0.255.2 65002 00:12:32 Establ | 1 2 2
@@ -72,8 +72,8 @@ Peer AS Up/Down State |#Advertised Received Accepted
The state of 10.0.255.1 is `Idle(Admin)`. Let's enable the peer again.
```
-$ gobgp enable neighbor 10.0.255.1
-$ gobgp show neighbors
+$ gobgp neighbor 10.0.255.1 enable
+$ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted
10.0.255.1 65001 never Idle | 0 0 0
10.0.255.2 65002 00:13:33 Establ | 1 2 2
@@ -83,7 +83,7 @@ Peer AS Up/Down State |#Advertised Received Accepted
Eventually, the state should be `Established` again.
```
-$ gobgp show neighbors
+$ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted
10.0.255.1 65001 00:00:02 Establ | 3 2 2
10.0.255.2 65002 00:14:59 Establ | 3 2 2
@@ -95,8 +95,11 @@ Peer AS Up/Down State |#Advertised Received Accepted
Various reset operations are supported.
```
-$ gobgp reset neighbor 10.0.255.1
-$ gobgp softreset neighbor 10.0.255.1
-$ gobgp softresetin neighbor 10.0.255.1
-$ gobgp softresetout neighbor 10.0.255.1
-``` \ No newline at end of file
+$ gobgp neighbor 10.0.255.1 reset
+$ gobgp neighbor 10.0.255.1 softreset
+$ gobgp neighbor 10.0.255.1 softresetin
+$ gobgp neighbor 10.0.255.1 softresetout
+```
+
+
+You can know more about gobgp command syntax [here](https://github.com/osrg/gobgp/blob/master/docs/sources/cli-command-syntax.md). \ No newline at end of file