1751907 Members
5298 Online
108783 Solutions
New Discussion юеВ

filters file format

 
Ahmed Zaher
Advisor

filters file format


I want to filter all interfaces which begin, contain or end with "adsl".

I wrote:
myadsl "adls Name" {( isInterface && "SNMP ifName" ~ "ADSL" )}.

But I want ask if it is case sensitive (ADSL like adsl) or not.

Thanks in advance.
3 REPLIES 3
Brian M Welch
Frequent Advisor

Re: filters file format

grep -i will ignore case if you are willing to slightly modify your command.
Ahmed Zaher
Advisor

Re: filters file format

Please clarify.

what is the relation between the filter file format and the grep -i command.
Hein van den Heuvel
Honored Contributor

Re: filters file format

Please clarify.

What is the relation between HP-UX and this filter?

What tool(s) are you using?
What language is this?

May we assume 'isInterface' has a dynamic value, being a variable, property or function of some sorts?

But that "SNMP ifName" sure looks like a fixed piece of string to me which will never be equal to anything but itself.

Did you mean it to be an argument to a function?

Does the language have an 'uppercase' function? (uc? upper?)

And uh, "adls Name" is just a label I hope, other wise that's broken also.

Good luck!
Hein.