This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from meraki import meraki | |
| api_key = 'e1cf05af36ef9fccf579a556537112fe66a60549' | |
| org_id = '641762946900403561' | |
| #New Network Details | |
| my_name = 'FSN Dmeo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from meraki import meraki | |
| api_key = 'e1cf05af36ef9fccf579a556537112fe66a60549' | |
| org_id = '641762946900403561' | |
| #New Network Details | |
| my_name = 'FSN Dmeo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys, os, difflib, argparse | |
| from datetime import datetime, timezone | |
| def file_mtime(path): | |
| t = datetime.fromtimestamp(os.stat(path).st_mtime, | |
| timezone.utc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys, os, difflib, argparse | |
| from datetime import datetime, timezone | |
| def file_mtime(path): | |
| t = datetime.fromtimestamp(os.stat(path).st_mtime, | |
| timezone.utc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "items": [ | |
| { | |
| "id": "Y2lzY29zcGFyazovL3VzL1JPT00vNjkyOTgyMzAtZWQyZC0xMWU5LThlNGItZGI4NmQ3ZGMwNmFl", | |
| "title": "Unicorn", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "response": [ | |
| { | |
| "family": "Switches and Hubs", | |
| "errorCode": "DEV-UNREACHED", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "1.0", | |
| "response": [ | |
| { | |
| "time": "2019-10-13T07:20:00.000+0000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "response": { | |
| "sites": [ | |
| { | |
| "id": "e1e52245-62ea-4481-9b8f-222acd4dbc6e", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # A simple two-variable example | |
| myvariable=Hello | |
| anothervar=World! | |
| echo $myvariable $anothervar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Network Available | |
| hosts: all | |
| connection: local #telling ansible to run the modules locally | |
| gather_facts: false #telling ansible to not to collect variable information from the network devices |