- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Command Line Execution via API
Hi Everyone,
I'm trying to automate some compliance tests and have noticed the Command Line functionality within the System Manager section.
The information I need is not available via the API, however it would be via execution of commands on agents.
Is it possible to execute command line commands on SM agents via the API?
Thanks in advance.
- Labels:
-
Dashboard API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are referring to Windows and Mac - yes. You can select them all at once, and run a command against the whole lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which API endpoint can I use to do this? I could not find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh I see - sorry I am not aware of an API endpoint to do this. You can only do it do it via the dashboard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That makes me sad. I need to extract settings and other configs from each box via my Python script. I was hoping the SM agent would be able to handle this since you can do this manually via the dashboard.
Manual work isn't going to cut it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why don't you run a script via Systems Manager and have it post the results back somewhere for your Python script to process? Might not be as nice, but should be workable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks I'll look into that as an option. Appreciate the help 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also be sure to make a wish from the most relevant page in Meraki Dashboard, and also state your use case and get it to your local Meraki reps so they can follow the feature request process.
The API is evolving rapidly and new endpoints are being developed and existing ones are being enhanced all the time. When you go to Help > API Docs, notice there is now a "changelog" link at the top, check it out here: https://create.meraki.io/whats-new/
![](/skins/images/8C46D8702B8366075D87F32BD48621DC/responsive_peak/images/icon_anonymous_message.png)