Client:munki user$ sudo /bin/bash -c "$(curl -s http://osxserver.local:8080/index.php?/install)"
Password:
2016-02-10 15:40:49.416 defaults[34347:8433819]
The domain/default pair of (/Library/Preferences/MunkiReport, UseMunkiAdditionalHttpHeaders) does not exist
Preparing /usr/local/munki/ and /Library/Preferences/MunkiReport
BaseURL is http://osxserver.local:8080/
Retrieving munkireport scripts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1760 100 1760 0 0 217k 0 --:--:-- --:--:-- --:--:-- 245k
Configuring munkireport
+ Installing munkireport
Setting preferences
Installation of MunkiReport v2.7.3 complete.
Running the preflight script for initialization
Munkireport: # Executing scripts in preflight_abort.d
Munkireport: # Executing scripts in preflight.d
Munkireport: Running submit.preflight
Client:munki user$
Client:munki user$ sudo /usr/local/munki/managedsoftwareupdate
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
https://github.com/munki/munki
Starting...
Performing preflight tasks...
Checking for available updates...
Retrieving list of software for this machine...
WARNING: Could not process item BitTorrent Sync for optional install. No pkginfo found in catalogs: testing
Getting client resources...
Getting client resources...
Checking Apple Software Update catalog...
Skipping Apple Software Update check because sucatalog is unchanged, installed Apple packages are unchanged and we recently did a full check.
Finishing...
Performing postflight tasks...
Done.
Client:munki user$ curl -v http://OSXSERVER.LOCAL:8080/index.php?/report/hash_check --data "items=a%3A0%3A%7B%7D&serial=************"
* Trying fe80::ca2a:14ff:fe1c:6064...
* Connected to OSXSERVER.LOCAL (fe80::ca2a:14ff:fe1c:6064) port 8080 (#0)
> POST /index.php?/report/hash_check HTTP/1.1
> Host: OSXSERVER.LOCAL:8080
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Length: 40
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 40 out of 40 bytes
< HTTP/1.1 200 OK
< Date: Wed, 10 Feb 2016 23:20:38 GMT
< Server: Apache
< X-Powered-By: PHP/5.5.30
< MS-Author-Via: DAV
< Content-Length: 43
< Content-Type: text/html
<
* Connection #0 to host OSXSERVER.LOCAL left intact
a:2:{s:5:"error";s:0:"";s:4:"info";s:0:"";}Client:munki user$
--
You received this message because you are subscribed to the Google Groups "munkireport" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munkireport...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The results are the same. 192.168.10.19 is the IPv4 for the Munki (and MunkiReport) server:
Client:munki user$ sudo /bin/bash -c "$(curl -s http://192.168.10.19:8080/index.php?/install)"
Password:
2016-02-12 14:31:35.079 defaults[44772:12053663]
The domain/default pair of (/Library/Preferences/MunkiReport, UseMunkiAdditionalHttpHeaders) does not exist
Preparing /usr/local/munki/ and /Library/Preferences/MunkiReport
BaseURL is http://192.168.10.19:8080/
Retrieving munkireport scripts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1760 100 1760 0 0 918k 0 --:--:-- --:--:-- --:--:-- 1718k
Configuring munkireport
+ Installing munkireport
Setting preferences
Installation of MunkiReport v2.7.3 complete.
Running the preflight script for initialization
Munkireport: # Executing scripts in preflight_abort.d
Munkireport: # Executing scripts in preflight.d
Munkireport: Running submit.preflight
#!/usr/bin/python
# encoding: utf-8
'''Postflight script'''
from munkilib import munkicommon
from munkilib import reportcommon
from munkilib import FoundationPlist
import hashlib
import sys
import os
def main():
'''Main'''
# get runtype
if (len(sys.argv) > 1):
runtype = sys.argv[1]
else:
runtype = 'custom'
# Try to get the munki verbosity level
verbosity = os.environ.get('MUNKI_VERBOSITY_LEVEL')
if (verbosity):
reportcommon.set_verbosity(int(verbosity))
else:
reportcommon.set_verbosity(3)
scriptdir = os.path.realpath(os.path.dirname(sys.argv[0]))
# Try to run postflight.d
postflightscriptdir = os.path.join(scriptdir, "postflight.d")
reportcommon.rundir(postflightscriptdir, runtype, False)
# Get serial
hardware_info = munkicommon.get_hardware_info()
hardware_info['computer_name'] = reportcommon.get_computername()
hardware_info['cpu'] = reportcommon.get_cpuinfo()
hardware_info['cpu_arch'] = os.uname()[4]
hardware_info['hostname'] = os.uname()[1]
hardware_info['os_version'] = \
munkicommon.getOsVersion(only_major_minor=False)
hardware_info['buildversion'] = \
reportcommon.get_buildversion()
serial = hardware_info.get('serial_number', 'NO_SERIAL')
hw_info_plist = FoundationPlist.writePlistToString(hardware_info)
items = {} # item list
report_info = {}
report_info['console_user'] = "%s" % munkicommon.getconsoleuser()
report_info['runtype'] = runtype
report_info['runstate'] = 'done'
report_info['uptime'] = reportcommon.get_uptime()
report_info_plist = FoundationPlist.writePlistToString(report_info)
items = {'machine': \
{'hash':hashlib.md5(hw_info_plist).hexdigest(), 'data':hw_info_plist}, \
'reportdata': \
{'hash':hashlib.md5(report_info_plist).hexdigest(), \
'data':report_info_plist}}
# Read config file /Library/Preferences/Munkireport.plist
config_items = reportcommon.pref('ReportItems') or {}
for key, val in config_items.items():
reportcommon.display_detail("Requesting %s" % key)
items[key] = {'path':val}
reportcommon.process(serial, items)
exit(0)
if __name__ == '__main__':
main()
sudo /usr/local/munki/postflightsudo /usr/local/munki/postflight
Client:~ user$ sudo /usr/local/munki/postflight
Password:
Munkireport: # Executing scripts in postflight.d
Munkireport: Requesting munkireport
Status: 200
Headers: {u'Content-Length': u'65', u'X-Powered-By': u'PHP/5.5.30', u'Keep-Alive': u'timeout=15, max=100', u'MS-Author-Via': u'DAV', u'Server': u'Apache', u'Connection': u'Keep-Alive', u'Date': u'Mon, 22 Feb 2016 23:24:52 GMT', u'Content-Type': u'text/html'}
Munkireport: Need to update reportdata
Munkireport: Sending items
Status: 200
Headers: {u'Content-Length': u'34', u'X-Powered-By': u'PHP/5.5.30', u'Keep-Alive': u'timeout=15, max=99', u'MS-Author-Via': u'DAV', u'Server': u'Apache', u'Connection': u'Keep-Alive', u'Date': u'Mon, 22 Feb 2016 23:24:52 GMT', u'Content-Type': u'text/html'}
Munkireport: Server info: starting: reportdata
Client2:~ user$ sudo /bin/bash -c "$(curl -s http://192.168.10.19:8080/index.php?/install)"
Password:
2016-02-22 14:59:36.913 defaults[11013:236351]
The domain/default pair of (/Library/Preferences/MunkiReport, UseMunkiAdditionalHttpHeaders) does not exist
Preparing /usr/local/munki/ and /Library/Preferences/MunkiReport
BaseURL is http://192.168.10.19:8080/
Retrieving munkireport scripts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1760 100 1760 0 0 369k 0 --:--:-- --:--:-- --:--:-- 429k
Configuring munkireport
+ Installing munkireport
Setting preferences
Installation of MunkiReport v2.7.3 complete.
Running the preflight script for initialization
Munkireport: # Executing scripts in preflight_abort.d
Munkireport: # Executing scripts in preflight.d
Munkireport: Running submit.preflight
Client2:~ user$ sudo /usr/local/munki/postflight
Password:
Munkireport: # Executing scripts in postflight.d
Munkireport: Requesting munkireport
Status: 200
Headers: {u'Content-Length': u'88', u'X-Powered-By': u'PHP/5.5.30', u'Keep-Alive': u'timeout=15, max=100', u'MS-Author-Via': u'DAV', u'Server': u'Apache', u'Connection': u'Keep-Alive', u'Date': u'Mon, 22 Feb 2016 23:26:25 GMT', u'Content-Type': u'text/html'}
Munkireport: Need to update reportdata
Munkireport: Need to update munkireport
Munkireport: Sending items
Status: 200
Headers: {u'Content-Length': u'69', u'X-Powered-By': u'PHP/5.5.30', u'Keep-Alive': u'timeout=15, max=99', u'MS-Author-Via': u'DAV', u'Server': u'Apache', u'Connection': u'Keep-Alive', u'Date': u'Mon, 22 Feb 2016 23:26:25 GMT', u'Content-Type': u'text/html'}
Munkireport: Server info: starting: reportdata
Server info: starting: munkireport