SHOW PLUGIN / PLUGINS command¶
The SHOW PLUGINS command lists information and status for all loaded plugins, including manually loaded plugins and automatically loaded built-in plugins. The built-in plugins displayed by the SHOW PLUGINS command include only those for the Graph service and Storage service, which are automatically loaded when the services start.
The SHOW PLUGIN <plugin_name> command lists information and status for a specific plugin.
-
The following table describes the returned information of the SHOW PLUGINS command:
Column Description nameThe name of the plugin. plugin_typeThe type of the plugin. authorThe author of the plugin. descriptionThe description of the plugin. licenseThe license information of the plugin. versionThe version of the plugin. api_versionThe version of the NebulaGraph Database Developer Edition plugin API used by the plugin. plugin_statusThe status of a specific plugin across all services. For example: Valid:3, Invalid:1, BuiltIn:[G:1,S:2]. Valid values are:Valid: indicates the plugin's corresponding dynamic library is loaded in the specified number of services.Invalid: indicates otherwise.BuiltIn(only for built-in plugins): indicates the distribution of the built-in plugin across different services.
-
The following table describes the returned information of the SHOW PLUGIN
command: Column Description serviceThe IP address and port number of the service that the plugin adapts to. plugin_statusThe status of the specified plugin in a specific service. Valid values are: Valid: indicates the plugin's corresponding dynamic library is loaded in the specified service.Invalid: indicates otherwise and shows detailed error messages for troubleshooting.
Syntax¶
- show_plugins_command
- show_plugin_command
show_plugins_command ::=
'SHOW' 'PLUGINS'
show_plugin_command ::=
'SHOW' 'PLUGIN' plugin_name
Parameters¶
plugin_name¶
The name of the plugin.
Examples¶
Show all plugins¶
SHOW PLUGINS
Return:
+----------------+-------------+------------+------------------------------------------+-------------+---------+-------------+---------------------------------------+
| name | plugin_type | author | description | license | version | api_version | plugin_status |
+----------------+-------------+------------+------------------------------------------+-------------+---------+-------------+---------------------------------------+
| log_rotate | LOG_ROTATE | vesoft-inc | nebula's log rotator | PROPRIETARY | 5.0 | 5.0 | Valid:2, Invalid:0, BuiltIn:[G:1,S:1] |
| localfs | UNKNOWN | | | | | 0.0 | Valid:1, Invalid:0, BuiltIn:[S:1] |
| file_audit | AUDIT | vesoft-inc | nebula's default file based audit plugin | PROPRIETARY | 5.0 | 5.0 | Valid:2, Invalid:0, BuiltIn:[G:1,S:1] |
| plugin_manager | PROCEDURE | vesoft-inc | nebula's procedure manager | PROPRIETARY | 5.0 | 5.0 | Valid:1, Invalid:0, BuiltIn:[G:1] |
| dbms | PROCEDURE | vesoft-inc | nebula's default dbms procedures | PROPRIETARY | 5.0 | 5.0 | Valid:1, Invalid:0, BuiltIn:[G:1] |
| csv_connector | UNKNOWN | | | | | 0.0 | Valid:1, Invalid:0, BuiltIn:[S:1] |
+----------------+-------------+------------+------------------------------------------+-------------+---------+-------------+---------------------------------------+
In the preceding output, the column plugin_status displays the status of a specific plugin across all services. For example, the first line indicates that two services loaded the built-in plugin log_rotate successfully, where G:1 represents one Graph service and S:1 represents one Storage service.
Show a specific plugin¶
SHOW PLUGIN log_rotate
Return:
+--------------------+------------------+
| service | plugin_status |
+--------------------+------------------+
| 192.168.8.113:9669 | Valid BuiltIn[G] |
| 192.168.8.113:9779 | Valid BuiltIn[S] |
+--------------------+------------------+
In the preceding output, the column plugin_status displays the status of the specified plugin in a specific service. For example, the first line indicates that the Graph service (192.168.8.113:9669) successfully loaded the plugin log_rotate. If loading or unloading fails, this column displays error messages.