The CLI-based Service Manager creates static subscriber sessions and service sessions. You can also use CLI commands to immediately deactivate subscriber service sessions. The CLI-based support is particularly useful for:
A subscriber session represents a specific subscriber—the session consists of the subscriber’s name, the interface used for the session, and any active services for the subscriber. A subscriber can have one subscriber session active at any given time.
You create a subscriber’s service session when you assign a service definition to a subscriber session. Like an AAA-created service, a single subscriber session can have multiple simultaneous service sessions. You can use one method to create the subscriber session, and then a different method to activate the subscriber’s service session. For example, you might use RADIUS to create the AAA subscriber session, then use the CLI to activate the service session for the subscriber, You can optionally specify a service session profile that you want to attach to the service session.
You can use the CLI to activate a service session based on subscriber information or owner information:
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“ tiered(1280000, 5120000)”
- host1(config)#service-management owner-session
AAA 537446 service-session “ tiered(1280000,
5120000)”
![]() |
Note: You must specify the parameter values in the order in which the parameters appear in the template name of the service definition file. Enclose the service definition name in double quotation marks, with the service’s parameter values in parentheses. For example, for the tiered service that is defined in Figure 27, the template name is:
Use the following format with the service-session keyword:
|
service-management owner-session
- host1(config)#service-management owner-session
aaa 573498 service-session “video(4500000,
192.168.10.3)”
- host1(config)#service-management owner-session
aaa 573498 service-session “video(4500000,
192.168.10.3)”
- host1(config)#service-management owner-session
aaa 573498 service-session “tiered(1000000,
2000000)”
- host1(config)#service-management owner-session
aaa 573498 service-session “voice(1000000,
10.10.10.1)”
- host1(config)#service-management owner-session
aaa 426777 service-session “video(4500000,
192.168.10.3)” service-session-profile vodISP1
service-management subscriber-session service-session
![]() |
Note: Always activate at least one service session for a subscriber session. The ability to create a subscriber session without a service session (by omitting the service-session keyword) is not currently supported. |
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“video(4500000, 192.168.10.3)”
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“video(4500000, 192.168.10.3)”
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“tiered(1000000, 2000000)”
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“voice(1000000, 10.10.10.1)”
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“video(4500000, 192.168.10.3)” service-session-profile vodISP1
Preprovisioning service sessions is a technique you can use to improve Service Manager’s performance. Typically, when you use a service definition to activate a subscriber’s service session, Service Manager uses resources to build that service. However, if you later use the same service definition to activate a service session for a second subscriber, Service Manager does not have to rebuild the service—it bases the new service on the service that it built for the first service session. After you deactivate the first session, Service Manager must build a new service for any subsequent subscribers.
Preprovisioning entails activating a service for a dummy user on the null interface. You can then use the preprovisioned service session to activate service sessions for actual subscribers. This technique improves performance because you only require Service Manager to build the service one time, then reuse the original service when you activate future subscriber service sessions.
To preprovision a service you use a command similar to the following example:
- host1(config)#service-management subscriber-session
dummy interface null service-session “tiered(1000000,
2000000)”
Service session profiles provide additional flexibility to the Service Manager application by enabling you to assign one or more supported attributes to a particular activation of a service.
For example, you might assign the same video service to two subscribers, but use different service session profiles to set different time limits for each subscriber’s service. One subscriber uses the video service for 5 hours (18000 seconds) while the other subscriber’s video service is for 10 hours (36000 seconds). Or, you might enable statistics on a subscriber’s voice service and disable statistics on the same subscriber’s video service.
You can create multiple service session profiles independent of the service activation process. Then, when you activate a service session, you specify the profile that you want to use with that particular service session—you can apply one profile to a service session.
You can configure the following attributes in service session profiles:
![]() |
Note: The volume and time attributes use values captured by the Service Manager statistics feature to determine when the threshold is exceeded. Service Manager collects time statistics by default—you must configure and enable volume statistics collection. See Configuring Service Manager Statistics . |
To create or modify a service session profile:
- host1(config)#service-management service-session-profile
vodISP1
- host1(config-service-session-profile)#
- host1(config-service-session-profile)#statistics
volume-time
- host1(config-service-session-profile)#time
6000
- host1(config-service-session-profile)#no time
service-management service-session-profile
- host1(config)#service-management service-session-profile
vodISP1
- host1(config-service-session-profile)#
statistics
- host1(config)#service-management service-session-profile
vodISP1
- host1(config-service-session-profile)#statistics
volume-time
![]() |
Note: Service Manager statistics collection is a two-part procedure. You must configure statistics information in the service definition macro file and also enable statistics collection. See Configuring Service Manager Statistics . |
time
- host1(config)#service-management service-session-profile
vodISP1
- host1(config-service-session-profile)#time
6000
volume
![]() |
Note: The volume attribute uses values captured by the Service Manager statistics feature to determine when the threshold is exceeded. Therefore, you must configure and enable statistics collection to use this attribute. See Configuring Service Manager Statistics . |
- host1(config)#service-management service-session-profile
vodISP1
- host1(config-service-session-profile)#volume
1000000
The CLI supports several methods that enable you to manually deactivate service sessions. You can:
![]() |
Note: You can use the CLI commands described in this section to delete subscriber and service sessions that are created by either RADIUS or the CLI. |
The Service Manager CLI commands enable you to use variations of the no service-management subscriber-session command to terminate service sessions.
Use the following commands to gracefully deactivate subscriber’s services—you can deactivate a specific service for a subscriber, or you can delete a subscriber session, which deactivates all of the subscriber’s service sessions. We recommend you use this command to deactivate subscriber service sessions.
no service-management owner-session
- host1(config)#no service-management owner-session
aaa 426777 service-session “video(4500000,
192.168.10.3)”
no service-management subscriber-session service-session
- host1(config)#no service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“tiered(1000000, 2000000)”
Use the following command to force the immediate deactivation of the specified subscriber session—doing this deletes all active service sessions for the subscriber. We recommend this method if you encounter difficulty when you used the graceful deactivation method. Always use the graceful method first.
no service-management subscriber-session force
![]() |
Note: To determine the subscriber session ID of a session you want to deactivate, use the show service-management subscriber-session brief command. The display lists the IDs of all active subscriber sessions and the owner that created the session, such as AAA (RADIUS) or CLI. |
- host1(config)#no service-management subscriber-session 8 force
To terminate a subscriber service session when a threshold is reached, you create a service session profile that includes a time threshold, or a volume threshold, or both. Then, you attach the service session profile when you activate the service session. When the specified threshold is reached, the service session is terminated.
![]() |
Note: This feature is not supported by the service-management owner-session command. The service-management owner-session command only supports service session profiles when activating service sessions. |
The following example shows the commands you might use to create a time threshold for deactivating a service session. See Using Service Session Profiles for information about using the time and volume keywords in service session profiles.
To create or modify a service session profile:
- host1(config)#service-management service-session-profile
vodISP1
- host1(config-service-session-profile)#time
6000
- host1(config-service-session-profile)#exit
- host1(config)#service-management subscriber-session
client1@isp1.com interface atm 4/0.1 service-session
“video(4500000, 192.168.10.3)” service-session-profile vodISP1