Layer7 Privileged Access Management

Expand all | Collapse all

capam_command and batchsequence

Jump to Best Answer
  • 1.  capam_command and batchsequence

    Posted 01-23-2018 05:58 AM



    Has anyone ever tried running batchsequences ?

    I'm trying to send a batchsequence command using the CAPAM CLI, but it's complaining about the schema validation.

    Based on the AddAll.xml sample that's on the documentation, I created the following one:

    <?xml version="1.0" encoding="UTF-8"?>
       <COMMAND name="addTargetApplication">


    But I'm getting the following error.

    Jan 23, 2018 10:45:29 AM com.cloakware.cspm.common.util.ab b
    SEVERE: Failed to validate XML document schema
    org.xml.sax.SAXParseException; cvc-elt.1.a: Cannot find the declaration of element 'CLI_REQUEST'.


    For me, this error doesn't make sense since my request respects the schema provided on the documentation.

    Does anyone ever saw this error?

    Thanks in advance


    Best regards

  • 2.  Re: capam_command and batchsequence
    Best Answer

    Posted 01-23-2018 11:20 AM

    Hello, your CLI_REQUEST element is missing name server and schema information. The correct first line is

    <CLI_REQUEST xmlns="" xmlns:xsi="" xsi:schemaLocation="">


    See, except that the example in there doesn't quote the name server value properly, and it's not clear that the <CLI_REQUEST …> element should be on a single line. We'll notify the doc team on this.