Sample error responses

This section documents sample error responses for the Infoblox NIOS adapter.

 Sample error response when the Perl script is successful but an error occurs in Infoblox NIOS

<infoblox-vnios-response>
      <metadata>
        <response-count>1</response-count>
        <status>success</status>
      </metadata>
      <responses>
        <create-host-response>
          <metadata>
            <os-id>Windows 7</os-id>
            <os-version>6.1</os-version>
            <os-arch>x86</os-arch>
            <status>success</status>
            <target>10.128.249.111</target>
          </metadata>
          <commands-output>
            <command-output>
              <metadata>
                <command>perl "D:\p4_wrkspc\ao\rel\20.12.03.00-R\adapters\adapter-infoblox-vnios\src\main\resources\scripts\create_host.pl"  "10.128.249.111" "admin" "infoblox" "ipv4-hosts:10.128.249.70" "name:testhost70" "zone:test.com" "aliases:test" "configure-for-dns:true" "comment:This host record is created by adapter." "disable:true"</command>
                <line-count>2</line-count>
                <execution-milliseconds>2705</execution-milliseconds>
                <exit-code>0</exit-code>
                <status>success</status>
              </metadata>
              <output>
                <line index="1">Response Code:1005</line>
                <line index="2">Response Description:Duplicate object 'testhost70' of type 'host' already exists in the database.</line>
              </output>
            </command-output>
          </commands-output>
        </create-host-response>
      </responses>
    </infoblox-vnios-response>


 Sample error response to incorrect request elements specified or required elements not specified

<infoblox-vnios-response>
      <metadata>
        <status>success</status>
      </metadata>
      <responses>
        <create-host-response>
          <metadata>
            <target>10.128.249.111</target>
            <status>error</status>
          </metadata>
          <error>Request element : "name" is required.</error>
        </create-host-response>
      </responses>
    </infoblox-vnios-response>


 Sample error response to a problem with the Perl interface configuration on the peer (response appears in grid.log)

<command-result>
  <metadata>
    <status>success</status>
  </metadata>
  <targets-output>
    <target-output>
      <metadata>
        <os-id>Windows 7</os-id>
        <os-version>6.1</os-version>
        <os-arch>x86</os-arch>
        <status>success</status>
      </metadata>
      <commands-output>
        <command-output>
          <metadata>
            <command>perl "D:\p4_wrkspc\ao\rel\20.12.03.00-R\adapters\adapter-infoblox-vnios\src\main\resources\scripts\validate_session.pl"  "10.128.249.111" "admin" "infoblox"</command>
            <line-count>2</line-count>
            <execution-milliseconds>38</execution-milliseconds>
            <exit-code>2</exit-code>
            <status>error</status>
            <error>Exit code indicates error</error>
          </metadata>
          <output>
            <line index="1">Can't locate Infoblox.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at D:\p4_wrkspc\ao\rel\20.12.03.00-R\adapters\adapter-infoblox-vnios\src\main\resources\scripts\validate_session.pl line 7.</line>
            <line index="2">BEGIN failed--compilation aborted at D:\p4_wrkspc\ao\rel\20.12.03.00-R\adapters\adapter-infoblox-vnios\src\main\resources\scripts\validate_session.pl line 7.</line>
          </output>
        </command-output>
      </commands-output>
    </target-output>
  </targets-output>
</command-result>

Was this page helpful? Yes No Submitting... Thank you

Comments