1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Copyright 1997 Sun Microsystems, Inc. All Rights Reserved.
23 * Use is subject to license terms.
24 */
25
26 #pragma ident "%Z%%M% %I% %E% SMI"
27
28 #include <stdio.h>
29 #include <string.h>
30 #include <stdlib.h>
31
32 #include "sea_i18n.h"
33
34 void
usage()35 usage()
36 {
37 fprintf(stderr, FGET("%s\n"),
38 MGET("Usage:"));
39
40 fprintf(stderr, FGET("%s\n"),
41 MGET(" trapsend"));
42 fprintf(stderr, FGET("%s\t\t%s\n"),
43 MGET(" [-h host]"),
44 MGET("(default = localhost)"));
45 fprintf(stderr, FGET("%s\t%s\n"),
46 MGET(" [-c community]"),
47 MGET("(default = public)"));
48 fprintf(stderr, FGET("%s\t%s\n"),
49 MGET(" [-e enterprise | -E enterprise_str]"),
50 MGET("(default = 1.3.6.1.4.1.42)"));
51 fprintf(stderr, FGET("%s\t\t%s\n"),
52 MGET(" [-g generic#]"),
53 MGET("(range 0..6, default = 6)"));
54 fprintf(stderr, FGET("%s\t%s\n"),
55 MGET(" [-s specific#]"),
56 MGET("(default = 1)"));
57 fprintf(stderr, FGET("%s\t\t%s\n"),
58 MGET(" [-i ipaddr]"),
59 MGET("(default = localhost)"));
60 fprintf(stderr, FGET("%s\t%s\n"),
61 MGET(" [-p trap_port]"),
62 MGET("(default = 162)"));
63 fprintf(stderr, FGET("%s\t%s\n"),
64 MGET(" [-t timestamp]"),
65 MGET("(a time in unix-time format, default is uptime)"));
66 fprintf(stderr, FGET("%s\n"),
67 MGET(" -a \"object-id object-type ( object-value )\""));
68 fprintf(stderr, FGET("%s\t%s\n"),
69 MGET(" [-T trace-level]"),
70 MGET("(range 0..4, default = 0)\n"));
71 fprintf(stderr, FGET("%s\n"),
72 MGET(" Note: Valid object types are:"));
73 fprintf(stderr, FGET("%s\n"),
74 MGET(" STRING"));
75 fprintf(stderr, FGET("%s\n"),
76 MGET(" INTEGER"));
77 fprintf(stderr, FGET("%s\n"),
78 MGET(" COUNTER"));
79 fprintf(stderr, FGET("%s\n"),
80 MGET(" GAUGE"));
81 fprintf(stderr, FGET("%s\n"),
82 MGET(" TIMETICKS"));
83 fprintf(stderr, FGET("%s\n"),
84 MGET(" OBJECTID"));
85 fprintf(stderr, FGET("%s\n"),
86 MGET(" IPADDRESS"));
87 fprintf(stderr, FGET("%s\n"),
88 MGET(" OPAQUE"));
89
90 exit(1);
91 } /* usage */
92
93
94