diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-01-17 10:10:33 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-01-17 10:10:33 +0000 |
commit | eb329e7c2add60bb082145a3f5e8166c26e8de80 (patch) | |
tree | 4d299049f2331fb4601c7f0ba1fbb1b33113ad1c /usr.bin/snmp | |
parent | 70b2f3190098c61f359d53988a369db30c7b661d (diff) |
Some minor usage() bits omitted in the original diffs.
Diffstat (limited to 'usr.bin/snmp')
-rw-r--r-- | usr.bin/snmp/snmp.1 | 3 | ||||
-rw-r--r-- | usr.bin/snmp/snmpc.c | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/snmp/snmp.1 b/usr.bin/snmp/snmp.1 index 3bba7b09ec7..321e37ab595 100644 --- a/usr.bin/snmp/snmp.1 +++ b/usr.bin/snmp/snmp.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: snmp.1,v 1.10 2020/01/17 10:03:39 martijn Exp $ +.\" $OpenBSD: snmp.1,v 1.11 2020/01/17 10:10:32 martijn Exp $ .\" .\" Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org> .\" @@ -199,6 +199,7 @@ This option is only used by For the .Cm bulkget , .Cm bulkwalk , +.Cm df , and .Cm walk subcommands, set the application specific diff --git a/usr.bin/snmp/snmpc.c b/usr.bin/snmp/snmpc.c index 641272173b2..42dc0ead9d1 100644 --- a/usr.bin/snmp/snmpc.c +++ b/usr.bin/snmp/snmpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpc.c,v 1.19 2020/01/17 10:03:39 martijn Exp $ */ +/* $OpenBSD: snmpc.c,v 1.20 2020/01/17 10:10:32 martijn Exp $ */ /* * Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org> @@ -71,12 +71,12 @@ struct snmp_app { struct snmp_app snmp_apps[] = { { "get", 1, NULL, "agent oid ...", snmpc_get }, { "getnext", 1, NULL, "agent oid ...", snmpc_get }, - { "walk", 1, "C:", "[-C cIipt] [-C E endoid] agent [oid]", snmpc_walk }, + { "walk", 1, "C:", "[-C cIipt] [-C E endoid] [-C s skipoid] agent [oid]", snmpc_walk }, { "bulkget", 1, "C:", "[-C n<nonrep>r<maxrep>] agent oid ...", snmpc_get }, - { "bulkwalk", 1, "C:", "[-C cipn<nonrep>r<maxrep>] agent [oid]", snmpc_walk }, + { "bulkwalk", 1, "C:", "[-C cipn<nonrep>r<maxrep>] [-C s skipoid] agent [oid]", snmpc_walk }, { "set", 1, NULL, "agent oid type value [oid type value] ...", snmpc_set }, { "trap", 1, NULL, "agent uptime oid [oid type value] ...", snmpc_trap }, - { "df", 1, "C:", "[-Ch] agent", snmpc_df }, + { "df", 1, "C:", "[-Ch] [-Cr<maxrep>] agent", snmpc_df }, { "mibtree", 0, "O:", "[-O fnS]", snmpc_mibtree } }; struct snmp_app *snmp_app = NULL; |