cnspec icon indicating copy to clipboard operation
cnspec copied to clipboard

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

Open charlesjohnson opened this issue 2 years ago • 0 comments

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

charlesjohnson avatar Oct 14 '22 19:10 charlesjohnson