I'm perplexed.. I'm trying to get two pfsenseservers in sync, but xmlrpc iscomplaining about a firmware mismatch..

I installed both of these servers using pfSense-2.0.3-RELEASE-amd64.ova. I have not updated either of the systems (unless out of the box itdoes that automatically).

How can my "firmware" be different, and more importantly how can I fix this?


I was able to figure this out by grabbing xmlrpc_tester.php from github.


php xmlrpc_tester.php
Content-type: text/html

Array
(
    [platform] => pfSense
    [firmware] => Array
        (
            [version] => 0.62.5
            [branch] => stable
        )

    [kernel] => Array
        (
            [version] => 5.4
        )

    [base] => Array
        (
            [version] => 5.4
        )

)
Formed message.
Formed client.

<pre>---GOT---
HTTP/1.1 200 OK
Date: Wed, 25 Sep 2013 21:12:19 GMT
Server: Apache/2.2.24 (FreeBSD) PHP/5.4.15 mod_ssl/2.2.24 OpenSSL/0.9.8q DAV/2
X-Powered-By: PHP/5.4.15
Content-Length: 701
Connection: close
Content-Type: text/html

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value><struct>
<member><name>firmware</name>
<value><string>latest_in_branch</string></value>
</member>
<member><name>latest</name>
<value><struct>
<member><name>firmware</name>
<value><string>1.0b2</string></value>
</member>
<member><name>kernel</name>
<value><string>6.1</string></value>
</member>
<member><name>base</name>
<value><string>6.1</string></value>
</member>
</struct></value>
</member>
<member><name>kernel</name>
<value><string>latest_in_branch</string></value>
</member>
<member><name>base</name>
<value><string>latest_in_branch</string></value>
</member>
</struct></value>
</param>
</params>
</methodResponse>

---END---</pre>

<pre>---PARSED---
object(XML_RPC_Value)#19 (2) {
  ["me"]=>
  array(1) {
    ["struct"]=>
    array(4) {
      ["firmware"]=>
object(XML_RPC_Value)#12 (2) {
        ["me"]=>
        array(1) {
          ["string"]=>
          string(16) "latest_in_branch"
        }
        ["mytype"]=>
        int(1)
      }
      ["latest"]=>
object(XML_RPC_Value)#16 (2) {
        ["me"]=>
        array(1) {
          ["struct"]=>
          array(3) {
["firmware"]=>
object(XML_RPC_Value)#13 (2) {
              ["me"]=>
              array(1) {
["string"]=>
                string(5) "1.0b2"
              }
["mytype"]=>
              int(1)
            }
["kernel"]=>
object(XML_RPC_Value)#14 (2) {
              ["me"]=>
              array(1) {
["string"]=>
                string(3) "6.1"
              }
["mytype"]=>
              int(1)
            }
            ["base"]=>
object(XML_RPC_Value)#15 (2) {
              ["me"]=>
              array(1) {
["string"]=>
                string(3) "6.1"
              }
["mytype"]=>
              int(1)
            }
          }
        }
        ["mytype"]=>
        int(3)
      }
      ["kernel"]=>
object(XML_RPC_Value)#17 (2) {
        ["me"]=>
        array(1) {
          ["string"]=>
          string(16) "latest_in_branch"
        }
        ["mytype"]=>
        int(1)
      }
      ["base"]=>
object(XML_RPC_Value)#18 (2) {
        ["me"]=>
        array(1) {
          ["string"]=>
          string(16) "latest_in_branch"
        }
        ["mytype"]=>
        int(1)
      }
    }
  }
  ["mytype"]=>
  int(3)
}
---END---</pre>
Message sent.
Array
(
    [firmware] => latest_in_branch
    [latest] => Array
        (
            [firmware] => 1.0b2
            [kernel] => 6.1
            [base] => 6.1
        )

    [kernel] => latest_in_branch
    [base] => latest_in_branch
)







_______________________________________________
List mailing list
[email protected]
http://lists.pfsense.org/mailman/listinfo/list

Reply via email to