Sending accounting and interim usage to couchbase.
Mike Lopes
mlopes at teksavvy.ca
Mon Jan 22 19:34:22 CET 2018
Hi,
> So that seems to work.
>
> Is that entry not going to the DB?
>
Here's what is in couchbase using the 3.0.15:
{
"docType": "clientacct",
"startTimestamp": "Nov 18 2017 18:55:53 EST",
"stopTimestamp": null,
"userName": "noneexistent123 at domain.com",
"lastStatus": 3,
"sessionId": "25466609",
"sessionTime": 2047177,
"callingStationId": "GigabitEthernet 1/0.12502026:1250-2026#587204111###pppoe ff:ff:ff:27:41:4c#",
"lastUpdated": "Dec 12 2017 11:35:30 EST",
"framedIpAddress": "192.168.225.42",
"nasIdentifier": "lns01.lan",
"nasPort": "Ip:192.168.80.106:192.168.242.189:57524:10046:22601:33289:2758216",
"nasIpAddress": "192.168.191.4",
"lowercaseUser": "noneexistent123 at domain.com",
"userDomain": "domain.com",
"uniqueId": "51dc686492632c94c03d1346eb471bf5"
}
Here's what I am supposed to be seeing and what is currently showing in production:
{
"docType": "clientacct",
"startTimestamp": "Jan 18 2018 10:32:52 EST",
"stopTimestamp": "Jan 18 2018 10:53:10 EST",
"userName": "noneexistent123 at domain.com",
"lastStatus": 2,
"sessionId": "3196850",
"callingStationId": "GigabitEthernet 0/0.20222005:2022-2005#587203677###pppoe ff:ff:ff:38:67:c9#",
"lastUpdated": "Jan 18 2018 10:53:10 EST",
"framedIpAddress": "192.168.185.183",
"nasIdentifier": "lns01.lan",
"nasPort": "Ip:192.168.216.26:192.168.208.55:23554:11465:36823:3605:4018467",
"nasIpAddress": "192.168.191.4",
"lowercaseUser": "noneexistent123 at domain.com",
"UserDomain": "domain.com",
"uniqueId": "45385ecca5f5078d4ee7a0472d3e5a5b",
"sessionTime": 1218,
"userDomain": "domain.com",
"usageUpdate": [
{
"lastStatus": 3,
"timeStamp": "Jan 18 2018 10:42:29 EST",
"upload": 322453,
"download": 3820958
},
{
"lastStatus": 3,
"timeStamp": "Jan 18 2018 10:52:29 EST",
"upload": 722166,
"download": 7699190
}
],
"TerminateCause": 2
}
I'm starting to think that the production servers have an in house customized/patched rlm_couchbase module. I'm going to investigate that possibility.
On another note, could you point me to documentation on how I can achieve accounting and interim-updates to couchbase? When I click on the documentation link here: https://freeradius.org/modules/?s=couchbase&mod=rlm_couchbase it brings me to modules documentation home where there's nothing on couchbase.
Thanks again for your assistance.
-Mike
More information about the Freeradius-Users
mailing list