Recently Viewed Topics
Nessuscli Agent
Some Nessus Agent functions can be performed and administered through a command line interface using the nessuscli agent
utility.
Note: All commands must be run by a user with administrative privileges.
Nessuscli Agent Syntax
Operating System |
Command |
---|---|
Linux |
# /opt/nessus_agent/sbin/nessuscli agent <arg1> <arg2> |
Mac OS X |
# /Library/NessusAgent/run/sbin/nessuscli <arg1> <arg2> |
Windows |
C:\Program Files\Tenable\Nessus Agent or C:\ProgramData\Tenable\Nessus Agent Run cmd.exe as administrator |
Nessuscli Agent Commands
Command | Description |
---|---|
Help Commands | |
# nessuscli agent help |
Displays a list of Nessus Agent commands |
Bug Reporting Commands | |
# nessuscli bug-report-generator |
Generates an archive of system diagnostics. Running this command without arguments prompts for values. --quiet: run the bug report generator without prompting user for feedback.. --scrub: when in quiet mode, bug report generator sanitizes the last two octets of the IPv4 address --full: when in quiet mode, bug report generator collects extra data.. |
Local Agent Commands Used to link, unlink, and display agent status |
|
# nessuscli agent link --key=<key> [--name=<name>] [--groups=<group1,group2,…>] [--ca-path=<ca_file_name>] --host=<host> --port=<port> |
Using the key obtained from within Nessus Manager, this command links the agent to the Nessus Manager. Optional Parameters --name=<name> --groups=<group1,group2,...> --ca-path=<ca_file_name> --proxy-host=<host> --proxy-port=<port> --proxy-username=<username> --proxy-password=<password> --proxy-agent=<agent> |
# nessuscli agent unlink |
Unlinks agent from the Nessus Manager. |
# nessuscli agent status |
Displays the status of the agent: jobs pending and if the agent linked or not linked to server. Example Status Agent linked Agent not linked to a server Agent is linked to 192.168.0.1:8834 |