Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

hcm (HTTP Header Enrichment)

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
hcm {
    tag-attribute [tag-attr-name];
    tag-rule rule-name {
        term term-number {
            from {
                destination-address {
                    (any-ipv4 | any-ipv4 except);
                    (any-ipv6 | any-ipv6 except);
                    (any-unicast | any-unicast except);
                    (prefix | prefix except);
                }
                destination-address-range {
                    high address low address <except>;
                }
                destination-port-range {
                    high port-number low port-number;
                }
                destination-ports value;
            }
            then {
                count;
                tag tag-name { 
                    encrypt {
                        hash algorithm;
                        prefix hash-prefix;
                    }
                    ipv4-mask ipv4-mask;
                    ipv6-mask ipv6-mask;
                    ipv4-or-value ipv4-or-value;
                    ipv6-or-value ipv6-or-value;
                    tag-attribute tag-attr-name;
                    tag-header header;
                    tag-separator separator;
                }
            }
        }
    }
    tag-rule-set rule-set-name {
        [rule rule-name];
    }
    profile profile-name {
        tag rule rule-name;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit services]

Description

Configure the parameters required to support subscriber-aware HTTP header enrichment.

You can add content to the HTTP headers sent back and forth as part of the client-server exchange for subscribers accessing Web-based services. You configure HTTP header enrichment as a service for a subscriber.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 16.1.

Support for Next Gen Services introduced in Junos OS Release 20.2R1 on MX Series routers MX240, MX480 and MX960.

footer-navigation