X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Flctl.c;h=c9d69aa9cd713f2ae9bb01a40d5c509b77c1ccae;hb=fe79e1b3a463c6ff8d6a8c8be2b9505df5a5702a;hp=c7a5b33b229c1a14aced70d7d383a245c3669a21;hpb=3629f184ebbcbdbde71caba3b29cda15d03cd9cf;p=fs%2Flustre-release.git diff --git a/lustre/utils/lctl.c b/lustre/utils/lctl.c index c7a5b33..c9d69aa 100644 --- a/lustre/utils/lctl.c +++ b/lustre/utils/lctl.c @@ -4,7 +4,7 @@ * Copyright (C) 2002 Cluster File Systems, Inc. * Author: Peter J. Braam * Author: Phil Schwan - * Author: Robert Read + * Author: Robert Read * * This file is part of Lustre, http://www.lustre.org. * @@ -24,8 +24,10 @@ */ + #include #include +#include #include #include "obdctl.h" #include "parser.h" @@ -39,35 +41,69 @@ static int jt_noop(int argc, char **argv) { return 0; } +static int jt_opt_ignore_errors(int argc, char **argv) { + Parser_ignore_errors(1); + return 0; +} + command_t cmdlist[] = { /* Metacommands */ - {"--device", jt_opt_device, 0, "--device "}, + {"--device", jt_opt_device, 0, + "run after connecting to device \n" + "--device "}, {"--threads", jt_opt_threads, 0, - "--threads "}, + "run separate instances of on device \n" + "--threads "}, + {"--ignore_errors", jt_opt_ignore_errors, 0, + "ignore errors that occur during script processing\n" + "--ignore_errors"}, + {"ignore_errors", jt_opt_ignore_errors, 0, + "ignore errors that occur during script processing\n" + "ignore_errors"}, + {"dump", jt_ioc_dump, 0, "usage: dump file, save ioctl buffer to file"}, /* Network configuration commands */ {"==== network config ====", jt_noop, 0, "network config"}, - {"network", jt_ptl_setup, 0, "commands that follow apply to net\n" - "usage: network "}, + {"--net", jt_opt_net, 0, "run after setting network to \n" + "usage: --net "}, + {"network", jt_ptl_network, 0, "commands that follow apply to net\n" + "usage: network "}, + {"autoconn_list", jt_ptl_print_autoconnects, 0, "print autoconnect entries\n" + "usage: print_autoconns"}, + {"add_autoconn", jt_ptl_add_autoconnect, 0, "add an autoconnect entry\n" + "usage: add_autoconn [ise]"}, + {"del_autoconn", jt_ptl_del_autoconnect, 0, "remove an autoconnect entry\n" + "usage: del_autoconn [] [] [ks]"}, + {"conn_list", jt_ptl_print_connections, 0, "connect to a remote nid\n" + "usage: print_conns"}, {"connect", jt_ptl_connect, 0, "connect to a remote nid\n" - "usage: connect [[ ] | ]"}, + "usage: connect [iIOC]"}, {"disconnect", jt_ptl_disconnect, 0, "disconnect from a remote nid\n" - "usage: disconnect "}, + "usage: disconnect []"}, + {"active_tx", jt_ptl_print_active_txs, 0, "print active transmits (no args)\n" + "usage: active_tx"}, {"mynid", jt_ptl_mynid, 0, "inform the socknal of the local nid. " "The nid defaults to hostname for tcp networks and is automatically " - "setup for elan/myrinet networks.\n" - "usage: mynid [nid]"}, - {"add_uuid", jt_ptl_add_uuid, 0, "associate a uuid with a nid\n" - "usage: add_uuid "}, - {"del_uuid", jt_ptl_del_uuid, 0, "delete a uuid association\n" + "setup for elan/myrinet/scimac networks.\n" + "usage: mynid []"}, + {"shownid", jt_ptl_shownid, 0, "print the local NID\n" + "usage: shownid"}, + {"add_uuid", jt_lcfg_add_uuid, 0, "associate a UUID with a nid\n" + "usage: add_uuid "}, + {"close_uuid", jt_obd_close_uuid, 0, "disconnect a UUID\n" + "usage: close_uuid )"}, + {"del_uuid", jt_lcfg_del_uuid, 0, "delete a UUID association\n" "usage: del_uuid "}, {"add_route", jt_ptl_add_route, 0, - "add an entry to the routing table\n" - "usage: add_route [target]"}, + "add an entry to the portals routing table\n" + "usage: add_route []"}, {"del_route", jt_ptl_del_route, 0, - "delete an entry from the routing table\n" - "usage: del_route "}, - {"route_list", jt_ptl_print_routes, 0, "print the routing table\n" + "delete the route via the given gateway to the given targets from the portals routing table\n" + "usage: del_route [] []"}, + {"set_route", jt_ptl_notify_router, 0, + "enable/disable routes via the given gateway in the portals routing table\n" + "usage: set_route [