How to get device Status ? like UP/Down

SOLVED
Arul
Comes here often

How to get device Status ? like UP/Down

hi Team.
 
I need to get the Particular device's up / down status via API. For testing, I am using the below API  and got the result without any status (Up/Down).
 
 
 
lat : 37.4180951010362
lng : -122.098531723022
address :
serial : Q2HP-225A-XA5C
mac : e0:55:3d:d2:4b:4c
lanIp : 192.168.128.206
networkId : L_566327653141843049
tags : {}
name : Basement switch
model : MS220-8P
switchProfileId :
firmware : switch-12-28
floorPlanId :
 
Kindly help me to get the status (UP/Down)
1 ACCEPTED SOLUTION
NJNetworkGuy100
Getting noticed

https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-statuses

 

Status and LastReportedAt are fields in this API call.  It is in the Organizations section.  

View solution in original post

4 REPLIES 4
Lyga_Pavel1
Conversationalist

Hello @Arul,

 

You can use many method for realize this purpose (SNMP, alerts, webhook etc.)

 

But very simple and right method - use SNMP Request.

 

You can use simple Request SNMPv3 Dashboard Controller for purpose monitoring device status (https://documentation.meraki.com/General_Administration/Monitoring_and_Reporting/SNMP_Overview_and_C.... This feature configuration for each Organization (Organization-Settings-SNMP Section). Also in SNMP Section you can search SNMPv3 connection parameters (login, configurable authentication and privacy passwords, port and supported protocols connection) to Meraki Controller for you account and you can download from this page specific MIB for upload to your Monitoring System.

I am currently use this method for monitoring device status for network devices (MX,MR,MS) in own Monitoring System (PRTG).

 

NJNetworkGuy100
Getting noticed

https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-statuses

 

Status and LastReportedAt are fields in this API call.  It is in the Organizations section.  

View solution in original post

Hi

 

While using the below API,  i can get only a limited number of devices not all the devices. 

 

https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-statuses

 

Can  you help on this,

 

Regards 

Arul

 

Are you adding the parameter total_pages='all' if you are using Python and v1 of the API?

 

Click on "Templates" on that link you posted and look at the Meraki Python Library example.  

 

Here is some info on Pages and the API:

 

Pagination - Meraki-Dashboard-API-v1-Documentation - Document - Cisco DevNet

 

 

Get notified when there are additional replies to this discussion.
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.