Code Monkey home page Code Monkey logo

casper-api's People

Contributors

mm2270 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

casper-api's Issues

Parser error: Getting all JSS policy ID's

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

Unexpected token for all `< <(` elements

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!

Stage 2: Getting all JSS policy IDs... -:1: parser error : Document is empty

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...

JSS-Package-Report Issues

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.

Unexpected token

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.

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.