OCS Inventory NG Forums

OCS Inventory NG, an OpenSource computer inventory and package deployement system for Windows and Unix

You are not logged in.

#51 2009-05-29 00:15:40

Southerner
Member
From: Ellensburg, WA
Registered: 2008-12-09
Posts: 75

Re: Cannot transmit inventory. Response Code: 500

Further research using the ./ocs_mac_client.php > /Users/your_username/Desktop/ocs_broken.log
command to force a log file yields some interesting information.

I have about 60 PowerPC's that have OCS from
Jason Roons  with Scott (sth) patches and Felim's.  Those patches set
cpu and processor so that it will pick either Intel Macs or Motorola PowerPC Macs but I have
a lot of computers that have it installed that do not work.  To make matters worse,  OCS 4.4
has been installed multiple times and always returns an error 500.  The server log shows
the computer calling and getting error 500 then reporting that the client must have timed
out or lost connection.  I am attaching one of the log files run with the info you sent me on
March 5.  The computer stops on Printers but removing printers so it does not report that
then it stops on the next item (Displays) so something else is  wrong.  Can you get me
pointed in the right direction?  I have 533 computers that report as being on our network
that do NOT have the OCS client on them but about 60 of those are the above mentioned
that do have the client but do not show up that way.

I am still running OCS 1.01 on the server.  I would upgrade to 1.02 but saw the info about
XAMPP not working right and I am still running that Windows 2008 server so I do need
XAMPP to work.

The log file is hopefully below since I see no option to insert a code segment or attach a log file:
The forum forced me to delete most of the log file so the top preample and bottom where it hits the first error on printers is below.  If the script is modified to delete printer info then it errors on the next item which is Display type:

[  [01;34mINFO[0m  ] OCS Mac Agent started at Thu, 28 May 2009 15:08:42 -0700

Notice: Undefined property: OCS_MacAgent::$_getName in /usr/local/sbin/ocs_mac_agent.php on line 326
[  [01;34mINFO[0m  ] No new update needed for this agent
[  [01;34mINFO[0m  ] Starting inventory of Music 213-14
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>_dataType</key>
        <string>SPPrintersDataType</string>
        <key>_items</key>
        <array>
            <dict>
                <key>_name</key>
                <string>Laserjet 4300</string>
                <key>default</key>
                <string>no</string>
                <key>driverversion</key>
                <string>10.4</string>
                <key>ppd</key>
                <string>HP LaserJet 4300 Series</string>
                <key>ppdfileversion</key>
                <string>4.3.5.153</string>
                <key>printserver</key>
                <string>local</string>
                <key>psversion</key>
                <string>(3010.107) 0</string>
                <key>status</key>
                <string>idle</string>
                <key>uri</key>
                <string>lpd://172.16.65.93/</string>
            </dict>
        </array>
        <key>_parentDataType</key>
        <string>SPHardwareDataType</string>
        <key>_properties</key>
        <dict>
            <key>_name</key>
            <dict>
                <key>_isColumn</key>
                <string>YES</string>
                <key>_order</key>
                <string>10</string>
            </dict>
            <key>default</key>
            <dict>
                <key>_isColumn</key>
                <string>YES</string>
                <key>_order</key>
                <string>50</string>
            </dict>
            <key>driverversion</key>
            <dict>
                <key>_isColumn</key>
                <string>YES</string>
                <key>_order</key>
                <string>40</string>
            </dict>
            <key>ppd</key>
            <dict>
                <key>_order</key>
                <string>70</string>
            </dict>
            <key>ppdfileversion</key>
            <dict>
                <key>_order</key>
                <string>80</string>
            </dict>
            <key>printserver</key>
            <dict>
                <key>_isColumn</key>
                <string>YES</string>
                <key>_order</key>
                <string>30</string>
            </dict>
            <key>psversion</key>
            <dict>
                <key>_order</key>
                <string>90</string>
            </dict>
            <key>status</key>
            <dict>
                <key>_isColumn</key>
                <string>YES</string>
                <key>_order</key>
                <string>20</string>
            </dict>
            <key>uri</key>
            <dict>
                <key>_order</key>
                <string>60</string>
            </dict>
            <key>volumes</key>
            <dict>
                <key>_detailLevel</key>
                <string>0</string>
            </dict>
            <key>volumes_anonymous</key>
            <dict>
                <key>_detailLevel</key>
                <string>-1</string>
                <key>_maxDetailLevel</key>
                <string>0</string>
            </dict>
        </dict>
        <key>_timeStamp</key>
        <date>2009-05-28T22:08:57Z</date>
        <key>_versionInfo</key>
        <dict>
            <key>com.apple.SystemProfiler.SPPrintersReporter</key>
            <string>237.14</string>
        </dict>
    </dict>
</array>
</plist>[ [01;31mERROR[0m ] Cannot transmit inventory.  Response Code: 500

Offline

#52 2010-03-15 16:40:48

felimwhiteley
Member
From: Lyon, France
Registered: 2008-02-04
Posts: 19
Website

Re: Cannot transmit inventory. Response Code: 500

I've just discoverd a host that fails with N/A for both sets of data which I fixed by modifying both lines with:

if($this->_data['CONTENT']['HARDWARE']['PROCESSORN'] == "N/A") {
        if ($this->_getValByKey('number_cpus', $s_node, 'integer') == "N/A") {
            $this->_data['CONTENT']['HARDWARE']['PROCESSORN'] = 1;
        } else {
            $this->_data['CONTENT']['HARDWARE']['PROCESSORN'] = $this->_getValByKey('number_cpus', $s_node, 'integer');
        }
    }

Where I'm had coding the number of processors to 1 where both tests return N/A. This is a 10.3 server:

ProductName:    Mac OS X Server
ProductVersion: 10.3.8
BuildVersion:   7U16

Offline

#53 2010-04-21 18:26:12

Southerner
Member
From: Ellensburg, WA
Registered: 2008-12-09
Posts: 75

Re: Cannot transmit inventory. Response Code: 500

Hello Felim.

Which version are you patching?  Is it the 1.1 version that is on the download site or is this Jason Roons 4.4 version?

I have started using version 1.1 but am having trouble with the MACs just dropping out of the inventory after a few months and they seem to only be reporting once which is the first time after install but not reporting again.  My Mac inventory has dropped from 725 down to 600 since I loaded the new version 1.3.1 on the Suse SLES11 Linux server.  PC's are having no trouble with the version 1.3.1 client but Macs are not responding correctly.


felimwhiteley wrote:

I've just discoverd a host that fails with N/A for both sets of data which I fixed by modifying both lines with:

if($this->_data['CONTENT']['HARDWARE']['PROCESSORN'] == "N/A") {
        if ($this->_getValByKey('number_cpus', $s_node, 'integer') == "N/A") {
            $this->_data['CONTENT']['HARDWARE']['PROCESSORN'] = 1;
        } else {
            $this->_data['CONTENT']['HARDWARE']['PROCESSORN'] = $this->_getValByKey('number_cpus', $s_node, 'integer');
        }
    }

Where I'm had coding the number of processors to 1 where both tests return N/A. This is a 10.3 server:

ProductName:    Mac OS X Server
ProductVersion: 10.3.8
BuildVersion:   7U16

Offline

#54 2010-04-22 09:28:22

felimwhiteley
Member
From: Lyon, France
Registered: 2008-02-04
Posts: 19
Website

Re: Cannot transmit inventory. Response Code: 500

This is for the 4.4 version, I've not tried the other yet.

Offline

#55 2010-04-22 15:23:56

Southerner
Member
From: Ellensburg, WA
Registered: 2008-12-09
Posts: 75

Re: Cannot transmit inventory. Response Code: 500

All but a handful of my MACs are still running 4.4 but I have started putting the 1.1 Apple/Linux client on new installs.  I am still puzzled as to why the Macs would just drop off of inventory like that.

Offline

Board footer

Powered by FluxBB