How to control host objects from the command line
OverviewThe command line tool "VISULOX addon host" allows to control the VISULOX host objects.. |
Usage
The following subcommands are available:
| Command | Description |
|---|---|
| list | List and print host objects. |
| add | Add a host object. |
| edit | Modify fields of a host object. |
| delete | Remove a host object. |
| fields | List available database fields (-raw = enhanced output) |
Host object elements (edit)
| Element | Description |
|---|---|
| -name <> | Name of the host object in the database <> |
| -endpoint <> | URI to address the endpoint e.g. ssh://user@host <> |
| -comment <> | Comment for enpoint <CLI> |
| -mode <> | Endpoint enabled / disabled. Default value: on. |
| -ftprotocol <> | FT protocol e.g. ftp.passive:port <sftp:22> |
| -ftuser <> | Alternate FT user for this endpoint <> |
| -ftdir <> | FT directory for this endpoint <~> |
| -grant <> | Set granted user in database record <> |
Examples
List current available host objects
CODE
visulox addon host list
-------------------------------------------------
| basicname | host_enabled | sh_protocol |
-------------------------------------------------
| test1.amitego.de | enabled.map | ssh:22 |
| test2.amitego.de | disabled.map | telnet:23 |
-------------------------------------------------
Add host object
CODE
visulox addon host add -name "Test3" -endpoint test3.amitego.de
Edit host object
CODE
visulox addon host edit -name "Test3" -mode off
Remove an entry
CODE
visulox addon host delete -name "Test3"