You use service session profiles to enable statistics when you activate a service session with the CLI. See Using Service Session Profiles for detailed information about creating and using service session profiles.
For example, you can use the following procedure to capture statistics that are defined in the service definition macro file for the tiered service:
- host1(config)#service-management service-session-profile
isp1_tiered3
- host1(config-service-session-profile)#statistics
volume-time
- host1(config-service-session-profile)#
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“ tiered(1000000, 2000000)” service-session-profile isp1_tiered3
The captured statistics are now used when you use the Service Manager show service-management commands. For example:
host1# show service-management subscriber-session client1@isp1.com interface atm 4/0.1 service-session User Name: client1@isp1.com, Interface: atm 4/0.1 Service : tiered(1000000,2000000) Non-volatile : False Owner : CLI State : Config ApplySuccess Activate : True Statistics Type : time-based and volume-based Statistics Complete : False Poll Interval : 0 Poll Expire : 0 Activate Time : THU MAR 01 21:09:12 2006 Time : 0 Time Expire : 0 Volume MBytes: 2 Volume Expire MBytes: 1 Input Bytes : 594 Output Bytes : 1196 Input Packets : 1 Output Packets : 2