Karaf Shell Commands
All commands use the scope opennms-service-now.
Connect to the Karaf shell with:
ssh -p 8101 admin@localhost
Connection commands
add-connection
Add a ServiceNow connection to the Secure Credentials Vault.
Syntax: opennms-service-now:add-connection [options] url username password
| Argument | Description |
|---|---|
|
ServiceNow base URL (e.g. |
|
OAuth2 client ID |
|
OAuth2 client secret |
| Option | Description |
|---|---|
|
Disable SSL certificate validation (development use only) |
get-connection
Display the currently configured connection (URL and username; password is masked).
Syntax: opennms-service-now:get-connection
Asset commands
send-asset
Send a single test asset to ServiceNow.
Syntax: opennms-service-now:send-asset foreignSource foreignId label parentLabel location ipAddress category
| Argument | Description |
|---|---|
|
Foreign source of the node |
|
Foreign ID of the node |
|
Node label |
|
Label of the parent node |
|
Node location name |
|
Primary IP address |
|
Asset type: |
get-asset-cache
Print the current asset cache contents as a formatted table.
Syntax: opennms-service-now:get-asset-cache
| Column | Description |
|---|---|
ForeignSource |
Node foreign source |
ForeignId |
Node foreign ID |
Label |
Node label |
Type |
Asset type ( |
Detail |
Asset sub-type detail (e.g. |
ParentLabel |
Parent node label |
Topology commands
get-edge-map
Display the full topology edge map built by EdgeService.
Syntax: opennms-service-now:get-edge-map
get-locations
List all node locations known to the plugin.
Syntax: opennms-service-now:get-locations
get-parent
Look up the parent node for a given node in the topology map.
Syntax: opennms-service-now:get-parent nodeId