Files
infix/test/case/statd/system/ietf-system.json
T
Richard Alpe c119436f97 confd: augment new services container to ietf-system
This patch adds operational data support for system services. The
data is in a generic format but is intended to be able to represent
finit information (initctl) nicely.

The reason for augmenting this to ietf-system and not to
infix-services is that we consider this generic system information
which is totally disconnected from what ever services infix might
provide.

In this first state we only support pid, name, description and state.
Making the data look something like:

  "infix-system:services": {
    "service": [
      {
        "pid": 1185,
        "name": "udevd",
        "status": "running",
        "description": "Device event daemon (udev)"
      }]

Signed-off-by: Richard Alpe <richard@bit42.se>
2025-10-27 15:30:29 +01:00

276 lines
6.6 KiB
JSON

{
"ietf-system:system": {
"hostname": "target",
"authentication": {
"user": [
{
"name": "admin",
"password": "$5$mI/zpOAqZYKLC2WU$i7iPzZiIjOjrBF3NyftS9CCq8dfYwHwrmUK097Jca9A"
}
]
},
"clock": {
"timezone-utc-offset": 0
}
},
"ietf-system:system-state": {
"infix-system:software": {
"compatible": "infix-x86_64",
"variant": "",
"booted": "primary",
"boot-order": [
"primary",
"secondary",
"net"
],
"slot": [
{
"name": "rootfs.1",
"bootname": "secondary",
"class": "rootfs",
"state": "inactive",
"bundle": {
"compatible": "infix-x86_64",
"version": "94cd526"
},
"size": "126205952",
"sha256": "6cc0272f46b1a014f91693dc6218ce2f9a4b58bea727c492f6689c3ab102acca",
"installed": {
"datetime": "2025-01-15T10:00:56Z",
"count": 1
},
"activated": {
"datetime": "2025-01-15T10:00:56Z",
"count": 1
}
},
{
"name": "rootfs.0",
"bootname": "primary",
"class": "rootfs",
"state": "booted",
"bundle": {
"compatible": "infix-x86_64",
"version": "94cd526"
},
"size": "126205952",
"sha256": "6cc0272f46b1a014f91693dc6218ce2f9a4b58bea727c492f6689c3ab102acca",
"installed": {
"datetime": "2025-01-15T10:00:56Z",
"count": 1
},
"activated": {
"datetime": "2025-01-15T10:00:56Z",
"count": 1
}
},
{
"name": "net.0",
"bootname": "net",
"class": "net",
"state": "inactive",
"bundle": {},
"installed": {},
"activated": {}
}
],
"installer": {
"operation": "idle",
"progress": {
"percentage": 0
}
}
},
"infix-system:ntp": {
"sources": {
"source": [
{
"address": "192.168.1.1",
"mode": "server",
"state": "candidate",
"stratum": 1,
"poll": 6
},
{
"address": "192.168.2.1",
"mode": "server",
"state": "candidate",
"stratum": 1,
"poll": 6
},
{
"address": "192.168.3.1",
"mode": "server",
"state": "selected",
"stratum": 1,
"poll": 6
}
]
}
},
"infix-system:dns-resolver": {
"options": {},
"server": [
{
"address": "192.168.2.1",
"origin": "dhcp",
"interface": "e7"
}
],
"search": []
},
"clock": {
"boot-datetime": "2025-04-30T09:47:32+00:00",
"current-datetime": "2025-04-30T09:48:01+00:00"
},
"platform": {
"os-name": "Infix",
"os-version": "v25.04.0-rc1-3-g8daf1571-dirty",
"os-release": "v25.04.0-rc1-3-g8daf1571-dirty",
"machine": "x86_64"
},
"infix-system:services": {
"service": [
{
"pid": 1185,
"name": "udevd",
"status": "running",
"description": "Device event daemon (udev)"
},
{
"pid": 2248,
"name": "dbus",
"status": "running",
"description": "D-Bus message bus daemon"
},
{
"pid": 3039,
"name": "confd",
"status": "running",
"description": "Configuration daemon"
},
{
"pid": 3548,
"name": "netopeer",
"status": "running",
"description": "NETCONF server"
},
{
"pid": 2249,
"name": "dnsmasq",
"status": "running",
"description": "DHCP/DNS proxy"
},
{
"pid": 3559,
"name": "tty:hvc0",
"status": "running",
"description": "Getty on hvc0"
},
{
"pid": 2340,
"name": "iitod",
"status": "running",
"description": "LED daemon"
},
{
"pid": 3560,
"name": "klishd",
"status": "running",
"description": "CLI backend daemon"
},
{
"pid": 3617,
"name": "mdns-alias",
"status": "running",
"description": "mDNS alias advertiser "
},
{
"pid": 0,
"name": "mstpd",
"status": "stopped",
"description": "Spanning Tree daemon"
},
{
"pid": 3564,
"name": "rauc",
"status": "running",
"description": "Software update service"
},
{
"pid": 0,
"name": "resolvconf",
"status": "done",
"description": "Update DNS configuration"
},
{
"pid": 3472,
"name": "statd",
"status": "running",
"description": "Status daemon"
},
{
"pid": 3653,
"name": "staticd",
"status": "running",
"description": "Static routing daemon"
},
{
"pid": 2241,
"name": "syslogd",
"status": "running",
"description": "System log daemon"
},
{
"pid": 2242,
"name": "watchdogd",
"status": "running",
"description": "System watchdog daemon"
},
{
"pid": 3587,
"name": "zebra",
"status": "running",
"description": "Zebra routing daemon"
},
{
"pid": 3616,
"name": "mdns",
"status": "running",
"description": "Avahi mDNS-SD daemon"
},
{
"pid": 3618,
"name": "chronyd",
"status": "running",
"description": "Chrony NTP v3/v4 daemon"
},
{
"pid": 3633,
"name": "lldpd",
"status": "running",
"description": "LLDP daemon (IEEE 802.1ab)"
},
{
"pid": 3635,
"name": "nginx",
"status": "running",
"description": "Web server"
},
{
"pid": 3636,
"name": "rousette",
"status": "running",
"description": "RESTCONF server"
},
{
"pid": 3641,
"name": "sshd",
"status": "running",
"description": "OpenSSH daemon"
}
]
}
}
}