summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-10-17 15:04:13 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-10-17 15:04:13 +0000
commit824f21d94c3d48f690ddd6af899b08679c50a742 (patch)
tree4ab9560350172de73911acc05a897e0223eb58e7 /usr.sbin
parent6df1ab8d120cb4c59dd442a169998af32cc6acf4 (diff)
Use metrics as the command name and document show metrics.
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/bgpctl.86
-rw-r--r--usr.sbin/bgpctl/parser.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.8 b/usr.sbin/bgpctl/bgpctl.8
index 72e1b612f65..2a85f755ade 100644
--- a/usr.sbin/bgpctl/bgpctl.8
+++ b/usr.sbin/bgpctl/bgpctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bgpctl.8,v 1.101 2022/09/01 22:24:40 job Exp $
+.\" $OpenBSD: bgpctl.8,v 1.102 2022/10/17 15:04:12 claudio Exp $
.\"
.\" Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: September 1 2022 $
+.Dd $Mdocdate: October 17 2022 $
.Dt BGPCTL 8
.Os
.Sh NAME
@@ -211,6 +211,8 @@ instead of the default routing table with ID 0.
.El
.It Cm show interfaces
Show the interface states.
+.It Cm show metrics
+Dump various BGP statistics in OpenMetrics format.
.It Xo
.Cm show mrt
.Op Ar options
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index 7838deb0dfc..730fc8ebc42 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.115 2022/10/17 12:01:19 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.116 2022/10/17 15:04:12 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -141,7 +141,7 @@ static const struct token t_show[] = {
{ KEYWORD, "sets", SHOW_SET, NULL},
{ KEYWORD, "rtr", SHOW_RTR, NULL},
{ KEYWORD, "mrt", SHOW_MRT, t_show_mrt},
- { KEYWORD, "metric", SHOW_METRIC, NULL},
+ { KEYWORD, "metrics", SHOW_METRIC, NULL},
{ ENDTOKEN, "", NONE, NULL}
};