How To: Self-Scan Asset by Command Line
Overview
This document will cover how to run a self-scan on an asset with the CyberCNSAgent service installed but not running.
Prerequisites
Administrator access to PowerShell.
ConnectSecure Agent installed on a remote machine; CyberCNSAgent Service stopped.
Instructions
Windows-based PowerShell
Open PowerShell as Adminstrator.
Change the Directory to the folder where the ‘CyberCNSAgent’ is installed; you can use the command below by copying and pasting.
cd 'C:\Program Files (x86)\CyberCNSAgent\'Run the command to start a scan; you can use the command below by copying and pasting.
.\cybercnsagent.exe -t run -m scanYou should see some activity on the command line and a message that the self-asset scan has started. Once completed the scan will display ‘ScanLocalAsset: Operation completed’.
Results will be uploaded to the portal.
To stop the CyberCNSAgent service, you can use the below command: copy and paste.
net stop cybercnsagentTerminal-based Darwin (MacOS)
Launch the terminal and switch to SU
sudo suEnter your password
Change the directory to the CyberCNSAgent folder and run the launchctl command
cd /opt/cybercnsagent
launchctl unload -w /Library/LaunchDaemons/com.CyberCNSAgent.AgentService.plist
./cybercnsagent_darwin -t run -m scanThe scan should start, and output should be provided once completed.
Need Support?
If you need assistance, our support team is here to help. You can create, view, and manage support tickets through our portal at any time.
Support Portal: https://connectsecure.freshdesk.com
Email: support@connectsecure.com
can we add linux