Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[MX] Flow monitoring template Warning: Template type must match input protocol

0

0

Article ID: KB25836 KB Last Updated: 26 Dec 2013Version: 2.0
Summary:
This article explains the message displayed during flow monitoring configuration: "Warning: Template type must match input protocol"

Symptoms:

When configuring flow monitoring, the message "Warning: Template type must match input protocol" is displayed in the following format when the show forwarding-options command is issued in configuration mode:

forwarding-options {
    sampling {
        instance {
            sampling_flow {
                input {
                    rate 1;
                }
                family inet {
                    output {
                        flow-server 1.1.1.1 {
                            port 9887;
                            version-ipfix {
                                template {
                                    ##
                                    ## Warning: Template type must match input protocol
                                    ##
                                    IPv4;
                                }
                            }
                        }
                        inline-jflow {
                            source-address 1.1.1.1;
                        }
                    }
                }
           }
       }
   }
}

Cause:

The above example configuration is valid syntax and configuration structure. However, this message will be persistently displayed as indicated above when the version-ipfix template <address_family> <template_type> is undefined under the [edit services flow-monitoring] hierarchy.

Solution:

To clear this warning, configure the services flow-monitoring version-ipfix template to the appropriate address family and template type. An example configuration is below:

JTAC@R1-re0# set services flow-monitoring version-ipfix template IPv4 ?
Possible completions:
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
flow-active-timeout Interval after which active flow is exported (10..600)
flow-inactive-timeout Period of inactivity that marks a flow inactive (10..600)
> ipv4-template IPv4 template configuration
> option-refresh-rate Option template refresh rate
> template-refresh-rate Template refresh rate
[edit]
JTAC@R1-re0# set services flow-monitoring version-ipfix template IPv4 ipv4-template

JTAC@R1-re0# show services

    flow-monitoring {
        version-ipfix {
            template IPv4 {
                ipv4-template;
            }
        }
    }
}

JTAC@R1-re0# show forwarding-options
forwarding-options {
    sampling {
        instance {
            sampling_flow {
                input {
                    rate 1;
                }
                    family inet {
                        output {
                            flow-server 1.1.1.1 {
                            port 9887;
                            version-ipfix {
                                template {
                                    IPv4;
                                }
                            }
                        }
                        inline-jflow {
                            source-address 1.1.1.1;
                        }
                    }
                }
            }
        }
    }
}

JTAC@R1-re0# commit check
configuration check succeeds
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search