summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2013-10-01 14:16:21 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2013-10-01 14:16:21 +0000
commita3c58e4e3757d8163ae2ce9ab7116d0a6210a0a4 (patch)
tree501d2deca388291127b86a5eac106b74b161e56d /usr.sbin
parent53b7d87d8e0055f675a74d23fb2100128103bbd7 (diff)
Add shorter alias "snmpctl walk".
Requested by deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/snmpctl/parser.c3
-rw-r--r--usr.sbin/snmpctl/snmpctl.86
2 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/snmpctl/parser.c b/usr.sbin/snmpctl/parser.c
index d733e3ac475..14710973fe3 100644
--- a/usr.sbin/snmpctl/parser.c
+++ b/usr.sbin/snmpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.11 2013/10/01 12:41:48 reyk Exp $ */
+/* $OpenBSD: parser.c,v 1.12 2013/10/01 14:16:20 reyk Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org>
@@ -90,6 +90,7 @@ static const struct token t_main[] = {
{KEYWORD, "show", NONE, t_show},
{KEYWORD, "snmp", NONE, t_snmp},
{KEYWORD, "trap", NONE, t_trap},
+ {KEYWORD, "walk", WALK, t_snmphost},
{ENDTOKEN, "", NONE, NULL}
};
diff --git a/usr.sbin/snmpctl/snmpctl.8 b/usr.sbin/snmpctl/snmpctl.8
index fdcec9ecbe6..cf7f7f3ab73 100644
--- a/usr.sbin/snmpctl/snmpctl.8
+++ b/usr.sbin/snmpctl/snmpctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: snmpctl.8,v 1.15 2013/10/01 12:41:49 reyk Exp $
+.\" $OpenBSD: snmpctl.8,v 1.16 2013/10/01 14:16:20 reyk Exp $
.\"
.\" Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
.\"
@@ -137,6 +137,10 @@ This type takes no argument.
An string describing an Object ID, for example
.Ar 1.3.6.1.4.1.30155 .
.El
+.It Cm walk Ar host
+Alias for
+.Ic snmp walk Ar host ,
+see above.
.El
.Sh FILES
.Bl -tag -width "/var/run/snmpd.sockXX" -compact