Adding and removing entries with the CLI
The Host tool allows you to add entries from the Hosts table in the database.
You can add the following entries:
- An entry for a hostname that is not yet associated with an agent.
- A hostname that is associated with an agent.
- An IP address that is associated with an agent.
--add --host hostname
--add --ip ip_address
--add --agent agentname --host hostname --port port_number
--add --agent agentname --ip ip_address --port port_number
--add --agentOID hi_lo_typeid --host hostname --port port_number
--add --agentOID hi_lo_typeid --ip ip_address --port port_number --port port_number
You can also remove any of those entries.
--remove --agent agentname --host hostname --port port_number
--remove --agent agentname --ip ip_address --port port_number
--remove --agentOID hi_lo_typeid --host hostname --port port_number
--remove --agentOID hi_lo_typeid --ip ip_address --port port_number
There are a number of reasons why you might need to add or remove entries manually. One example could be to change the port of a pre-8.0 agent if its port changes.
Was this page helpful? Yes No
Submitting...
Thank you
Comments