diff options
author | Stef Walter <stef@memberwebs.com> | 2009-01-16 19:58:16 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-01-16 19:58:16 +0000 |
commit | f2151e0693150b94009aa77d68a1294f53f79dd3 (patch) | |
tree | 491672637f4e24fb38e7d710309f96e5976c826c /tools | |
parent | 3ad6ae1b3929440ac88cd01b6636702c97be38df (diff) |
- Add support for printing out MIB name in rrdbot-get
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rrdbot-get.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/rrdbot-get.c b/tools/rrdbot-get.c index 9b038dd..c6be921 100644 --- a/tools/rrdbot-get.c +++ b/tools/rrdbot-get.c @@ -199,7 +199,7 @@ print_result (struct snmp_value* value) if (ctx.numeric) printf ("%s", asn_oid2str (&value->var)); else - mib_format (&value->var, stdout); + mib_format (&value->var, stdout, ctx.verbose); printf(": "); @@ -398,8 +398,8 @@ process_simple (void) static void usage() { - fprintf(stderr, "usage: rrdbot-get [-Mnrv] [-t timeout] [-m mibdir] snmp://community@host/oid\n"); - fprintf(stderr, " rrdbot-get -V\n"); + fprintf(stderr, "usage: rrdbot-get -V\n"); + fprintf(stderr, " rrdbot-get [-Mnrv] [-t timeout] [-m mibdir] [-s srcaddr] snmp://community@host/oid\n"); exit(2); } |