how to retrive Rx and Tx values for a wan1 or wan2 interface on he meraki appliance

Solved
CiscoLumen
Here to help

how to retrive Rx and Tx values for a wan1 or wan2 interface on he meraki appliance

I have been trying out the uplinkbandwidth api to fech he limits to send and receive on a nework ID bu for an appliance on a particular interface how to pull the live Rx and Tx bandwidtgh values thru dashboard apis as we see on the meraki dashboard monitor UI?

1 Accepted Solution
CiscoLumen
Here to help

yes that api works and returns all appliances under the network ID under that Org ID ,but hat api lists thousands of srials and i cant filter a query by serial[]=serialNumber of a particular appliance

View solution in original post

3 Replies 3
RaphaelL
Kind of a big deal
Kind of a big deal

Hi ,

 

I think that this is the endpoint to achieve what you are trying to do : https://developer.cisco.com/meraki/api-v1/get-organization-appliance-uplinks-usage-by-network/ 

CiscoLumen
Here to help

Yes that api works and returns all appliances under the network ID under that Org ID ,but hat api lists thousands of srials and i cant filter a query by serial[]=serialNumber of a particular appliance : example :

 

[
      {
            "networkId""L_604608249974502433",
            "name""3-XWP7ZJ3HFT_SL0003094289_A_535_US_HIGHW_CAMDE_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-QCNY-4KXM",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-QCNY-4KXM",
                        "interface""cellular",
                        "sent"3276,
                        "received"543039
                  },
                  {
                        "serial""Q2MY-QCNY-4KXM",
                        "interface""wan1",
                        "sent"227483202,
                        "received"467247496
                  }
            ]
      },
      {
            "networkId""L_604608249974502436",
            "name""3-XWP7ZJ3HFT_SL0003094300_A_103_PIN_OAK_AUROR_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-MGFC-8UVV",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-MGFC-8UVV",
                        "interface""cellular",
                        "sent"3276,
                        "received"556038
                  },
                  {
                        "serial""Q2MY-MGFC-8UVV",
                        "interface""wan1",
                        "sent"168634567,
                        "received"197305274
                  }
            ]
      },
      {
            "networkId""L_604608249974502441",
            "name""3-XWP7ZJ3HFT_SL0003094290_A_100_4TH_ELDON_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-TU4B-R9FH",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-TU4B-R9FH",
                        "interface""cellular",
                        "sent"3276,
                        "received"534821
                  },
                  {
                        "serial""Q2MY-TU4B-R9FH",
                        "interface""wan1",
                        "sent"130885033,
                        "received"182404000
                  }
            ]
      },
      {
            "networkId""L_604608249974502442",
            "name""3-XWP7ZJ3HFT_SL0003094306_A_19618_STEVEN_BOONV_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-NV62-N846",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-NV62-N846",
                        "interface""cellular",
                        "sent"3419,
                        "received"544253
                  },
                  {
                        "serial""Q2MY-NV62-N846",
                        "interface""wan1",
                        "sent"268493819,
                        "received"676196344
                  }
            ]
      },
      {
            "networkId""L_604608249974502444",
            "name""3-XWP7ZJ3HFT_SL0003094291_A_1515_THOMPSO_SEDAL_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-BQPY-P8TU",
                        "interface""cellular",
                        "sent"3741,
                        "received"534237
                  },
                  {
                        "serial""Q2MY-BQPY-P8TU",
                        "interface""wan1",
                        "sent"223811663,
                        "received"350172198
                  }
            ]
      },
      {
            "networkId""L_604608249974502445",
            "name""3-XWP7ZJ3HFT_SL0003094311_A_2600_BROADWA_SEDAL_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-QCA9-T9W8",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-QCA9-T9W8",
                        "interface""cellular",
                        "sent"3276,
                        "received"545905
                  },
                  {
                        "serial""Q2MY-QCA9-T9W8",
                        "interface""wan1",
                        "sent"98248955,
                        "received"103790380
                  }
            ]
      },
      {
            "networkId""L_604608249974502446",
            "name""3-XWP7ZJ3HFT_SL0003094296_A_204_HIGHWAY__CENTR_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-JUGH-YW26",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-JUGH-YW26",
                        "interface""cellular",
                        "sent"3276,
                        "received"529510
                  },
                  {
                        "serial""Q2MY-JUGH-YW26",
                        "interface""wan1",
                        "sent"265000275,
                        "received"660152330
                  }
            ]
      },
      {
            "networkId""L_604608249974502448",
            "name""3-XWP7ZJ3HFT_SL0003094294_A_4021_LARK_BATTL_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-LYMS-D7Z3",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-LYMS-D7Z3",
                        "interface""cellular",
                        "sent"3403,
                        "received"540888
                  },
                  {
                        "serial""Q2MY-LYMS-D7Z3",
                        "interface""wan1",
                        "sent"188263689,
                        "received"296030385
                  }
            ]
      },
      {
            "networkId""L_604608249974502449",
            "name""3-XWP7ZJ3HFT_SL0003094287_A_5940_OSAGE_B_OSAGE_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-RDD9-6VDP",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-RDD9-6VDP",
                        "interface""cellular",
                        "sent"3363,
                        "received"546658
                  },
                  {
                        "serial""Q2MY-RDD9-6VDP",
                        "interface""wan1",
                        "sent"204009183,
                        "received"879311703
                  }
            ]
      },
      {
            "networkId""L_604608249974502451",
            "name""3-XWP7ZJ3HFT_SL0003094295_A_5384_CAMPBEL_SPRIN_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-689B-BNA2",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-689B-BNA2",
                        "interface""cellular",
                        "sent"3276,
                        "received"561123
                  },
                  {
                        "serial""Q2MY-689B-BNA2",
                        "interface""wan1",
                        "sent"270191750,
                        "received"1262911049
                  }
            ]
      },
      {
            "networkId""L_604608249974502452",
            "name""3-XWP7ZJ3HFT_SL0003094285_A_301_8TH_ELDON_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-57EW-WF7N",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-57EW-WF7N",
                        "interface""wan1",
                        "sent"57578192,
                        "received"52221202
                  }
            ]
      },
      {
            "networkId""L_604608249974502454",
            "name""3-XWP7ZJ3HFT_SL0003094309_A_26695_COUNTY_EDGAR_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-54GR-YLWA",
                        "interface""cellular",
                        "sent"3276,
                        "received"559205
                  },
                  {
                        "serial""Q2MY-54GR-YLWA",
                        "interface""wan1",
                        "sent"71184634,
                        "received"113289656
                  }
            ]
      },
      {
            "networkId""L_604608249974502458",
            "name""3-XWP7ZJ3HFT_SL0003094302_A_5995_OSAGE_B_OSAGE_MO",
            "byUplink": [
                  {
                        "serial""Q2MY-2REP-FS77",
                        "interface""cellular",
                        "sent"0,
                        "received"0
                  },
                  {
                        "serial""Q2MY-2REP-FS77",
                        "interface""cellular",
                        "sent"3276,
                        "received"568594
                  },
                  {
                        "serial""Q2MY-2REP-FS77",
                        "interface""wan1",
                        "sent"238720563,
                        "received"363258997
                  }
            ]
      }
]
CiscoLumen
Here to help

yes that api works and returns all appliances under the network ID under that Org ID ,but hat api lists thousands of srials and i cant filter a query by serial[]=serialNumber of a particular appliance

Get notified when there are additional replies to this discussion.