Giter Club home page Giter Club logo

jamf_to_device42_sync's Introduction

jamfexplore

Script to sync JAMF to Device42 (http://www.device42.com) This script was tested with JSS v9.97.1483031164 and Device42 v12.

Requirements

Take the file config.yaml.example and rename it to config.yaml. Then change the settings to correct ones. Please install requirements pip install -r requirements.txt

Run

Puppet :

python starter.py

Specification

Current script version migrate devices, ips, macs and software data. If you have any requests\improvements, feel free to contact us.

jamf_to_device42_sync's People

Contributors

buser8303 avatar cscaglioned42 avatar rickjohnston avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jamf_to_device42_sync's Issues

Some features don't get imported

This script works well for the most part, and no device gets left behind. The large payload gets posted to /api/1.0/devices/bulk/. But some of the fields do NOT make it to D42. Tags are one example. Other fields are missing.

Can't quite figure out why. The post returns with 'ok' and 200.

Adding "In Service" flag status on devices

We started using the script a while ago to update D42 with all the devices managed by Casper JAMF and it really works well for us.

The only issue we ran into is devices that stay at users' home are not reachable by other means (snmp, ping sweep, etc) and end-up listed "Not In Service".

How could I modify the script to "check" the "In Service" field in Device42 for these devices?

Problems with Device42 v17.02

I have two Stages of Device42 running: v16.22 and 17.02.

With v16.22 no issues, with v17.02. I get error messages. The script is the same, only the server adsress is different

Traceback (most recent call last):
File "/home/git/jamf_to_device42_sync-master/starter.test.py", line 145, in
print device42_api.bulk(element)
File "/home/git/jamf_to_device42_sync-master/device42.py", line 95, in bulk
return self._poster({'payload': json.dumps(data)}, url).json()
File "/usr/lib/python2.7/site-packages/requests/models.py", line 866, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib64/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Config.Yaml Error

File "/jamf_to_device42_sync-master/starter.py", line 5, in
with open('config.yaml', 'r') as cfg:
IOError: [Errno 2] No such file or directory: 'config.yaml'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.