ensp_get_device_info
Retrieve device metadata like hostname, model, version, and uptime from eNSP sessions. Enable refresh to re-run display version or return cached values.
Instructions
获取设备元信息(hostname、型号、版本、uptime)。
refresh=True 时重新执行 display version;否则只返回已缓存的值。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id_or_name": "<session_id_or_name>"
},
"name": "ensp_get_device_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | ||
| session_id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||