The display access-context profile command displays the configuration of a user context profile.
| Parameter | Description | Value | 
|---|---|---|
| name profile-name | Displays the configuration of the user context profile with a specified name. If name profile-name is not specified, all user context profiles configured on the device are displayed. | The value must be the name of an existing user context profile on the device. | 
After configuring a user context profile, you can run this command to check whether the configuration is correct.
# Display all user context profiles configured on the device.
<HUAWEI> display access-context profile
-------------------------------------------------------------------------------                                                     
    ID        Access-context profile name                                                                                           
-------------------------------------------------------------------------------                                                     
     0        p1                                                                                                                    
     1        aA                                                                                                                    
-------------------------------------------------------------------------------                                                     
    Total 2, printed 2
# Display the configuration of the user context profile p1.
<HUAWEI> display access-context profile name p1
  Profile name               : p1                                                                                                   
  if-match vlan-id           : 13 to 20 
| Item | Description | 
|---|---|
| ID | Index of a user context profile. | 
| Access-context profile name or Profile name | Name of a user context profile. To configure the parameter, run the access-context profile name command. | 
| if-match vlan-id | VLAN matching a user context profile. To configure the parameter, run the if-match vlan-id command. |