Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:dpi:bras_bng:cli:acct:start [2023/09/01 11:47] – created elena.krasnobryzh | en:dpi:bras_bng:cli:acct:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Accounting CLI ====== | ||
- | {{indexmenu_n> | ||
- | View and management of fastpcrf accounting-sessions. | ||
- | |||
- | This is a fastdpi command, so you have to specify the fastdpi address in the -r argument of the utility. | ||
- | |||
- | ==== pcrf acct show all ==== | ||
- | Output of fastpcrf accounting database. Note that the presence of an entry in the output of this command does not necessarily mean that there is an active accounting-session. If the entry does not have a session-id attribute, then such entry is not active. | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct show all | ||
- | </ | ||
- | |||
- | ==== pcrf acct show active ==== | ||
- | Output of fastpcrf accounting active sessions database. The output of this command includes active sessions and sessions terminated in the previous 5 minutes | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct show active | ||
- | </ | ||
- | |||
- | ==== pcrf acct show ==== | ||
- | Output of accounting-sessions by a specified key. | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct show [ip=X | session=X | multi_session_id=X | login=X | uid=X] | ||
- | </ | ||
- | You should set one of the keys: | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | Examples (10.20.98.78 - fastpcrf-server address): | ||
- | <code bash> | ||
- | fdpi_cli -r 10.20.98.78 pcrf acct show ip=192.168.0.25 | ||
- | fdpi_cli -r 10.20.98.78 pcrf acct show ip=2001: | ||
- | fdpi_cli -r 10.20.98.78 pcrf acct show session=67890978DAE00067 | ||
- | fdpi_cli -r 10.20.98.78 pcrf acct show multi_session_id=M67890978DAE00067 | ||
- | fdpi_cli -r 10.20.98.78 pcrf acct show login=JohnSmith | ||
- | fdpi_cli -r 10.20.98.78 pcrf acct show uid=1034 | ||
- | </ | ||
- | |||
- | ==== pcrf acct raw show ==== | ||
- | Output of raw data (raw-level by IP) of the accounting database. This is non-aggregated data coming from fastDPI. | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct raw show [all | ip=X | session=X | multi_session_id=X | login=X | uid=X] | ||
- | </ | ||
- | You should set one of the keys: | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | Examples: | ||
- | <code bash> | ||
- | # output of all records | ||
- | fdpi_cli pcrf acct raw show all | ||
- | |||
- | # search by IP | ||
- | fdpi_cli pcrf acct raw show ip=192.168.0.25 | ||
- | fdpi_cli pcrf acct raw show ip=2001: | ||
- | |||
- | # search by session-id or multi-session-id: | ||
- | fdpi_cli pcrf acct raw show session=67890978DAE00067 | ||
- | fdpi_cli pcrf acct raw show multi_session_id=M67890978DAE00067 | ||
- | |||
- | # search by login: | ||
- | fdpi_cli pcrf acct raw show login=JohnSmith | ||
- | |||
- | # search by UID | ||
- | fdpi_cli pcrf acct raw show uid=34098 | ||
- | </ | ||
- | |||
- | ==== pcrf acct show stat ==== | ||
- | Output of internal statistics of fastpcrf accounting database | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct show stat | ||
- | </ | ||
- | |||
- | ==== pcrf acct [start | stop | idle | restart] ==== | ||
- | Accounting sessions management | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct [start | stop | idle | restart] [ip=X | session=X | multi_session_id=X | login=X | uid=X] | ||
- | </ | ||
- | Actions: | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | You should set one of the arguments: | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | Examples: | ||
- | <code bash> | ||
- | # Start of accounting sessions for all login IP addresses | ||
- | fdpi_cli pcrf acct start login=JohnSmith | ||
- | # Send Acct Stop for session 67890978DAE00067 | ||
- | fdpi_cli pcrf acct stop pcrf acct stop session=67890978DAE00067 | ||
- | # Restart an acct-session for IP | ||
- | fdpi_cli pcrf acct restart ip=192.168.52.36 | ||
- | fdpi_cli pcrf acct restart ip=2001: | ||
- | # Stop all multisessions by idle timeout | ||
- | fdpi_cli pcrf acct idle multi_session_id=M67890978DAE00067 | ||
- | </ | ||
- | |||
- | ==== pcrf acct interim ==== | ||
- | Sending interim update immediately for specified sessions. | ||
- | To send an interim update, the session must be active. | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct interim [ip=X | session=X | multi_session_id=X | login=X | uid=X] | ||
- | </ | ||
- | |||
- | You should set one of the arguments: | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | |||
- | Examples: | ||
- | <code bash> | ||
- | fdpi_cli pcrf acct interim ip=192.168.52.36 | ||
- | fdpi_cli pcrf acct interim ip=2001: | ||
- | fdpi_cli pcrf acct interim multi_session_id=M67890978DAE00067 | ||
- | fdpi_cli pcrf acct interim session=67890978DAE00067 | ||
- | fdpi_cli pcrf acct interim login=JohnSmith | ||
- | </ |