meraki-cli icon indicating copy to clipboard operation
meraki-cli copied to clipboard

Shortcuts, or "Extra" commands

Open Forza101 opened this issue 1 year ago • 1 comments

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?

Forza101 avatar Aug 16 '22 19:08 Forza101

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 ...

PackeTsar avatar Aug 16 '22 22:08 PackeTsar