Script to List Internet-connected Apps and Processes on Mac
High speed network connectivity is necessary for the efficient and smooth functioning of organizations. However, some apps and processes may consume loads of data and cause bandwidth-hogging within the Enterprise. Hence, the organization may need to track down apps connected to the internet and terminate them to reduce network traffic. Hexnode makes it easier to identify apps and processes connected to the internet by deploying scripts on macOS devices.
Scripting Language – Bash
File extension – .sh
List apps and processes
lsof -nPi | cut -f 1 -d " "| uniq | tail -n +2
To view the output from the Hexnode portal, head on to the Manage tab, select required device, go to the Action History tab, and click on Show Output corresponding to the executed script.