mm2270 / casper-api Goto Github PK
View Code? Open in Web Editor NEWCasper Suite JSS API scripts and applications
Casper Suite JSS API scripts and applications
Not sure if something has changed in jamf, but there now seems to be a lot of header columns missing data now. For example it only shows the package id and policy name, all other columns like name etc are blank.
I am getting the following error when using 'Create-JSS-Policy-Scope-Report.sh'. If I manually look at an API URL with a policy ID, I can see the XML data.
Stage 1: Creating directory structure...
Stage 2: Getting all JSS policy IDs...
-:1: parser error : Document is empty
^
Placing all policy names and IDs into arrays...
The end spreadsheet is then obviously empty.
Some info:
JSS: 9.10
MacOS 10.12
After trying to run several of the report bash scripts on our JSS box, I keep getting an error whenever there is a for-do statement that has a done < <(
statement. See error example below:
/Users/admin/Scripts/Create-JSS-Policy-Scope-Report.sh: line 56: syntax error near unexpected token
<'
/Users/admin/Scripts/Create-JSS-Policy-Scope-Report.sh: line 56: done < <(printf '%s\n' "$ALL_POLICY_IDS")'
JSS is running on a machine running OS X 10.10.4. Please let me know if there's any additional info you need from me or know why this error would be occurring when trying to run these scripts. Thank you!
Whern running the Create-JSS-Policy-Scope-Report.sh
script, I get the following....
./Create-JSS-Policy-Scope-Report.sh
Stage 1: Creating directory structure...
Stage 2: Getting all JSS policy IDs...
-:1: parser error : Document is empty
^
Placing all policy names and IDs into arrays...
Stage 3: Obtaining scope values from all JSS policies...
Done.
Creating initial csv file header...
Stage 4: Scanning all policy scope details and creating report...
warning: failed to load external entity "/Users/xxxx/Library/Application Support/_JSS_REPORT/_POLICY_DATA/.xml"
warning: failed to load external entity "/Users/xxxx/Library/Application Support/_JSS_REPORT/_POLICY_DATA/.xml"
warning: failed to load external entity "/Users/xxxx/Library/Application Support/_JSS_REPORT/_POLICY_DATA/.xml"
warning: failed to load external entity "/Users/xxxx/Library/Application Support/_JSS_REPORT/_POLICY_DATA/.xml"
warning: failed to load external entity "/Users/xxxx/Library/Application Support/_JSS_REPORT/_POLICY_DATA/.xml"
Stage 5: Final cleanup. Removing temp files and making final adjustments to the report...
Run time: 0 seconds...
Report complete. The final file is located in: /Users/xxxx/Library/Application Support/_JSS_REPORT/ and is named "POLICY_REPORT.csv". Opening enclosing directory...
Hi,
Currently having this output issue attempting to use the JSS Package Report Tool.
JSS-Package-Report.sh: line 66: syntax error near unexpected token `<'
JSS-Package-Report.sh: line 66: `done < <(ls "/tmp/workingDir/Policies/")')
Thanks.
I am getting a 102 Access error for any profile to system. Works great for all user profiles though.
Seeing the below errors when trying to run this script against Casper 9.82:
$ sudo sh /Users/me/Documents/My_Scripts/Create-JSS-Computer-Group-Report.sh
-e Stage 1: Creating directory structure...
-e Stage 2: Obtaining list of all policy IDs...
A total of 38 policies will be accessed...
/Users/me/Documents/My_Scripts/Create-JSS-Computer-Group-Report.sh: line 66: syntax error near unexpected token `<'
/Users/me/Documents/My_Scripts/Create-JSS-Computer-Group-Report.sh: line 66: `done < <(printf '%s\n' "$ALL_POLICY_IDS")'
I've confirmed the script has execution rights. The user account I entered in the script does have full Auditor privileges as well. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.