Esempio n. 1
0
void
usage(void)
{
    fprintf(stderr, "Usage: snmpusm ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, " COMMAND\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr, "\nsnmpusm commands:\n");
    fprintf(stderr, "  [options]               create     USER [CLONEFROM-USER]\n");
    fprintf(stderr, "  [options]               delete     USER\n");
    fprintf(stderr, "  [options]               activate   USER\n");
    fprintf(stderr, "  [options]               deactivate USER\n");
    fprintf(stderr, "  [options] [-Cw]         cloneFrom  USER CLONEFROM-USER\n");
    fprintf(stderr, "  [options] [-Ca] [-Cx]   changekey  [USER]\n");
    fprintf(stderr,
            "  [options] [-Ca] [-Cx]   passwd     OLD-PASSPHRASE NEW-PASSPHRASE [USER]\n");
    fprintf(stderr,
            "  [options] (-Ca|-Cx) -Ck passwd     OLD-KEY-OR-PASS NEW-KEY-OR-PASS [USER]\n");
    fprintf(stderr, "\nsnmpusm options:\n");
    fprintf(stderr, "\t-CE ENGINE-ID\tSet usmUserEngineID (e.g. 800000020109840301).\n");
    fprintf(stderr, "\t-Cp STRING\tSet usmUserPublic value to STRING.\n");
    fprintf(stderr, "\t-Cw\t\tCreate the user with createAndWait.\n");
    fprintf(stderr, "\t\t\t(it won't be active until you active it)\n");
    fprintf(stderr, "\t-Cx\t\tChange the privacy key.\n");
    fprintf(stderr, "\t-Ca\t\tChange the authentication key.\n");
    fprintf(stderr, "\t-Ck\t\tAllows one to use localized key (must start with 0x)\n");
    fprintf(stderr, "\t\t\tinstead of passphrase.\n");
}
Esempio n. 2
0
void
usage (void)
{
  fprintf(stderr,"Usage:\n  snmpget ");
  snmp_parse_args_usage(stderr);
  fprintf(stderr," [<objectID> ...]\n\n");
  snmp_parse_args_descriptions(stderr);
}
Esempio n. 3
0
void usage (void)
{
    fprintf (stderr, "USAGE: snmpbulkget ");
    snmp_parse_args_usage (stderr);
    fprintf (stderr, " OID [OID]...\n\n");
    snmp_parse_args_descriptions (stderr);
    fprintf (stderr, "  -C APPOPTS\t\tSet various application specific behaviours:\n");
    fprintf (stderr, "\t\t\t  n<NUM>:  set non-repeaters to <NUM>\n");
    fprintf (stderr, "\t\t\t  r<NUM>:  set max-repeaters to <NUM>\n");
}
Esempio n. 4
0
/*
  Print usage info.
*/
void usage(void) {
	fprintf(stderr, "USAGE: check_cisco ");
	snmp_parse_args_usage(stderr);
	fprintf(stderr, " [OID]\n\n");
	snmp_parse_args_descriptions(stderr);
	fprintf(stderr, "Application specific options.\n");
	fprintf(stderr, "  -C APPOPTS\n");
	fprintf(stderr, "\t\t\t  c:  Set the critical threshold.\n");
	fprintf(stderr, "\t\t\t  m:  Set the operation mode [cpu|failover|memory|sessions|temp|3750temp]\n");
	fprintf(stderr, "\t\t\t  w:  Set the warning threshold.\n");
}
Esempio n. 5
0
void
usage(void)
{
    fprintf(stderr, "USAGE: snmpget ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, " OID [OID]...\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr,
            "  -C APPOPTS\t\tSet various application specific behaviours:\n");
    fprintf(stderr,
            "\t\t\t  f:  do not fix errors and retry the request\n");
}
Esempio n. 6
0
void usage (void)
{
    fprintf (stderr, "USAGE: %s ", inform ? "snmpinform" : "snmptrap");
    snmp_parse_args_usage (stderr);
    fprintf (stderr, " TRAP-PARAMETERS\n\n");
    snmp_parse_args_descriptions (stderr);
    fprintf (stderr, "  -C APPOPTS\t\tSet various application specific behaviour:\n");
    fprintf (stderr, "\t\t\t  i:  send an INFORM instead of a TRAP\n");
    fprintf (stderr,
             "\n  -v 1 TRAP-PARAMETERS:\n\t enterprise-oid agent trap-type specific-type uptime [OID TYPE VALUE]...\n");
    fprintf (stderr, "  or\n");
    fprintf (stderr, "  -v 2 TRAP-PARAMETERS:\n\t uptime trapoid [OID TYPE VALUE] ...\n");
}
Esempio n. 7
0
void
usage(void)
{
    fprintf(stderr, "Usage: snmpdf [-Cu] ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, "\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr, "\nsnmpdf options:\n");
    fprintf(stderr,
            "\t-Cu\tUse UCD-SNMP dskTable to do the calculations.\n");
    fprintf(stderr,
            "\t\t[Normally the HOST-RESOURCES-MIB is consulted first.]\n");
}
Esempio n. 8
0
void usage (void)
{
    fprintf (stderr, "USAGE: snmpset ");
    snmp_parse_args_usage (stderr);
    fprintf (stderr, " OID TYPE VALUE [OID TYPE VALUE]...\n\n");
    snmp_parse_args_descriptions (stderr);
    fprintf (stderr, "  -C APPOPTS\t\tSet various application specific behaviours:\n");
    fprintf (stderr, "\t\t\t  q:  don't print results on success\n");
    fprintf (stderr, "\n  TYPE: one of i, u, t, a, o, s, x, d, b\n");
    fprintf (stderr, "\ti: INTEGER, u: unsigned INTEGER, t: TIMETICKS, a: IPADDRESS\n");
    fprintf (stderr, "\to: OBJID, s: STRING, x: HEX STRING, d: DECIMAL STRING, b: BITS\n");
#ifdef NETSNMP_WITH_OPAQUE_SPECIAL_TYPES
    fprintf (stderr, "\tU: unsigned int64, I: signed int64, F: float, D: double\n");
#endif                            /* NETSNMP_WITH_OPAQUE_SPECIAL_TYPES */

}
Esempio n. 9
0
void
usage(void)
{
    fprintf(stderr, "Usage: snmpusm ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, " COMMAND\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr, "\nsnmpusm commands:\n");
    fprintf(stderr, "  create    USER [CLONEFROM-USER]\n");
    fprintf(stderr, "  delete    USER\n");
    fprintf(stderr, "  cloneFrom USER CLONEFROM-USER\n");
    fprintf(stderr,
            "  [-Co] [-Ca] [-Cx] passwd OLD-PASSPHRASE NEW-PASSPHRASE\n");
    fprintf(stderr, "\t\t-Co\t\tUse the ownKeyChange objects.\n");
    fprintf(stderr, "\t\t-Cx\t\tChange the privacy key.\n");
    fprintf(stderr, "\t\t-Ca\t\tChange the authentication key.\n");
}
void
usage(void)
{
    fprintf(stderr, "USAGE: snmpbulkwalk ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, " [OID]\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr,
            "  -C APPOPTS\t\tSet various application specific behaviours:\n");
    fprintf(stderr,
            "\t\t\t  c:       do not check returned OIDs are increasing\n");
    fprintf(stderr,
            "\t\t\t  i:       include given OIDs in the search range\n");
    fprintf(stderr, "\t\t\t  n<NUM>:  set non-repeaters to <NUM>\n");
    fprintf(stderr,
            "\t\t\t  p:       print the number of variables found\n");
    fprintf(stderr, "\t\t\t  r<NUM>:  set max-repeaters to <NUM>\n");
}
Esempio n. 11
0
void
usage(void)
{
    fprintf(stderr, "USAGE: snmpwalk ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, " [OID]\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr,
            "  -C APPOPTS\t\tSet various application specific behaviours:\n");
    fprintf(stderr, "\t\t\t  p:  print the number of variables found\n");
    fprintf(stderr, "\t\t\t  i:  include given OID in the search range\n");
    fprintf(stderr, "\t\t\t  I:  don't include the given OID, even if no results are returned\n");
    fprintf(stderr,
            "\t\t\t  c:  do not check returned OIDs are increasing\n");
    fprintf(stderr,
            "\t\t\t  t:  Display wall-clock time to complete the request\n");
    fprintf(stderr, "\t\t\t  E {OID}:  End the walk at the specified OID\n");
}
Esempio n. 12
0
void usage (void)
{
    fprintf (stderr, "Usage: snmpvacm ");
    snmp_parse_args_usage (stderr);
    fprintf (stderr, " COMMAND\n\n");
    snmp_parse_args_descriptions (stderr);
    fprintf (stderr, "\nsnmpvacm commands:\n");
    fprintf (stderr,
             "        createAccess     GROUPNAME [CONTEXTPREFIX] SECURITYMODEL SECURITYLEVEL CONTEXTMATCH READVIEWNAME WRITEVIEWNAME NOTIFYVIEWNAME\n");
    fprintf (stderr, "        deleteAccess     GROUPNAME [CONTEXTPREFIX] SECURITYMODEL SECURITYLEVEL\n");
    fprintf (stderr, "        createSec2Group  MODEL SECURITYNAME  GROUPNAME\n");
    fprintf (stderr, "        deleteSec2Group  MODEL SECURITYNAME\n");
    fprintf (stderr, "  [-Ce] createView       NAME SUBTREE [MASK]\n");
    fprintf (stderr, "        deleteView       NAME SUBTREE\n");
    fprintf (stderr,
             "        createAuth       GROUPNAME [CONTEXTPREFIX] SECURITYMODEL SECURITYLEVEL AUTHTYPE CONTEXTMATCH VIEWNAME\n");
    fprintf (stderr, "        deleteAuth       GROUPNAME [CONTEXTPREFIX] SECURITYMODEL SECURITYLEVEL AUTHTYPE\n");
}
Esempio n. 13
0
void
usage(void)
{
    fprintf(stderr, "Usage: snmpps [-Cp] [-Ca] [-C m | n | t] AGENT");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, "\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr, "\nsnmpps options:\n");
    fprintf(stderr,
            "\t-Cp\tShow hrSWRunPath instead of hrSWRunName\n");
    fprintf(stderr,
            "\t-Ca\tShow hrSWRunParameters in addition to hrSWRunName/Path\n");
    fprintf(stderr,
            "\t-Ct\tSort processes according to CPU time used\n");
    fprintf(stderr,
            "\t-Cm\tSort processes according to memory usage\n");
    fprintf(stderr,
            "\t-Cn\tSort processes by PID number (default)\n");
}
Esempio n. 14
0
void
usage(void)
{
    fprintf(stderr, "USAGE: snmptls [-Cm mapTypeOID] [-Cd data] [-Cs storageType] ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, "<command> [command options]\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr, "  [options]   certToSecName add <priority> <hashType> <fingerprint>\n");
    fprintf(stderr, "\t-Cm\t\tMaptype; [snmpTlstmCertCommonName|snmpTlstmCertSANRFC822Name|snmpTlstmCertSANIpAddress|snmpTlstmCertSANDNSName|snmpTlstmCertSpecified]\n");
    fprintf(stderr, "\t\t\t(default is snmpTlstmCertSpecified)\n");
    fprintf(stderr, "\t-Cd\t\tData; data for snmpTlstmCertSpecified.\n");
    fprintf(stderr, "\t-Cs\t\tstorageType; default is nonVolatile.\n");

    fprintf(stderr, "  [options]   targetParamsFingerprint add <params-name> <hashType> <fingerprint>\n");
    fprintf(stderr, "\t-Cs\t\tstorageType; default is nonVolatile.\n");

    fprintf(stderr, "  [options]   targetAddr add <target-name> <hashType> [<hash_type> <remote-fingerprint>] [server-identity]\n");
    fprintf(stderr, "\t-Cs\t\tstorageType; default is nonVolatile.\n");

    exit(1);
}
Esempio n. 15
0
void
usage(void)
{
    fprintf(stderr, "USAGE: snmptable ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, " TABLE-OID\n\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr,
	    "  -C APPOPTS\t\tSet various application specific behaviours:\n");
    fprintf(stderr, "\t\t\t  b:       brief field names\n");
    fprintf(stderr, "\t\t\t  B:       do not use GETBULK requests\n");
    fprintf(stderr, "\t\t\t  c<NUM>:  print table in columns of <NUM> chars width\n");
    fprintf(stderr, "\t\t\t  f<STR>:  print table delimitied with <STR>\n");
    fprintf(stderr, "\t\t\t  h:       print only the column headers\n");
    fprintf(stderr, "\t\t\t  H:       print no column headers\n");
    fprintf(stderr, "\t\t\t  i:       print index values\n");
    fprintf(stderr, "\t\t\t  l:       left justify output\n");
    fprintf(stderr, "\t\t\t  r<NUM>:  for GETBULK: set max-repeaters to <NUM>\n");
    fprintf(stderr, "\t\t\t           for GETNEXT: retrieve <NUM> entries at a time\n");
    fprintf(stderr, "\t\t\t  w<NUM>:  print table in parts of <NUM> chars width\n");
}
Esempio n. 16
0
void
usage(void)
{
    fprintf(stderr,
            "Usage: snmpdelta [-Cf] [-CF commandFile] [-Cl] [-CL SumFileName]\n\t[-Cs] [-Ck] [-Ct] [-CS] [-Cv vars/pkt] [-Cp period]\n\t[-CP peaks] ");
    snmp_parse_args_usage(stderr);
    fprintf(stderr, " oid [oid ...]\n");
    snmp_parse_args_descriptions(stderr);
    fprintf(stderr, "snmpdelta specific options\n");
    fprintf(stderr, "  -Cf\t\tDon't fix errors and retry the request.\n");
    fprintf(stderr, "  -Cl\t\twrite configuration to file\n");
    fprintf(stderr, "  -CF config\tload configuration from file\n");
    fprintf(stderr, "  -Cp period\tspecifies the poll period\n");
    fprintf(stderr, "  -CP peaks\treporting period in poll periods\n");
    fprintf(stderr, "  -Cv vars/pkt\tnumber of variables per packet\n");
    fprintf(stderr, "  -Ck\t\tkeep seconds in output time\n");
    fprintf(stderr, "  -Cm\t\tshow max values\n");
    fprintf(stderr, "  -CS\t\tlog to a sum file\n");
    fprintf(stderr, "  -Cs\t\tshow timestamps\n");
    fprintf(stderr, "  -Ct\t\tget timing from agent\n");
    fprintf(stderr, "  -CT\t\tprint output in tabular form\n");
    fprintf(stderr, "  -CL sumfile\tspecifies the sum file name\n");
}