Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DB λ·° 생성

LibreNMS 의 DB μ„œλ²„μ—μ„œ ν•„μš”μ— 따라 λ·°λ₯Ό 생성

...

μ½”λ“œ λΈ”λŸ­
CREATE OR REPLACE VIEW view_devices AS
SELECT
    d.device_id,
    INET6_NTOA(d.ip) AS ip,
    d.display,
    d.sysName,
    l.location as sysLocation,
    d.sysContact,
    REPLACE(REPLACE(d.icon, '.svg', ''), '.png', '') as vendor,
    d.hardware,
    d.sysDescr,
    d.os,
    d.version,
    d.bgpLocalAs,
    d.serial
FROM
    devices d
LEFT JOIN
    locations l ON d.location_id = l.id;

NocoDB 쑰회