On 01/12/2012 03:25 PM, Patrick M. Hausen wrote:
VMPS-Packet-Type = VMPS-Join-Request VMPS-Error-Code = VMPS-No-Error VMPS-Sequence-Number = 892 VMPS-Client-IP-Address = 1.2.3.4 VMPS-Port-Name = "Fa0/21" VMPS-VLAN-Name = "--NONE--" VMPS-Domain-Name = "Hausnetz" VMPS-Unknown = 0x00 VMPS-Ethernet-Frame = 0x0050……
Note that VMPS-VLAN-Name in the VMPS request is "--NONE--"
[linelog] expand: /var/log/vmps.log -> /var/log/vmps.log [linelog] expand: %S %C %{VMPS-Port-Name} %{VMPS-Mac} %{VMPS-VLAN-Name} -> 2012-01-12 16:06:34 Switch1 Fa0/21 xx:xx:xx:xx:xx:xx --NONE--
%{name} means: attribute "name" from the request
++[linelog] returns ok Done VMPS } # server vmps VMPS-VLAN-Name = "default" VMPS-Cookie = xx:xx:xx:xx:xx:xx
...whereas this is a reply value. Use %{reply:VMPS-VLAN-Name} ...in your "linelog" config if you want to log the vlan from the reply.