Timestamp missing from accounting start
Hi List I've recently upgraded to Freeradius 2.1 from 1.9. I launch an exec script with: Exec bdns { wait = no program = " /dns-update.php %{User-Name} %{Acct-Status-Type} %{Framed-IP-Address} %{Timestamp}" input_pairs = request packet_type = Accounting-Request } Since the upgrade I've been getting this error: [bbar-dns] WARNING: Unknown module "Timestamp" in string expansion "%" When I inspect the Accounting-Request it has no Timestamp: rad_recv: Accounting-Request packet from host 196.1.1.1 port 1820, id=84, length=189 Acct-Session-Id = "7/0/0/1.188_08B45A01" Framed-Protocol = PPP Framed-IP-Address = 41.243.123.198 User-Name = "user@realm" X-Ascend-Connect-Progress = LAN-Session-Up Acct-Authentic = RADIUS Acct-Status-Type = Start NAS-Port-Type = Virtual NAS-Port = 1879113916 NAS-Port-Id = "7/0/0/1.188" Connect-Info = "AutoShapedVC" Calling-Station-Id = "0215522395" Class = 0x4e5331 Service-Type = Framed-User NAS-IP-Address = 196.1.2.1 X-Ascend-Session-Svr-Key = "7A2DA0BA" Acct-Delay-Time = 0 Vendor-1431-Attr-1 = 0x44534c Proxy-State = 0x323437 The NAS has not changed. Any ideas why I'm getting no {Timestamp} Thanks Barry
Barry Botha wrote:
I've recently upgraded to Freeradius 2.1 from 1.9.
There is no "2.1" version, and no "1.9" version. What do you really mean?
I launch an exec script with: Exec bdns {
wait = no program = " /dns-update.php %{User-Name} %{Acct-Status-Type} %{Framed-IP-Address} %{Timestamp}" input_pairs = request packet_type = Accounting-Request
}
Since the upgrade I've been getting this error:
[bbar-dns] WARNING: Unknown module "Timestamp" in string expansion "%"
There never was a "Timestamp" attribute.
When I inspect the Accounting-Request it has no Timestamp:
Yes. There is an attribute called "Event-Timestamp", but if it's not sent by the NAS, it won't exist.
Any ideas why I'm getting no {Timestamp}
Timestamp never existed. If you want the time when the server received a packet, see doc/variables.txt. You probably want %{%{Event-Timestamp}:-%l} See "man unlang" for a description of that syntax. Alan DeKok.
participants (2)
-
Alan DeKok -
Barry Botha