X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Futils%2Fptlctl.c;h=03cfe777b20919a6072186030452ce8326a627b7;hb=3fed8a248a88129a08d2579a988249e648931582;hp=8c56d93395529c8ec82612bb84f8c48eaef8a27c;hpb=96ec6856f91f7f9031cfce4273c714d72cfe59ae;p=fs%2Flustre-release.git diff --git a/lnet/utils/ptlctl.c b/lnet/utils/ptlctl.c index 8c56d93..03cfe77 100644 --- a/lnet/utils/ptlctl.c +++ b/lnet/utils/ptlctl.c @@ -30,18 +30,27 @@ command_t list[] = { {"network", jt_ptl_network, 0,"setup the NAL (args: nal name)"}, - {"connect", jt_ptl_connect, 0, "connect to a remote nid (args: | for tcp/elan respectively)"}, - {"disconnect", jt_ptl_disconnect, 0, "disconnect from a remote nid (args: [hostname]"}, - {"push", jt_ptl_push_connection, 0, "flush connection to a remote nid (args: [hostname]"}, + {"print_interfaces", jt_ptl_print_interfaces, 0, "print interface entries (no args)"}, + {"add_interface", jt_ptl_add_interface, 0, "add interface entry (args: ip [netmask])"}, + {"del_interface", jt_ptl_del_interface, 0, "delete interface entries (args: [ip])"}, + {"print_peers", jt_ptl_print_peers, 0, "print peer entries (no args)"}, + {"add_peer", jt_ptl_add_peer, 0, "add peer entry (args: nid host port)"}, + {"del_peer", jt_ptl_del_peer, 0, "delete peer entry (args: [nid] [host])"}, + {"print_conns", jt_ptl_print_connections, 0, "print connections (no args)"}, + {"connect", jt_ptl_connect, 0, "connect to a remote nid (args: host port [iIOC])"}, + {"disconnect", jt_ptl_disconnect, 0, "disconnect from a remote nid (args: [nid] [host]"}, + {"push", jt_ptl_push_connection, 0, "flush connection to a remote nid (args: [nid]"}, + {"active_tx", jt_ptl_print_active_txs, 0, "print active transmits (no args)"}, {"ping", jt_ptl_ping, 0, "do a ping test (args: nid [count] [size] [timeout])"}, {"shownid", jt_ptl_shownid, 0, "print the local NID"}, {"mynid", jt_ptl_mynid, 0, "inform the socknal of the local NID (args: [hostname])"}, - {"add_route", jt_ptl_add_route, 0, "add an entry to the routing table (args: gatewayNID targetNID [targetNID])"}, - {"del_route", jt_ptl_del_route, 0, "delete an entry from the routing table (args: targetNID"}, + {"add_route", jt_ptl_add_route, 0, + "add an entry to the routing table (args: gatewayNID targetNID [targetNID])"}, + {"del_route", jt_ptl_del_route, 0, + "delete all routes via a gateway from the routing table (args: gatewayNID"}, + {"set_route", jt_ptl_notify_router, 0, + "enable/disable a route in the routing table (args: gatewayNID up/down [time]"}, {"print_routes", jt_ptl_print_routes, 0, "print the routing table (args: none)"}, - {"recv_mem", jt_ptl_rxmem, 0, "Set socket receive buffer size (args: [size])"}, - {"send_mem", jt_ptl_txmem, 0, "Set socket send buffer size (args: [size])"}, - {"nagle", jt_ptl_nagle, 0, "Enable/Disable Nagle (args: [on/off])"}, {"dump", jt_ioc_dump, 0, "usage: dump file, save ioctl buffer to file"}, {"fail", jt_ptl_fail_nid, 0, "usage: fail nid|_all_ [count]"}, {"help", Parser_help, 0, "help"},