RPC-Interface - Get Hosts with UEFI

Antworten
convoy74
Beiträge: 40
Registriert: 06 Jul 2020, 10:24
Wohnort: Allgäu
Kontaktdaten:

RPC-Interface - Get Hosts with UEFI

Beitrag von convoy74 »

Hallo,

gibt es mittels RPC-Interface eine Möglichkeit herauszufinden, welcher Host das UEFI nutzt.
In Configed kann man ja das Attribute setzten (sofern eine Lizenz vorhanden), und genau das würde ich gerne auslesen!

Danke
MS
convoy74
Beiträge: 40
Registriert: 06 Jul 2020, 10:24
Wohnort: Allgäu
Kontaktdaten:

Re: RPC-Interface - Get Hosts with UEFI

Beitrag von convoy74 »

Hallo,

ich hab mein Problem lösen können:

Code: Alles auswählen

opsi-admin method configState_getHashes [] '{"type":"ConfigState","values":"linux/pxelinux.cfg/elilo.efi"}'
Gibt mir so etwas aus:

Code: Alles auswählen

[
    {
        "values": [
            "linux/pxelinux.cfg/elilo.efi"
        ],
        "configId": "clientconfig.dhcpd.filename",
        "objectId": "pc001.test.lan",
        "type": "ConfigState"
    },
    {
        "values": [
            "linux/pxelinux.cfg/elilo.efi"
        ],
        "configId": "clientconfig.dhcpd.filename",
        "objectId": "pc007.test.lan",
        "type": "ConfigState"
    }
]
So wie es aussieht wird das values="linux/pxelinux.cfg/elilo.efi" dann gesetzt, wenn der Client als UEFI Client makiert ist!

MS
Antworten