Skip to main content

Inventory Device Serial Diags

Endpoints Summary

Method Path Swagger POST /inventory_device_serial_diags/ Swagger ↗ GET /inventory_device_serial_diags/ Swagger ↗

The inventoryInventory deviceDevice serialSerial diagnosticsDiagnostics endpointsAPI allowenables youremote toexecution schedule and retrieveof network diagnostic operations foron specific devices in your inventory using their serial numbers. These endpoints enableallow remoteyou troubleshootingto schedule diagnostic tests like ping, traceroute, speed tests, and WiFi neighbor scans, then retrieve results to troubleshoot connectivity issues and monitor network performance testing on managed devices.performance.

Base URL: https://control.zequenze.com/api/v1

Authentication: All endpoints require a Bearer token:

Authorization: Bearer <your-api-token>

Overview

The inventory device serial diagnostics API provides powerful remote diagnostic capabilities for network-connectednetwork devices in your inventory. This API category enables youtechnicians and network administrators to performremotely execute various network diagnostic operations on devicesCustomer byPremises referencingEquipment their serial numbers, making it ideal for remote troubleshooting, performance monitoring,(CPE) and networkother healthmanaged assessments.devices without requiring physical access.

Key Features:capabilities include:

  • MultipleNetwork DiagnosticPerformance TypesTesting: Support for HTTPExecute download/upload tests,speed ICMPtests ping,to UDPmeasure echo, traceroute, DNS lookup, and WiFi neighbor scanningbandwidth
  • Device-SpecificConnectivity OperationsDiagnostics: TargetPerform specificICMP devicesping usingtests theirto serialverify numbersreachability
  • ConfigurableRoute ParametersAnalysis: CustomizeRun testtraceroute parametersoperations liketo packet size, timeout values, hop counts, andidentify network interfacespath issues
  • Real-TimeDNS StatusResolution UpdatesTesting: OptionValidate toDNS updatelookup devicefunctionality
status beforeWiFi returningEnvironment diagnosticScanning: informationAnalyze wireless neighbor networks and signal strength UDP Echo Testing: Test bidirectional UDP connectivity

CommonHow Useit Cases:works:

    1. Remote troubleshooting of connectivity issues
Network performance benchmarking and monitoring AutomatedSchedule diagnostic schedulingoperations for device health checks WiFi environment analysis and optimization DNS resolution testing and validation

The endpoints work together to provide a complete diagnostic workflow: use the GET endpoint to retrieve scheduled diagnostics and their results, andusing the POST endpoint towith createspecific newtest parameters

The system queues the diagnostic operations.

Endpoints

GET /inventory_device_serial_diags/

Description: Retrieves a list of scheduled network diagnostic operationsrequest for devicesthe in your inventory. This endpoint allows you to view existing diagnostic schedules, check their status, and optionally trigger real-timetarget device status updates before returning the information.

Use Cases:

    Monitor the status of previously scheduled diagnostic operations Retrieve diagnostic results and performancestatus metricsusing the GET endpoint CheckOperations whichare devicesexecuted haveasynchronously pendingwhen diagnostic operations Updatethe device connectivityconnects status before retrieving diagnostic information

    Full URL Example:

    https://control.zequenze.com/api/v1/inventory_device_serial_diags/?id=12345&update_status=true
    

    Parameters:

    Parameter Type In Required Description id string query No ID ofto the specificmanagement scheduledsystem transaction to retrieve update_status boolean query No Use configured helpers to update device status before returning the information

    cURLThis Example:API is essential for remote troubleshooting, proactive network monitoring, and validating service quality without dispatching field technicians.

    curl
    -X GET "https://control.zequenze.com/api/v1/inventory_device_serial_diags/?update_status=true" \
      -H "Authorization: Bearer YOUR_API_TOKEN" \
      -H "Content-Type: application/json"
    

    Endpoints

    Example Response:

    [
      {
        "serial_number": "SN123456789",
        "operation": "ipping",
        "target": "8.8.8.8",
        "count": 10,
        "size": 64,
        "timeout": 2,
        "interface": "eth0"
      },
      {
        "serial_number": "SN987654321",
        "operation": "download",
        "target": "https://speedtest.example.com/100MB.zip",
        "timeout": 30,
        "interface": "wlan0"
      },
      {
        "serial_number": "SN456789123",
        "operation": "wifi.neighbor",
        "target": "scan_all",
        "interface": "wlan0"
      }
    ]
    

    Response Codes:

    Status Description 200 Success - Returns the list of scheduled diagnostics 401 Unauthorized - Invalid or missing token 403 Forbidden - Insufficient permissions 500 Internal Server Error - Server-side error occurred

    POST /inventory_device_serial_diags/

    Description: CreatesSchedules a new network diagnostic operation foron a specific device identified by its serial number. This endpoint schedulesqueues various types of networkdiagnostic tests including connectivity, performance, and environment scanning operations that will be executed onwhen the target device.device next communicates with the management platform. Use this to initiate remote troubleshooting or performance testing.

    Use Cases:

    • ScheduleCustomer connectivityreports slow internet speeds - schedule download/upload tests
    Device appears offline - execute ping tests to troubleshootverify connectivity Intermittent connection issues - run traceroute to identify network issuespath problems Perform bandwidth testing with HTTP download/upload operations Diagnose routing problems using traceroute operations Test DNS resolution capabilities Scan WiFi environmentperformance concerns - scan for interference andfrom optimizationneighboring networks DNS resolution failures - test DNS lookup functionality

    Full URL Example:

    https://control.zequenze.com/api/v1/inventory_device_serial_diags/
    

    Request Body Parameters:

    FieldParameter Type Required Description
    serial_number string Yes Serial number of the target device to run diagnostics ondiagnose
    operation string Yes Type of diagnostic operationtest. (download,Options: upload,download, ipping,upload, udpecho,ipping, traceroute,udpecho, dnslookup,traceroute, dnslookup, wifi.neighbor)neighbor
    target string Yes Test target - URL for download/upload,speed tests, IP address for ping/traceroute, hostname for DNS lookup, or parameter for WiFi scanscans
    upload_size string No File size in MB for upload operationstests (e.g., "10", "100")
    count integer No Number of packets for ping (default: 5) or DNS lookup repetitions (default: 1)
    size integer No Packet size in bytes for ping operations (default: 64)
    timeout integer No Response timeout in seconds for ping/DNS operations (default: 1)
    max_hops integer No Maximum hops for traceroute operations (default: 30)
    interface string No NetworkSpecific network interface name to use for the diagnostic operation

    cURL Example - ICMPSpeed PingTest:

    curl -X POST "https://control.zequenze.com/api/v1/inventory_device_serial_diags/" \
      -H "Authorization: Bearer YOUR_API_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "serial_number": "SN123456789",
        "operation": "download",
        "target": "http://speedtest.example.com/1GB.bin"
      }'
    

    cURL Example - Connectivity Test:

    curl -X POST "https://control.zequenze.com/api/v1/inventory_device_serial_diags/" \
      -H "Authorization: Bearer YOUR_API_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "serial_number": "SN123456789",
        "operation": "ipping",
        "target": "8.8.8.8",
        "count": 10,
        "size": 64,
        "timeout": 2,
        "interface": "eth0"
      }'
    

    cURL Example - HTTP Download Test:

    curl -X POST "https://control.zequenze.com/api/v1/inventory_device_serial_diags/" \
      -H "Authorization: Bearer YOUR_API_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "serial_number": "SN987654321",
        "operation": "download",
        "target": "https://speedtest.example.com/100MB.zip",
        "timeout": 30,
        "interface": "wlan0"
      }'
    

    cURL Example - WiFi Neighbor Scan:

    curl -X POST "https://control.zequenze.com/api/v1/inventory_device_serial_diags/" \
      -H "Authorization: Bearer YOUR_API_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "serial_number": "SN456789123",
        "operation": "wifi.neighbor",
        "target": "scan_all",
        "interface": "wlan0"2
      }'
    

    Example Response:

    {
      "serial_number": "SN123456789",
      "operation": "ipping"download",
      "target": "8.8.8.8"http://speedtest.example.com/1GB.bin",
      "upload_size": null,
      "count": 10,null,
      "size": 64,null,
      "timeout": 2,null,
      "max_hops": null,
      "interface": null,
      "eth0"id": "diag_12345",
      "upload_size"status": null"scheduled",
      "created_at": "2024-01-15T10:30:00Z"
    }
    

    Response Codes:

    Status Description
    201 Created - Diagnostic operation successfully scheduled
    400 Bad Request - Invalid parameters or missingoperation required fieldstype
    401 Unauthorized - Invalid or missing API token
    403 Forbidden - Insufficient permissions 404 Not Found - Device with specified serial number not found

    GET /inventory_device_serial_diags/

    Description: Retrieves diagnostic operation results and status information. Use this endpoint to check the progress and results of previously scheduled diagnostic tests. You can query for specific operations or list all diagnostics for monitoring purposes.

    Use Cases:

      Check if a scheduled diagnostic test has completed Retrieve speed test results to validate bandwidth performance Monitor diagnostic operation status across multiple devices Generate reports on network performance and connectivity issues

      Full URL Example:

      https://control.zequenze.com/api/v1/inventory_device_serial_diags/?id=diag_12345&update_status=true
      

      Parameters:

      Parameter Type In Required Description 422id Unprocessablestring Entityquery No Specific diagnostic operation ID to retrieve results for update_status boolean query No Whether to refresh device status before returning results (default: false)

      cURL Example - Get Specific Diagnostic:

      curl -X GET "https://control.zequenze.com/api/v1/inventory_device_serial_diags/?id=diag_12345" \
        -H "Authorization: Bearer YOUR_API_TOKEN" \
        -H "Content-Type: application/json"
      

      cURL Example - List All Diagnostics:

      curl -X GET "https://control.zequenze.com/api/v1/inventory_device_serial_diags/?update_status=true" \
        -H "Authorization: Bearer YOUR_API_TOKEN" \
        -H "Content-Type: application/json"
      

      Example Response - Speed Test Results:

      [
        {
          "id": "diag_12345",
          "serial_number": "SN123456789",
          "operation": "download",
          "target": "http://speedtest.example.com/1GB.bin",
          "status": "completed",
          "created_at": "2024-01-15T10:30:00Z",
          "completed_at": "2024-01-15T10:32:15Z",
          "results": {
            "download_speed_mbps": 95.4,
            "bytes_downloaded": 1073741824,
            "duration_seconds": 89.2,
            "success": true
          }
        },
        {
          "id": "diag_12346",
          "serial_number": "SN987654321",
          "operation": "ipping",
          "target": "8.8.8.8",
          "count": 5,
          "size": 64,
          "timeout": 1,
          "status": "completed",
          "created_at": "2024-01-15T11:15:00Z",
          "completed_at": "2024-01-15T11:15:08Z",
          "results": {
            "packets_sent": 5,
            "packets_received": 5,
            "packet_loss_percent": 0,
            "min_rtt_ms": 12.4,
            "max_rtt_ms": 15.8,
            "avg_rtt_ms": 14.1,
            "success": true
          }
        }
      ]
      

      Example Response - WiFi Neighbor Scan:

      [
        {
          "id": "diag_12347",
          "serial_number": "SN555666777",
          "operation": "wifi.neighbor",
          "target": "2.4GHz",
          "status": "completed",
          "created_at": "2024-01-15T12:00:00Z",
          "completed_at": "2024-01-15T12:00:45Z",
          "results": {
            "networks_found": 12,
            "strongest_signal_dbm": -35,
            "channel_utilization": {
              "1": 25,
              "6": 60,
              "11": 45
            },
            "recommended_channel": 1,
            "success": true
          }
        }
      ]
      

      Response Codes:

      Status Description 200 Success - Returns diagnostic operation data 401 Unauthorized - Invalid operation type or parametermissing combinationAPI token 404 Not Found - Specified diagnostic ID not found 500 Internal Server Error - System error processing request

      Common Use Cases

      Use Case 1: RemoteCustomer ConnectivitySpeed Complaint Troubleshooting

      When acustomers devicereport reportsslow connectivityinternet issues,speeds, schedule an ICMP ping test to verify basic network connectivity, followed by a traceroute to identify routing problems, and a DNS lookup test to verify name resolution.

      Use Case 2: Bandwidth Performance Testing

      Schedule HTTP download and upload tests to measure the actual throughputthroughput, performancethen ofcompare devices,results useful for validatingagainst service level agreements andto identifyingidentify bandwidthif bottlenecks.the issue is network-related or device-specific.

      Use Case 2: Device Connectivity Verification

      For devices that appear offline or unreachable, execute ping tests to multiple targets (gateway, DNS servers, public IPs) to isolate whether the issue is local network connectivity, ISP routing, or device configuration.

      Use Case 3: WiFi EnvironmentPerformance AnalysisOptimization

      UseBefore deploying new wireless equipment or when customers report WiFi neighbor diagnostics toissues, scan forneighboring nearbynetworks access points,to identify channel interference,congestion and optimizeinterference wirelesssources, performancethen forrecommend devicesoptimal inchannel dense RF environments.configurations.

      Use Case 4: AutomatedProactive HealthNetwork Monitoring

      CreateSchedule scheduledregular diagnostic operationstests thatacross runyour periodicallydevice fleet to monitorestablish devicebaseline health,performance combining ping tests for connectivity, DNS lookups for name resolution,metrics and interface-specificidentify tests.degrading connections before customers experience service issues.

      Use Case 5: NetworkDNS Resolution Troubleshooting Workflow

      ImplementWhen acustomers systematicexperience troubleshootingweb approachbrowsing byissues, firsttest retrievingDNS existinglookup diagnosticperformance results,against thenmultiple schedulingDNS new tests based on the findings, and finally updating device statusservers to reflectidentify currentresolution conditions.failures or slow response times that could impact user experience.


      Best Practices

      • Operation Selection: Choose the most appropriate diagnostic operation for your specific troubleshooting needs - use ping for basic connectivity, traceroute for routing issues, and download/upload for performance testing
      Parameter Optimization: Adjust timeout values based on network conditions and expected latency - longer timeouts for satellite or high-latency connections Interface Specification: Always specify the network interface when testing specific connection types (ethernet vs WiFi) to get accurate results Batch ProcessingOperations: When testingdiagnosing multiple devices, stagger diagnostic operationsschedules to avoid overwhelming network resources StatusRealistic UpdatesTargets: Use thegeographically update_status=trueappropriate parametertest whenservers retrievingand diagnosticstargets tothat ensurereflect youreal haveuser thetraffic most current device status informationpatterns Error Handling: ImplementAlways propercheck retryoperation logicstatus forbefore interpreting results - failed tests provide valuable troubleshooting data Result Retention: Diagnostic results may have limited retention periods, so retrieve and store important data promptly Device Availability: Remember that diagnostic operations,operations asexecute networkasynchronously conditionswhen candevices causeconnect, temporaryso failuresfactor in device communication schedules Rate Limiting: Implement appropriate delays between diagnostic requests to respect API rate limits and system resources Security Considerations: EnsureAvoid using diagnostic operations to test unauthorized targets (URLs,or IPperform addresses)operations arethat trustedcould andbe appropriateinterpreted for youras network security policiesscanning