PackeTsar / meraki-cli

A simple CLI tool to automate and control your Cisco Meraki Dashboard
MIT License
82 stars 16 forks source link

Shortcuts, or "Extra" commands #17

Open Forza101 opened 2 years ago

Forza101 commented 2 years ago

Hi John, Couple of requests for you sir!

Could we create a shortcut command path when assigning as static IP address to a Meraki Device, currently its quite long see example below.

meraki -j devices updateDeviceManagementInterface --serial "QXXX-XXXX-XXX" --wan1 \ '{ "usingStaticIp": true, "staticIp": "0.0.0.0", "staticSubnetMask": "255.255.255.0", "staticGatewayIp": "0.0.0.0", "staticDns": [ "1.1.1.1" ], "vlan": 666 }'

Would it also be possible to globally enable static IP addresses for all devices with in a given network?

PackeTsar commented 2 years ago

Yes I think it would make sense to some custom commands into Meraki-CLI to make common tasks easier. Setting device managements IPs is a perfect example.

Right now my best idea is to add a new command type, maybe call it extra. All the extended CLI commands would go under that type. So setting a device management IP would look like meraki extra setDeviceManagementIp --serial XXXX-XXXX-XXXX --ip 10.0.0.10/24 ...