< Back

Get-MerakiTraffic

Sun Jan 19, 2020 6:22 pm

NAME Get-MerakiTraffic



SYNOPSIS

Short function to provide details for site to site Vpn's configured on the Meraki Devices.

In order to use this Module you will need an API Key from your Dashboard.





SYNTAX

Get-MerakiTraffic [-ApiKey] <String> [-NetworkID] <String> [-TimeSpan] <String> [<CommonParameters>]





DESCRIPTION

Short function to provide details for site to site Vpn's configured on the Meraki Devices.



This function queries the Cisco Meraki API service https://dashboard.meraki.com/api/v0 and will be needed for use

with additional

commands within the module.



API Access is free but Rate Controlled and is limited to 5 calls per second (per organisation).



In order to use this Module you will need an API Key from your Dashboard. For access to the API, first enable the

API for your

organisation under Organiation > Settings > Dashboard API access.



After enabling the API, go to the my profile page to generate an API key. The API key is associated with a

Dashboard administrator account.

You can generate, revoke, and regenerate your API key on your profile.





PARAMETERS

-ApiKey <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-NetworkID <String>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-TimeSpan <String>



Required? true

Position? 3

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Accepts Api Key as piped input.

Accepts Organisation ID as piped input.





OUTPUTS

The output from the API is sent as JSON and captured in a custom object.

[

{

"application": "Miscellaneous web",

"destination": "scripts.dailymail.co.uk",

"protocol": "TCP",

"port": 80,

"recv": 375,

"sent": 12,

"flows": 2,

"activeTime": 60,

"numClients": 1

},

{

"application": "Miscellaneous web",

"destination": "www.metdaan.com",

"protocol": "TCP",

"port": 80,

"recv": 4218,

"sent": 144,

"flows": 9,

"activeTime": 240,

"numClients": 1

}

]



You can then select the items that you want to display.





NOTES





Author: Luke Leigh

Website: https://blog.lukeleigh.com/

LinkedIn: https://www.linkedin.com/in/lukeleigh/

GitHub: https://github.com/BanterBoy/

GitHubGist: https://gist.github.com/BanterBoy



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MerakiSitetoSite -ApiKey APIKeyGoesHere -NetworkID NetIDGoesHere















RELATED LINKS

https://github.com/BanterBoy/CiscoMeraki/wiki