Skip to content

Commit

Permalink
osquery-perf fixes and doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Jul 25, 2024
1 parent 199657f commit 8cb58a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions cmd/osquery-perf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,19 @@ Run the following command in the shell before running the Fleet server _and_ bef
``` sh
ulimit -n 64000
```

## Running with MDM

Set up MDM on your server. To extract the SCEP challenge, you can use the [MDM asset extractor](https://github.com/fleetdm/fleet/tree/main/tools/mdm/assets).

For your server, disable Apple push notifications since we will be using devices with fake UUIDs:

```
export FLEET_DEV_MDM_APPLE_DISABLE_PUSH=1
```

Example of running the agent with MDM. Note that `enroll_secret` is not needed for iPhone/iPad devices:

```
go run agent.go --os_templates ipad_13.18,iphone_14.6 --host_count 10 --mdm_scep_challenge 0d53306e-6d7a-9d14-a372-f9e53f9d62db
```
3 changes: 2 additions & 1 deletion cmd/osquery-perf/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,8 @@ func main() {
uniqueSoftwareUninstallCount: *uniqueSoftwareUninstallCount,
uniqueSoftwareUninstallProb: *uniqueSoftwareUninstallProb,
},
stats: stats,
stats: stats,
strings: make(map[string]string),
}
go mobileDevice.runAppleIDeviceMDMLoop(*mdmSCEPChallenge)
time.Sleep(sleepTime)
Expand Down

0 comments on commit 8cb58a5

Please sign in to comment.