cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get 'NAT Type' and 'Uplink decisions' status using API

SOLVED
Highlighted
Conversationalist

Get 'NAT Type' and 'Uplink decisions' status using API

I'm trying to generate an CSV of MX devices with NAT Type 'Unfriendly' using the API. When looking at the documentation there's nothing i can find that would supply me with this information.

 

Another way for us to determine there's NAT problems is by looking at the Uplink decision.

 

example.png

 

Has anyone been able to get this info, perhaps by using a workaround, using the API?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Head in the Cloud

Re: Get 'NAT Type' and 'Uplink decisions' status using API

I am afraid this is not possible at the moment (had a quick look in the APIs, but couln´t find something related to it). Maybe an upcoming API call

Also I don´t know an workaround, but not the most familiar API user 😄

View solution in original post

5 REPLIES 5
Highlighted
Head in the Cloud

Re: Get 'NAT Type' and 'Uplink decisions' status using API

I am afraid this is not possible at the moment (had a quick look in the APIs, but couln´t find something related to it). Maybe an upcoming API call

Also I don´t know an workaround, but not the most familiar API user 😄

View solution in original post

Highlighted
Kind of a big deal

Re: Get 'NAT Type' and 'Uplink decisions' status using API

If you know which WAN you want active, you can use "Return the uplink information for a device." to pull the... current WAN in use. 🙂 As a proxy.

Highlighted
Conversationalist

Re: Get 'NAT Type' and 'Uplink decisions' status using API

Sorry i forgot to mention, but i've tried this aswell. The primairy uplink is not 'down', so even though uplink decisions are passed through WAN2 the API returns WAN1 as active.
Highlighted
Kind of a big deal

Re: Get 'NAT Type' and 'Uplink decisions' status using API

Not sure of this but maybe NAT:Unfriendly is noted in the event log. If so you should be able to identify the MXs from there.

Conversationalist

Re: Get 'NAT Type' and 'Uplink decisions' status using API

Event log can not be accessed from API as far as i'm aware.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.