|
Table Of Contents
Information About the Quota Manager CLU
Viewing the Quota Manager Configuration
Viewing the Current Quota Status
Viewing the Quota Manager Statistics
Adding to a Subscriber's Quota
Using the Quota Manager CLU
This module describes the Quota Manager CLU.
Information About the Quota Manager CLU
The quota manager CLU (p3qm) displays the Quota Manager configuration, status, and statistics. The command format is p3qm <operation>. The following table lists the p3qm operations.
Viewing the Quota Manager Configuration
The following is an example using the p3qmcommand-line utility with the show-configoperation:
>p3qm --show-configQuota-profile1: Bucket Sizes = 1000,1000 Dosage Sizes = 10,10 Aggregation Period = Daily Day of Week = Sunday Time of Day = 00:00 Aggregation Period Gap = 0 Modification Timestamp = Thu Aug 17 14:50:300 IDT 2006 Command terminated successfully >
Viewing the Current Quota Status
The following is an example using the p3qmcommand-line utility with the show-quotaoperation:
>p3qm --show-quota -s subscriber namePackage ID = 1 Last SCE that consumed quota = 10.56.217.81 Aggregation Period: Last Replenish Time = Thu Aug 17 15:41:23 IDT 2006 Aggregation Period End = Fri Aug 18 00:00:00 IDT 2006 Quota Buckets: Bucket 1 - Remaining Quota 495 (Last quota reported by SCE is 5) Bucket 2 - Remaining Quota 1000 (Last quota reported by SCE is 10) Command terminated successfully >
Viewing the Quota Manager Statistics
The following is an example using the p3qmcommand-line utility with the show-statisticsoperation, the number in parenthesis is the rate:
>p3qm --show-statisticsQuota Manager Statistics: ========================= SCE2000 (10.56.209.197) : connected Quota State Restore Notifications: 34 (0.4) Quota Status Notifications: 0 (0) Quota Below Threshold Notifications: 10 (0) Quota Depleted Notifications: 0 (0) Quota Update Sent: 128 (45.4) Quota Update Success Acknowledge: 128 (45.4) Quota Update Failure Acknowledge: 0 (0) Command terminated successfully >
Viewing the SCE Connections
The following is an example using the p3qmcommand-line utility with the show-connectionsoperation:
>p3qm --show-connectionssce1 (10.56.217.81) : connected sce2 (10.56.217.82) : not connected Command terminated successfully >
Setting a Subscriber's Quota
The following is an example using the p3qmcommand-line utility with the set-quotaoperation:
>p3qm --set-quota -s sub1 -b 1=1000,2=2000Command terminated successfully >
This command sets sub1's quota bucket 1 to 1000 and quota bucket 2 to 2000.
Adding to a Subscriber's Quota
The following is an example using the p3qmcommand-line utility with the add-quotaoperation:
>p3qm --add-quota -s sub1 -b 1=1000,2=2000Command terminated successfully >
This command adds 1000 to sub1's quota bucket 1 and 2000 to sub1's quota bucket 2.
Replenishing Subscriber Quota
The following is an example using the p3qmcommand-line utility with the replenish-quotaoperation:
>p3qm --quota-replenish -s subscriber nameQuota was replenished: Bucket 1: 1000 Bucket 2: 500 Command terminated successfully >
Getting Subscriber Quota
The following is an example using the p3qmcommand-line utility with the get-quotaoperation:
>p3qm --get-quota -s subscriber nameQuota status was sent from SCE: Package ID = 1 Last SCE that consumed quota = 10.56.217.81 Aggregation Period: Last Replenish Time = Thu Aug 17 15:41:23 IDT 2006 Aggregation Period End = Fri Aug 18 00:00:00 IDT 2006 Quota Buckets: Bucket 1 - Remaining Quota 495 (Last quota reported by SCE is 5) Bucket 2 - Remaining Quota 1000 (Last quota reported by SCE is 10) Command terminated successfully >
Note The --get-quotaCLU is different from the --show-quotaCLU in that it requests the SCE to send a remaining quota indication, waits for the response, and displays the quota. The --show-quotaCLU displays the quota without getting the latest update from the SCE. Therefore, the --get-quotaCLU gives more accurate results.
Posted: Thu Jan 24 11:15:23 PST 2008
All contents are Copyright © 1992--2008 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.