Command Modes EXEC

Command History Release Modification

10.0

This command was introduced.

10.3

The following keywords were added:

• output-packets

• access-violations

Usage Guidelines If you do not specify any keywords, the show ip accounting command displays information about the active accounting database.

To display IP access violations, you must give the access-violations keyword on the command. If you do not specify the keyword, the command defaults to displaying the number of packets that have passed access lists and were routed.

To use this command, you must first enable IP accounting on a per-interface basis.

Examples The following is sample output from the show ip accounting command:

Router# show ip accounting

Source

Destination

Packets

Bytes

131.

.108.

19.40

192.

.67.

67.20

7

306

131.

.108.

13.55

192.

.67.

67.20

67

2749

131.

.108.

2.50

192.

.12.

33.51

17

1111

131.

.108.

2.50

130.

. 93.

2.1

5

319

131.

.108.

2.50

130.

. 93.

1.2

463

30991

131.

.108.

19.40

130.

. 93.

2.1

4

262

131.

.108.

19.40

130.

. 93.

1.2

28

2552

131.

.108.

20.2

128.

.18.

6.100

39

2184

131.

.108.

13.55

130.

. 93.

1.2

35

3020

131.

.108.

19.40

192.

.12.

33.51

1986

95091

131.

.108.

2.50

192.

.67.

67.20

233

14908

131.

.108.

13.28

192.

.67.

67.53

390

24817

131.

.108.

13.55

192.

.12.

33.51

214669

9806659

131.

.108.

13.111

128.

.18.

6.23

27739

1126607

131.

.108.

13.44

192.

.12.

33.51

35412

1523980

192.

.31.7

.21

130.

. 93.

1.2

11

824

131.

.108.

13.28

192.

.12.

33.2

21

1762

131.

.108.

2.166

192.

.31.

7.130

797

141054

131.

.108.

3.11

192.

.67.

67.53

4

246

192.

.31.7

.21

192.

.12.

33.51

15696

695635

192.

.31.7

.24

192.

.67.

67.20

21

916

131.

.108.

13.111

128.

.18.

.10.1

16

1137

accounting threshold exceeded for 7 packets and 433 bytes accounting threshold exceeded for 7 packets and 433 bytes

The following is sample output from the show ip accounting access-violations command. The output pertains to packets that failed access lists and were not routed:

Router# show ip accounting access-violations

Source Destination Packets Bytes ACL

131.108.19.40 192.67.67.20 7 306 77

131.108.13.55 192.67.67.20 67 2749 185

131.108.2.50 192.12.33.51 17 1111 140

Accounting data age is 41

Table 11 describes the fields shown in the displays.

Table 11 show ip accounting (and access-violation) Field Descriptions

Field

Description

Source

Source address of the packet.

Destination

Destination address of the packet.

Packets

Number of packets transmitted from the source address to the destination address.

With the access-violations keyword, the number of packets transmitted from the source address to the destination address that violated an access control list.

Table 11 show ip accounting (and access-violation) Field Descriptions (continued)

Field

Description

Bytes

Sum of the total number of bytes (IP header and data) of all IP packets transmitted from the source address to the destination address.

With the access-violations keyword, the total number ofbytes transmitted from the source address to the destination address that violated an access-control list.

ACL

Number of the access list of the last packet transmitted from the source to the destination that failed an access list filter.

accounting threshold exceeded...

Data for all packets that could not be entered into the accounting table when the accounting table is full. This data is combined into a single entry.

Related Commands Command Description

clear ip accounting

Clears the active or checkpointed database when IP accounting is enabled.

ip accounting

Enables IP accounting on an interface.

ip accounting-list

Defines filters to control the hosts for which IP accounting information is

kept.

ip accounting-threshold

Sets the maximum number of accounting entries to be created.

ip accounting-transits

Controls the number of transit records that are stored in the IP accounting

database.

Was this article helpful?

0 0

Post a comment