display local-bill(All views)

Function

The display local-bill cache command displays the information about specified bills in the local bill pool.

The display local-bill information command displays the configurations of the local bill function and the usage of the CF card or local bill pool.

This command is supported only on the NetEngine 8000 F1A.

Format

display local-bill { cache start-num count | information }

Parameters

Parameter Description Value
cache start-num

Specifies the start serial number of bills in the local bill pool.

The value is an integer ranging from 0 to 49151.

count

Specifies the number of bills to be displayed.

The value is an integer ranging from 1 to 100.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa-access debug

Usage Guidelines

If a RADIUS server is configured to implement the accounting for access users or value-added services, the device allows the generation of local bills under the following scenarios:

  • An accounting stop request is triggered by a user or value-added service, but the RADIUS server does not respond. In this case, the Router generates a local bill to record the accounting information and considers that the user is offline.
  • The accounting start-fail online command is run to allow a user to go online even if accounting fails to start for the user. When users go offline, local bills can be created to record accounting information.

    When the function to generate local bills is enabled, run the display local-bill cache command to check the information about specified bills in the local bill pool.

    When the function to generate local bills is enabled, run the display local-bill information command to check the configurations of the function and the usage of the CF card or local bill pool.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the configurations of the local bill function and the usage of the CF card or local bill pool.
<HUAWEI> display local-bill information
  Cache-Used-Information:
  Bills:               0    Void-No:           49152
  Max-Volume:      49152    Alarm-Threshold: 75%(36864)
  Bill-Size:         296    Locked:               No
  
  Cfcard or Hd-Bill-Information:
  Bills-Num:           0
  Max-Volume:     235410    Alarm-Threshold: 85%(200098)
# Display the information about the local bill numbered 1.
<HUAWEI> display local-bill cache 1 1
  Contents of Bill 1:
  --------------------------------------------------------------
  Bill-No   :  1
  Session-Id:  ME60-1007002000000100ee7075000024
  User-name :  user1@huawei
  Start-Time:  2016/11/24 18:04:42
  Stop-Time :  2016/11/24 18:06:17     Elapse     : 0:01:35
  IP-Addr   :  10.168.7.186            MAC        : 00e0-fc12-3456
  IPv6-Addr :  ::
  Auth-Type :  PPP                     Access-Type: PPPoE
  Interface :  Eth-Trunk99.405         PeVlan/CeVlan: -/-  
  Status    :  2(offline)              Code    : 6,  Ref: 98
  Acc Data before Tariff Switch,
  1 Priority :
  0  : User-received:  Bytes=2@3430311100         , Pkts=2@1503890600
       User-sent:      Bytes=1040259100           , Pkts=1@2006874089
  Acc Data after Tariff Switch,
  1 Priority :
  0  : User-received:  Bytes=2@3430311100         , Pkts=2@1503890600
       User-sent:      Bytes=1040259100           , Pkts=1@2006874089
  --------------------------------------------------------------
  Total printed 1 bills from cache.
Table 1 Description of the display local-bill(All views) command output
Item Description
1 Priority

Accounting priority, which can only be 0 in the current version (indicating that only one priority is available).

The at sign (@) is used as the delimiter between the most significant 32 bits and the least significant 32 bits. For example, Bytes=2@3430311100=2*0xFFFFFFFF+3430311100=2*4294967295+3430311150.

Contents of Bill 1

Content of the local order with the number being 1.

Bill-No

Serial number of a bill.

User-name

User account name.

Stop-Time

Time the accounting stops.

Elapse

Online duration of the user.

IP-Addr

IP address of the user.

MAC

MAC address of the user.

IPv6-Addr

IPv6 address of the user.

Auth-Type

Type of user authentication.

Interface

Name of the interface connecting the user to the device.

Status

Bill type.

  • 0: invalid.
  • 1: real-time accounting bill.
  • 2: offline bill.
  • 3: incorrect bill that has CRC errors.

Currently, the device only supports offline bills, which are generated after users go offline.

Code

External reason why a user goes offline.

Acc Data before Tariff Switch

Traffic volume before tariff switching, including the number of upstream traffic bytes, number of upstream packets, number of downstream traffic bytes, and number of downstream packets.

Acc Data after Tariff Switch

Traffic volume after tariff switching, including the number of upstream traffic bytes, number of upstream packets, number of downstream traffic bytes, and number of downstream packets.

Bills

Number of existing bills in the local bill pool.

Void-No

Number of unused bills in the local bill pool.

Max-Volume

Number of available bills in the local bill pool or CF card.

Alarm-Threshold

Alarm threshold for local bills.

Bill-Size

Size of bills in the local bill pool.

Locked

Whether bills in the local bill pool are locked.

  • Yes: locked.
  • No: unlocked.
Bills-Num

Number of bills in the CF card.

Session-Id

Accounting session ID, with a specified length in the following versions:

  • Version 1: 33 bytes.
  • Version 2: 16 bytes.
  • Version 3: 8 bytes.
Start-Time

Time the accounting starts.

Access-Type

User access type.

Ref

Internal reason why a user goes offline, which is a supplement to an external reason that causes a user to go offline.

User-received

Quantities of downstream bytes and packets received from a user.

User-sent

Quantities of upstream bytes and packets sent to a user.

PeVlan/CeVlan

Inner/Outer VLAN tag.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >