code: public static List<Node> qnodes(String name) {
          final List<Node> nodes;
  
          final CommandLine cmdLine = new CommandLine(COMMAND_QNODES);
          cmdLine.addArgument(PARAMETER_XML);
          if (StringUtils.isNotBlank(name)) {
              cmdLine.addArgument(name);
          }
  
          final OutputStream out = new ByteArrayOutputStream();
          final OutputStream err = new ByteArrayOutputStream();
  
          DefaultExecuteResultHandler resultHandler;
          try {
              resultHandler = execute(cmdLine, null, out, err);
              resultHandler.waitFor(DEFAULT_TIMEOUT);
          } catch (ExecuteException e) {
              throw new PBSException("Failed to execute qnodes command: " + e.getMessage(), e);
          } catch (IOException e) {
              throw new PBSException("Failed to execute qnodes command: " + e.getMessage(), e);
          } catch (InterruptedException e) {
              throw new PBSException("Failed to execute qnodes command: " + e.getMessage(), e);
          }
  
          final int exitValue = resultHandler.getExitValue();
          LOGGER.info("qnodes exit value: " + exitValue);
  
          try {
              nodes = NODE_XML_PARSER.parse(out.toString());
          } catch (ParseException pe) {
              throw new PBSException("Failed to parse node XML: " + pe.getMessage(), pe);
          }
  
          return nodes;
      }
docs: PBS qnodes command.
  <p>
  Get information about the cluster nodes.
  
  @param name node name
  @return list of nodes
  @throws PBSException if an error communicating with the PBS occurs