30 #include <ndb_global.h> 
   32 #include "mgmapi_commands.h" 
   49 NDB_COMMAND(mgmSrvApi, 
"mgmSrvApi", 
"mgmSrvApi -n <Number of nodes to crash> -i <Node ID to be crashed> -p <IP address:port number>", 
"Management Server API testing", 65535){
 
   58     if (strcmp(argv[i], 
"-n") == 0) 
 
   59       nodesNo = atoi(argv[i+1]);
 
   61     if (strcmp(argv[i], 
"-i") == 0) 
 
   62       ndbID = atoi(argv[i+1]);
 
   64     if (strcmp(argv[i], 
"-p") == 0)
 
   74   ndbout << 
"Creating handle..." << endl;
 
   80   ndbout << 
"Connecting..." << endl;
 
   82     ndbout << 
"Connection to " << Addr << 
" failed" << endl;
 
   89   ndbout << 
"Getting status..." << endl;
 
   97     ndbout << 
"No contact established" << endl;
 
  104   ndbout << 
"Stopping the node(s)" << endl;
 
  112     ndbout << nodesNo << 
" NDB node(s) not stopped " << endl;
 
  118   ndbout << 
"Disconnecting..." << endl;
 
  124   ndbout << 
"Destroying the handle..." << endl;