Lines Matching +full:per +full:- +full:console

2  * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
3 * Copyright (c) 2002-2011 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
7 * Copyright (c) 2009-2011 ZIH, TU Dresden, Federal Republic of Germany. All rights reserved.
19 * - Redistributions of source code must retain the above
23 * - Redistributions in binary form must reproduce the above
79 printf("OpenSM: Got signal %d - exiting...\n", signum); in mark_exit_flag()
130 printf("\n------- OpenSM - Usage and options ----------------------\n"); in show_usage()
133 printf("--version\n Prints OpenSM version and exits.\n\n"); in show_usage()
134 printf("--config, -F <file-name>\n" in show_usage()
138 printf("--create-config, -c <file-name>\n" in show_usage()
141 printf("--guid, -g <GUID in hex>\n" in show_usage()
147 " Without -g, OpenSM tries to use the default port.\n\n"); in show_usage()
148 printf("--lmc, -l <LMC>\n" in show_usage()
151 " The LMC value must be in the range 0-7.\n" in show_usage()
156 " Without -l, OpenSM defaults to LMC = 0, which allows\n" in show_usage()
158 printf("--priority, -p <PRIORITY>\n" in show_usage()
163 printf("--smkey, -k <SM_Key>\n" in show_usage()
170 printf("--reassign_lids, -r\n" in show_usage()
172 " end nodes. Specifying -r on a running subnet\n" in show_usage()
174 " Without -r, OpenSM attempts to preserve existing\n" in show_usage()
176 printf("--routing_engine, -R <engine name>\n" in show_usage()
184 … " Supported engines: updn, dnup, file, ftree, lash, dor, torus-2QoS, dfsssp, sssp\n\n"); in show_usage()
185 printf("--do_mesh_analysis\n" in show_usage()
190 printf("--lash_start_vl <vl number>\n" in show_usage()
193 printf("--sm_sl <sl number>\n" in show_usage()
195 printf("--connect_roots, -z\n" in show_usage()
197 " fat-tree) to make connectivity between root switches\n" in show_usage()
201 printf("--ucast_cache, -A\n" in show_usage()
210 printf("--lid_matrix_file, -M <file name>\n" in show_usage()
214 printf("--lfts_file, -U <file name>\n" in show_usage()
218 printf("--sadb_file, -S <file name>\n" in show_usage()
221 printf("--root_guid_file, -a <path to file>\n" in show_usage()
222 " Set the root nodes for the Up/Down or Fat-Tree routing\n" in show_usage()
225 printf("--cn_guid_file, -u <path to file>\n" in show_usage()
226 " Set the compute nodes for the Fat-Tree or DFSSSP/SSSP routing algorithms\n" in show_usage()
228 printf("--io_guid_file, -G <path to file>\n" in show_usage()
229 " Set the I/O nodes for the Fat-Tree or DFSSSP/SSSP routing algorithms\n" in show_usage()
231 printf("--port-shifting\n" in show_usage()
234 printf("--scatter-ports <random seed>\n" in show_usage()
236 " Assign ports in a random order instead of round-robin\n" in show_usage()
238 printf("--max_reverse_hops, -H <hop_count>\n" in show_usage()
241 printf("--ids_guid_file, -m <path to file>\n" in show_usage()
244 " (format: <guid> <id> per line)\n\n"); in show_usage()
245 printf("--guid_routing_order_file, -X <path to file>\n" in show_usage()
249 printf("--torus_config <path to file>\n" in show_usage()
251 " info needed for the torus-2QoS routing engine. The default\n" in show_usage()
253 printf("--once, -o\n" in show_usage()
256 printf("--sweep, -s <interval>\n" in show_usage()
258 " subnet sweeps. Specifying -s 0 disables sweeping.\n" in show_usage()
259 " Without -s, OpenSM defaults to a sweep interval of\n" in show_usage()
261 printf("--timeout, -t <milliseconds>\n" in show_usage()
265 " Without -t, OpenSM defaults to a timeout value of\n" in show_usage()
267 printf("--retries <number>\n" in show_usage()
270 " Without --retries, OpenSM defaults to %u retries\n" in show_usage()
272 printf("--maxsmps, -n <number>\n" in show_usage()
275 " Specifying --maxsmps 0 allows unlimited outstanding\n" in show_usage()
277 " Without --maxsmps, OpenSM defaults to a maximum of\n" in show_usage()
279 printf("--console, -q [off|local" in show_usage()
286 "]\n This option activates the OpenSM console (default off).\n\n"); in show_usage()
288 printf("--console-port, -C <port>\n" in show_usage()
289 " Specify an alternate telnet port for the console (default %d).\n\n", in show_usage()
292 printf("--ignore_guids, -i <equalize-ignore-guids-file>\n" in show_usage()
296 printf("--hop_weights_file, -w <path to file>\n" in show_usage()
298 " factor per port for customizing the least weight\n" in show_usage()
300 printf("--port_search_ordering_file, -O <path to file>\n" in show_usage()
306 printf("--dimn_ports_file, -O <path to file> (DEPRECATED)\n" in show_usage()
307 " Use --port_search_ordering_file instead.\n" in show_usage()
311 printf("--honor_guid2lid, -x\n" in show_usage()
315 printf("--log_file, -f <log-file-name>\n" in show_usage()
318 " For the log to go to standard output use -f stdout.\n\n"); in show_usage()
319 printf("--log_limit, -L <size in MB>\n" in show_usage()
323 printf("--erase_log_file, -e\n" in show_usage()
327 printf("--Pconfig, -P <partition-config-file>\n" in show_usage()
331 printf("--no_part_enforce, -N (DEPRECATED)\n" in show_usage()
332 " Use --part_enforce instead.\n" in show_usage()
334 printf("--part_enforce, -Z [both, in, out, off]\n" in show_usage()
338 printf("--allow_both_pkeys, -W\n" in show_usage()
342 printf("--qos, -Q\n" " This option enables QoS setup.\n\n"); in show_usage()
343 printf("--qos_policy_file, -Y <QoS-policy-file>\n" in show_usage()
347 printf("--congestion_control\n" in show_usage()
349 printf("--cc_key <key>\n" in show_usage()
352 printf("--stay_on_fatal, -y\n" in show_usage()
357 printf("--daemon, -B\n" in show_usage()
358 " Run in daemon mode - OpenSM will run in the background.\n\n"); in show_usage()
359 printf("--inactive, -I\n" in show_usage()
362 printf("--perfmgr\n" " Start with PerfMgr enabled.\n\n"); in show_usage()
363 printf("--perfmgr_sweep_time_s <sec.>\n" in show_usage()
366 printf("--prefix_routes_file <path to file>\n" in show_usage()
369 " queries for off-subnet DGIDs. Default file is:\n" in show_usage()
371 printf("--consolidate_ipv6_snm_req\n" in show_usage()
373 " per MGID scope and P_Key.\n\n"); in show_usage()
374 printf("--guid_routing_order_no_scatter\n" in show_usage()
376 printf("--log_prefix <prefix text>\n" in show_usage()
378 printf("--verbose, -v\n" in show_usage()
380 " The -v option may be specified multiple times\n" in show_usage()
382 " See the -D option for more information about\n" in show_usage()
384 printf("--V, -V\n" in show_usage()
387 " The -V is equivalent to '-D 0xFF -d 2'.\n" in show_usage()
388 " See the -D option for more information about\n" in show_usage()
390 printf("--D, -D <flags>\n" in show_usage()
392 " A flags field must follow the -D option.\n" in show_usage()
396 " ---- -----------------\n" in show_usage()
397 " 0x01 - ERROR (error messages)\n" in show_usage()
398 " 0x02 - INFO (basic messages, low volume)\n" in show_usage()
399 " 0x04 - VERBOSE (interesting stuff, moderate volume)\n" in show_usage()
400 " 0x08 - DEBUG (diagnostic, high volume)\n" in show_usage()
401 " 0x10 - FUNCS (function entry/exit, very high volume)\n" in show_usage()
402 " 0x20 - FRAMES (dumps all SMP and GMP frames)\n" in show_usage()
403 " 0x40 - ROUTING (dump FDB routing information)\n" in show_usage()
404 " 0x80 - currently unused.\n" in show_usage()
405 " Without -D, OpenSM defaults to ERROR + INFO (0x3).\n" in show_usage()
406 " Specifying -D 0 disables all messages.\n" in show_usage()
407 " Specifying -D 0xFF enables all messages (see -V).\n" in show_usage()
409 " the transaction timeout with the -t option.\n\n"); in show_usage()
410 printf("--debug, -d <number>\n" in show_usage()
413 " The number following -d selects the debug\n" in show_usage()
416 " --- -----------------\n" in show_usage()
417 " -d0 - Ignore other SM nodes\n" in show_usage()
418 " -d1 - Force single threaded dispatching\n" in show_usage()
419 " -d2 - Force log flushing after each log message\n" in show_usage()
420 " -d3 - Disable multicast support\n" in show_usage()
421 " -d10 - Put OpenSM in testability mode\n" in show_usage()
422 " Without -d, no debug options are enabled\n\n"); in show_usage()
423 printf("--help, -h, -?\n" in show_usage()
444 status = osm_vendor_get_all_port_attr(p_osm->p_vendor, attr_array, in get_port_guid()
452 /* if num_ports is 0 - return 0 */ in get_port_guid()
464 /* If port_guid is 0 - use the first connected port */ in get_port_guid()
476 if (p_osm->subn.opt.daemon) in get_port_guid()
479 /* More than one possible port - list all ports and let the user in get_port_guid()
491 printf("\nEnter choice (0-%u): ", i); in get_port_guid()
503 choice--; in get_port_guid()
524 return -1; in daemonize()
529 exit(-1); in daemonize()
537 exit(-1); in daemonize()
569 if (!osm_console_init(p_opt, &p_osm->console, &p_osm->log)) in osm_manager_loop()
574 Sit here forever - dwell or do console i/o & cmds in osm_manager_loop()
585 osm_log_reopen_file(&(p_osm->log)); in osm_manager_loop()
590 p_osm->subn.force_heavy_sweep = TRUE; in osm_manager_loop()
595 osm_console_exit(&p_osm->console, &p_osm->log); in osm_manager_loop()
629 {"create-config", 1, NULL, 'c'}, in main()
653 {"console", 1, NULL, 'q'}, in main()
669 {"port-shifting", 0, NULL, 11}, in main()
670 {"scatter-ports", 1, NULL, 14}, in main()
677 {"console-port", 1, NULL, 'C'}, in main()
698 /* force stdout to be line-buffered */ in main()
711 printf("-------------------------------------------------\n"); in main()
725 } while (next_option != -1); in main()
742 case 12: /* --version - already printed above */ in main()
795 /* If guid is 0 - need to display the in main()
838 * OpenSM interactive console in main()
849 SET_STR_OPT(opt.console, optarg); in main()
851 printf("-console %s option not understood\n", in main()
894 return -1; in main()
902 printf(" verbose option -D = 0x%x\n", opt.log_flags); in main()
947 printf("-part_enforce %s option not understood\n", in main()
980 printf(" Verbose option -v (log flags = 0x%X)\n", in main()
995 return -1; in main()
1113 return -1; in main()
1123 return -1; in main()
1139 printf("Torus-2QoS config file = %s\n", opt.torus_conf_file); in main()
1150 case -1: in main()
1155 } while (next_option != -1); in main()
1160 printf("-------------------------------------------------\n"); in main()
1180 return -1; in main()