Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Deleting a PCEF Profile

date_range 13-Jan-21

These procedures show how to enter maintenance mode to halt new sessions from being started and verify that no sessions remain on the TDF domain or gateway before removing a policy and charging enforcement function (PCEF) profile from the TDF domain or service-selection profile configurations.

Note:

Regardless of whether a PCEF profile is associated within a TDF domain or not, or whether a PCEF profile is associated with a TDF domain-selection term or not, configuration changes and deletion of a PCEF profile (and other referenced objects of the profile) require that the TDF gateway be placed in maintenance mode. However, you need not activate maintenance mode for the gateway if you are adding a new PCEF profile.

Deleting a PCEF Profile with the TDF Domain in Maintenance Mode

This procedure shows how to enter maintenance mode to halt new sessions from being started and to verify that there are no sessions remaining on the TDF domain before removing a PCEF profile configuration that a TDF domain or service-selection profile references.

To activate maintenance mode for the TDF domain and make changes to a PCEF profile:

  1. From configuration mode, activate maintenance mode for the TDF domain that references the PCEF profile.
    content_copy zoom_out_map
    [edit]
    user@host# set unified-edge gateways tdf gateway-name  domains domain-name service-mode maintenance 
    user@host# commit
    
  2. Verify that the TDF domain is in maintenance mode.
    content_copy zoom_out_map
    [edit]
    user@host# run show unified-edge tdf domain service-mode
    

    The service mode for the TDF domain shows Maintenance—Active Phase if all the sessions using this TDF domain are cleared. The service mode for the TDF domain shows Maintenance—In Phase if some sessions are actively using this TDF domain.

  3. Verify that no subscribers are active on the TDF domain.
    content_copy zoom_out_map
    [edit]
    user@host# run show unified-edge tdf subscribers | match domain-name
    
  4. (Optional) Terminate any remaining sessions on the TDF domain.
    content_copy zoom_out_map
    [edit]
    user@host# run clear unified-edge tdf subscribers domain domain-name
    
  5. Verify that the TDF domain is in an active phase.
    content_copy zoom_out_map
    [edit]
    user@host# run show unified-edge tdf domain service-mode
    
  6. In the TDF domain or service-selection profile configuration, remove the referenced PCEF profile and commit the changes.
    content_copy zoom_out_map
    user@host# delete unified-edge gateways tdf gateway-name domains domain-name pcef-profile pcef-profile-name
    
    content_copy zoom_out_map
    user@host# delete unified-edge gateways tdf gateway-name domain-selection term term-name then pcef-profile pcef-profile-name
    
  7. Verify that the changes were properly committed by showing the configuration for the entire TDF domain or service-selection profile to make sure the PCEF profile is deleted.
    • To view a PCEF profile configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef profiles profile-name 
      
    • To view a PCC rulebase configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef pcc-rulebases rulebase-name 
      
    • To view a PCC rules configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef pcc-rules rule-name 
      
    • To view a flow description configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef flow-description flow-identifier 
      
    • To view a PCC action profile configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef pcc-action-profiles profile-name 
      
  8. (Optional) If the PCEF profile is not used in other TDF domain or service-selection profile configurations, you can delete the PCEF profile configuration and commit the changes.
    content_copy zoom_out_map
    [edit]
    user@host# delete unified-edge gateways tdf gateway-name  domains domain-name service-mode 
    user@host# commit
    
  9. Exit maintenance mode.
    content_copy zoom_out_map
    [edit]
    user@host# delete unified-edge gateways tdf gateway-name service-mode 
    user@host# commit
    
  10. Return the gateway to operational state.
    content_copy zoom_out_map
    user@host# run show unified-edge tdf gateway service-mode 
    

Deleting a PCEF Profile with the Gateway in Maintenance Mode

This procedure shows how to enter maintenance mode to halt new sessions from being started and to verify that no sessions remain on the TDF gateway before deleting PCEF profiles that are referenced by one or more TDF domains on a gateway.

To activate maintenance mode for the gateway and make changes to a PCEF profile:

  1. From configuration mode, activate maintenance mode for the gateway.
    content_copy zoom_out_map
    [edit]
    user@host# set unified-edge gateways tdf gateway-name service-mode maintenance 
    user@host# commit
    
  2. Verify that the TDF gateway is in maintenance mode.
    content_copy zoom_out_map
    [edit]
    user@host# run show unified-edge tdf service-mode
    

    From the gateway hierarchy, the service mode shows Maintenance—Active Phase if all the sessions are cleared. The service mode shows Maintenance—In Phase if some sessions are active. The service mode shows Maintenance—Out Phase if maintenance mode is not configured, and the gateway is in operational mode.

  3. Verify that no subscribers are active on the gateway.
    content_copy zoom_out_map
    [edit]
    user@host# run show unified-edge tdf subscribers gateway gateway-name
    
  4. (Optional) Terminate any remaining sessions on the gateway.
    content_copy zoom_out_map
    [edit]
    user@host# run clear unified-edge tdf subscribers gateway gateway-name
    
  5. Verify that the gateway is in an active phase.
    content_copy zoom_out_map
    [edit]
    user@host# run show unified-edge tdf gateway service-mode
    
  6. For each applicable TDF domain, delete the PCEF profile from the TDF domain configuration and commit the changes.
    content_copy zoom_out_map
    user@host# delete unified-edge gateways tdf gateway-name domains domain-name pcef-profile pcef-profile-name
    user@host# commit
    
  7. Verify that the changes were properly committed by showing the configuration for each TDF domain to make sure the PCEF profile is deleted.
    • To view a PCEF profile configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef profiles profile-name 
      
    • To view a PCC rulebase configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef pcc-rulebases rulebase-name 
      
    • To view a PCC rules configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef pcc-rules rule-name 
      
    • To view a flow description configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef flow-description flow-identifier 
      
    • To view a PCC action profile configuration:

      content_copy zoom_out_map
      [edit]
      user@host# run show configuration unified-edge pcef pcc-action-profiles profile-name 
      
  8. Exit maintenance mode.
    content_copy zoom_out_map
    [edit]
    user@host# delete unified-edge gateways tdf gateway-name service-mode 
    user@host# commit
    
  9. Return the gateway to operational state.
    content_copy zoom_out_map
    [edit]
    user@host# run show unified-edge tdf gateway service-mode 
    
footer-navigation