makeroutes - add or delete routes to/from the os route table on nodes.
makeroutes [-r|--routename r1[,r2...]]
makeroutes [-d|--delete] [-r|--routenames r1[,r2...]]
makeroutes noderange [-r|--routename r1[,r2...]]
makeroutes noderange [-d|--delete] [-r|--routenames r1[,r2...]]
makeroutes [-h|--help|-v|--version]
The makeroutes command adds or deletes routes on the management node or any given nodes. The noderange specifies the nodes where the routes are to be added or removed. When the noderange is omitted, the action will be done on the management node. The -r option specifies the name of routes. The details of the routes are defined in the routes table which contains the route name, subnet, net mask and gateway. If -r option is omitted, the names of the routes found on noderes.routenames for the nodes or on site.mnroutenames for the management node will be used.
If you want the routes be automatically setup during node deployment, first put a list of route names to noderes.routenames and then add setroute script name to the postscripts.postbootscripts for the nodes.
noderange specifies the nodes where the routes are to be added or removed. If omitted, the operation will be done on the management node.
Specifies to delete the given routes. If not specified, the action is to add routes.
Specifies a list of comma separated route names defined in the routes table. If omitted, all routes defined in noderes.routenames for nodes or site.mnroutenames for the management node will be used.
Display usage message.
Command Version.
makeroutes
makeroutes node1
makeroutes -r rr1,rr2
makeroutes node1,node2 -d -r rr1,rr2
/opt/xcat/sbin/makeroutes