@extends('layouts.app') @section('title', $device->name.' — RouterOS') @section('content')
Live RouterOS state read over the API from {{ $device->management_ip }}:{{ $device->mgmt_port }}.
| {{ $field }} | {{ is_scalar($value) ? $value : json_encode($value) }} |
|---|
| Name | Type | MAC | MTU | Running | Rx | Tx |
|---|---|---|---|---|---|---|
| {{ $iface['name'] ?? '—' }} | {{ $iface['type'] ?? '—' }} | {{ $iface['mac-address'] ?? '—' }} | {{ $iface['mtu'] ?? '—' }} | @php $running = ($iface['running'] ?? 'false') === 'true'; @endphp {{ $running ? 'running' : 'stopped' }} | {{ isset($iface['rx-byte']) ? human_bytes((int) $iface['rx-byte']) : '—' }} | {{ isset($iface['tx-byte']) ? human_bytes((int) $iface['tx-byte']) : '—' }} |
Read at {{ now()->format('j M Y H:i:s') }}. This page queries the device live; nothing here is cached.
@endsection