Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the first example on the cnquery webpage on macOS doesn't work #98

Open
charlesjohnson opened this issue Oct 14, 2022 · 0 comments

Comments

@charlesjohnson
Copy link
Contributor

Describe the bug
The cnquery web page shows users a ports.listening example as the first thing to try:

ports.listening{
  port
  process {
    executable
    pid
  }
  user.name
}

However, trying this on macOS results in an error message.

To Reproduce
Steps to reproduce the behavior:

  1. open cnspec shell local
  2. paste in the following query:
ports.listening{
  port
  process {
    executable
    pid
  }
  user.name
}
  1. Observe the error output:
cnquery> ports.listening {}
Query encountered errors:
could not detect suitable ports manager for platform: macos
ports.listening: []

Expected behavior
cnspec should return an array of open ports, with process, pid, executable, and user.

Desktop (please complete the following information):

  • OS: macOS 12.6 ARM
  • cnspec 7.0.0-alpha1 ARM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant