]> andersk Git - moira.git/commitdiff
add get_host_by_hwaddr
authordanw <danw>
Fri, 29 Jan 1999 23:35:31 +0000 (23:35 +0000)
committerdanw <danw>
Fri, 29 Jan 1999 23:35:31 +0000 (23:35 +0000)
server/queries2.c

index ca19bd7aa0f86a5ce23d6d3e6f81d90be86ee24b..faaf34c6889b1c518e5f62b10a5995dcffde50d3 100644 (file)
@@ -2818,6 +2818,22 @@ struct query Queries2[] = {
     &ghst_validate,
   },
 
+  {
+    /* Q_GHBH - GET_HOST_BY_HWADDR */
+    "get_host_by_hwaddr",
+    "ghbh",
+    RETRIEVE,
+    "m",
+    MACHINE_TABLE,
+    "m.name, m.vendor, m.model, m.os, m.location, m.contact, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
+    ghst_fields,
+    21,
+    "m.hwaddr LIKE LOWER('%s') AND m.mach_id != 0 AND s.snet_id = m.snet_id",
+    1,
+    "m.name",
+    NULL,
+  },
+
   {
     /* Q_GHHA - GET_HOST_HWADDR */
     "get_host_hwaddr",
This page took 0.042095 seconds and 5 git commands to generate.