Project

General

Profile

Tâche #29811

Scénario #29342: Gérer toutes les valeurs associées à la clé "ends" du fichier dhcpd.leases dans EAD3

Identifier les valeurs possibles du champ

Added by Emmanuel GARETTE over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/27/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

History

#1 Updated by Emmanuel GARETTE over 3 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

Les valeurs possible de ce champ semble être dans cette fonction :

https://gitlab.isc.org/isc-projects/dhcp/-/blob/master/common/print.c#L1312

Les valeurs possibles seraient :

  1. never
  2. NULL
  3. epoch xxxx
  4. %w %Y/%m/%d %H:%M:%S;

#2 Updated by Emmanuel GARETTE over 3 years ago

Pour tester avec epoch, ajouter dans la conf du serveur DHCP :

db-time-format local;

Exemple d'entrée avec epoch :

lease 192.168.0.50 {
  starts epoch 1585320480; # Fri Mar 27 15:48:00 2020
  ends epoch 1585322161; # Fri Mar 27 16:16:01 2020
  tstp epoch 1585322161; # Fri Mar 27 16:16:01 2020
  cltt epoch 1585320480; # Fri Mar 27 15:48:00 2020
  binding state free;
  hardware ethernet 02:00:c0:a8:00:66;
}

#3 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

OK

Also available in: Atom PDF