BRAS service console EcoNAT Documentation / BRAS functionality / BRAS service console
$ telnet 2.2.2.2 2226
Trying 2.2.2.2...
Connected to 2.2.2.2.
Escape character is '^]'.
Start connection...
Please use next commands:
ip ADDRESS – for show information about address contract
NUMBER – for show information about contract
> ip 10.210.0.81
IP => 5100d20a
Contract number = 54174
Upload speed limit = 102400 KB
Download speed limit = 102400 KB
>
The following describes the commands to view and clear BRAS information.
Show brasinfo all command gives brief information on the BRAS state for all the supported addresses.
ECOHOST:10:# show brasinfo all
Bras info for addresses 0.0.0.0-255.255.255.255:
10.210.1.0 Authorized Bytes rx/tx: 0/60; Packets rx/tx: 0/1
10.210.1.234 Authorized Bytes rx/tx: 0/60; Packets rx/tx: 0/1
10.210.1.89 Authorized Bytes rx/tx: 17464/0; Packets rx/tx: 118/0
…
MyEcoNAT:14:# show brasinfo 10.210.0.125
Bras info for address 10.210.0.125:
========================================================================
Subscriber 10.210.0.125
========================================================================
Status Authorized
Maximum data rate upstream total unlim Kb/s
Maximum data rate downstream total unlim Kb/s
Bytes downstream total 404843
Bytes upstream total 0
Packets downstream total 5272
Packets upstream total 0
Session timeout expires in 32499 s
Idle timeout expires in 28798 s
Interim interval expires in 6 s
------------------------------------------------------------------------
1. serviceredi "serviceredi"
Enabled
Maximum data rate upstream 55 Kb/s
Maximum data rate downstream 55 Kb/s
Bytes downstream 0
Bytes upstream 0
Packets downstream 0
Packets upstream 0
------------------------------------------------------------------------
2. service20m "service20m"
Enabled
Maximum data rate upstream 20479 Kb/s
Maximum data rate downstream 20479 Kb/s
Bytes downstream 404695
Bytes upstream 0
Packets downstream 5270
Packets upstream 0
Show brasinfo command, applied to the range of addresses up to the million (example, show brasinfo 10.210.0.81/12), gives detailed view of BRAS state for the specified addresses. If this command is used for bigger range of addresses, it gives a brief summary (so as show brasinfo all command).
Show brasinfo summary command gives brief statistics for the certain policy.
MyEcoNAT:17:system.bras.policies.policy1# show brasinfo summary ======================================================= brasinfo summary ======================================================= Policy Subscribers ------------------------------------------------------- policy1 504 ------------------------------------------------------- Status ------------------------------------------------------- Authorization 203 Authorized 6 Rejected 295 Error 0 Deleting 0 ------------------------------------------------------- Total 504 =======================================================
With a large number of addresses, information output to the console may take some time. Command execution may be interrupted by pressing [Backspace] or [Ctrl+C].
In the case when there is no session for the specified address, one will see the message like this:
MyEcoNAT:1:# show brasinfo 10.210.0.212
Bras info for address 10.210.0.212: not found
Show brasinfo command displays parameters see in a table below.
Field | Description |
---|---|
Status | Client state |
Maximum data rate upstream total | Upstream speed limit (to the Internet) for the abonent, in Kbps |
Maximum data rate downstream total | Downstream speed limit (from the Internet) for the abonent, in Kbps |
Bytes downstream total | Total received bytes number for the abonent |
Bytes upstream total | Total transmitted bytes number for the abonent |
Packets downstream total | Total received packets number for the abonent |
Packets upstream total | Total transmitted packets number for the abonent |
Session timeout expires in | Remaining time (in seconds) to the automatically finalizing the session. When the time expires the session wiil be deleted and a new one will be created |
Idle timeout expires in | Remaining time (in seconds) to the automatically finalizing the session because of inactivity |
Interim interval expires in | Remaining time (in seconds) to the finalizing of the accaunting inteerval |
Services information | |
Enabled/Disabled | The service in on/off |
Maximum data rate upstream | Upstream speed limit (to the Internet) by the service, in Kbps |
Maximum data rate downstream | Downstream speed limit (from the Internet) by the service, in Kbps |
Bytes downstream | Received bytes number |
Bytes upstream | Transmitted bytes number |
Packets downstream | Received packets number |
Packets upstream | Transmitted packets number |
Use show brasstate command to check the state of the BRAS.
MyEcoNAT:2:# show brasstate
Default access: BLOCK
State : ENABLED
- default access – the default action,
- state – BRAS state (enabled/disabled).
Immediately after BRAS loading the mode of transmission of all traffic is switched on, in order to serve the users at the time, not yet loaded information from the billing (default access – pass). After loading the database BRAS switches to the main mode, when traffic is prohibited from those subscribers which is not allowed explicitly in the billing (default access – block).
To check the status of the contract, use the show brascontract <ID> command, where ID is the contract identifier. This command displays information on the contract itself and its subscribers: status, IP-addresses, speed, as well as statistics for the subscriber and general contract.
For one abonent session reset one can use clear brasinfo <IP-адрес> command, for all EcoNAT abonents sessions reset one can use clear brasinfo all command.
MyEcoNAT:3:# clear brasinfo 10.210.30.4
Success
MyEcoNAT:4:# clear brasinfo all
Bras table purged
If accounting is configured when you run clear brasinfo <IP-адрес> command, at first the accounting STOP request will be sent to the server to close the session and then the session will be removed at the EcoNAT. When you run clear brasinfo all command, the sessions recordings will be deleted only at the EcoNAT.
Use the dropservices, droppolicies, and dropradius commands to clean configuration items.