set_server_service
Turn a specific server service such as DHCP, DNS, HTTP, or FTP on or off to control which roles the device provides in a Packet Tracer topology.
Instructions
Switch one service of a server on or off, as in its Services tab.
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": {
"device": "<device>",
"service": "<service>",
"enabled": "<enabled>"
},
"name": "set_server_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | For DHCP: the port the service runs on. Defaults to `FastEthernet0`. | |
| device | Yes | ||
| enabled | Yes | ||
| service | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| service | Yes |