06-19-2007 01:16 AM - edited 03-05-2019 04:48 PM
dear all,
why the "Accounting data age" of "show ip accounting" is NOT over 1 hours?
it seems "clear ip accounting" automatically.
please help!!
Thanks!
Samuel
=========================
router>show ip accounting
Source Destination Packets Bytes
10.77.101.158 10.132.1.1 3 1120
10.77.10.134 10.2.21.2 8 6890
:
:
omit
:
:
10.77.101.169 10.19.11.19 11 928
10.77.10.123 10.3.2.31 4 831
Accounting data age is 2
router>
==========================
06-25-2007 05:23 AM
By enabling IP accounting, users can see the number of bytes and packets switched through the Cisco IOS? software on a source and destination IP address basis. Only transit IP traffic is measured and only on an outbound basis; traffic generated by the software or terminating in the software is not included in the accounting statistics.
To maintain accurate accounting totals, the software maintains two accounting databases: an active and a checkpointed database. There are two tables in OLD-CISCO-IP-MIB.my, which are lipCkAccountingTable and lipAccountingTable (the active database). The actCheckPoint copies the active database into the checkpoint database. Consequently, the show ip accounting command is cleared.
A network management system (NMS) can use checkpoint MIB variables to analyze stable data in the checkpoint database. The running, or active, database is copied into the checkpoint database. If the checkpoint database already has data obtained previously from the active database, the router appends the latest copy of the active database to the existing data in the checkpoint database. The checkpoint database stores data retrieved from the active database until actCheckPoint is set, or until you delete the contents of this database by using the clear ip accounting [checkpoint] command.
06-25-2007 06:29 AM
hi bwilmoth,
thanks for reply!
nobody to launch "clear ip accounting", why router automatically clear ip accounting each hour?
how to keep one or two days data?
Regards,
Samuel
06-25-2007 06:38 AM
You need to increase the threshold if you want to hold more data
http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cg/hiap_c/ichipip.htm#wp1050938
06-25-2007 06:54 AM
Hi Samuel,
your ip accouting should look like this:
ip acconuting-list 10.77.101.158 0.0.0.255
ip accounting-list 10.77.101.123 0.0.0.255
interface (type)
ip accounting
this should run for hours/days, the data will be cleared if you issue the clear ip accounting command.
HTH
Jorge
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide