cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
349
Views
0
Helpful
2
Replies

class-map config with asterisk (*)

johnlloyd_13
Level 9
Level 9

all,

in the configuration of class-map with expressions, what are the differences between placing the asterisk (*) on the examples below?

class-map class1

match protocol http mime "*.jpeg"

class-map class2

match protocol http host cisco*

class-map class3

match protocol fasttrack file-transfer "*cisco*"

1 Accepted Solution

Accepted Solutions

royalblues
Level 10
Level 10

match protocol http mime "*.jpeg"

All http mime files having an extension *.jpeg will be matched

match protocol http host cisco*

Will match the http packets with the hostname string. The * at the end of the string match cisco at the beginning of the string

match protocol fasttrack file-transfer "*cisco*"

This matches all the fast track protocols with the character Cisco. * at both ends means match if it is present anywhere in the string

HTH

Narayan

View solution in original post

2 Replies 2

royalblues
Level 10
Level 10

match protocol http mime "*.jpeg"

All http mime files having an extension *.jpeg will be matched

match protocol http host cisco*

Will match the http packets with the hostname string. The * at the end of the string match cisco at the beginning of the string

match protocol fasttrack file-transfer "*cisco*"

This matches all the fast track protocols with the character Cisco. * at both ends means match if it is present anywhere in the string

HTH

Narayan

this is great. thanks!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: