Patch Agent Command Line Usage

The Patch Agent for Linux, UNIX, and Mac is a command line based application that does not have a user interface.

From the usr/local/patchagent/ directory within terminal, you can enter a variety of commands to control the agent.

Command

Description

./patchservice info

Indicates general information about the agent.

./patchservice status

Indicates the status of the agent process.

./patchservice daustatus

Indicates the status of the Discover Applicable Updates task.

./patchservice detect

Starts the detection task.

./patchservice stop

Stops the agent process.

./patchservice restart

Stops and starts the agent process.

./patchservice patchdirectory

Sets the directory where patches will be temporarily downloaded.

./patchservice setmacro

Specifies the macro definitions that should be used by the agent.

./patchservice archivelogs

Archives the agent logs so that they can be sent to Ivanti.

./patchservice proxysetup

Configures your proxy server.

./patchservice clearAgentLog

Clears the agent error log file.

./patchservice clearErrLog

Clears the agent error log file.

./patchservice clearDetectLog

Clears the agent detection log file.

./patchservice trimlogs

Reduces the size of the error, agent, and detect log files. Oldest entries are deleted and the file is truncated at 100,000 lines.

./patchservice setagentnice

Sets the agent's prioritization value.

./patchservice help

Displays the patch server script usage information.