cancel
Showing results for 
Search instead for 
Did you mean: 
slizka
Level 7
Report Inappropriate Content
Message 1 of 10

How to create list of lists

Jump to solution

Hi,

Is it possible to have kind of object that would contain multiple lists?

1 Solution

Accepted Solutions
McAfee Employee jscholte
McAfee Employee
Report Inappropriate Content
Message 4 of 10

Re: How to create list of lists

Jump to solution

You're not lazy, you just want to be more efficient.

This seems like a cool idea, however its' not possible in the UI.

Using the REST interface, you could go crazy with it though.

9 Replies
McAfee Employee jscholte
McAfee Employee
Report Inappropriate Content
Message 2 of 10

Re: How to create list of lists

Jump to solution

Hi Slizka!

A rule is an object that can contain multiple lists

You can create a list of list names (just a list of strings), but I dont think thats what you want.

What's the problem you're trying to solve? It is possible to reference a list by name -- dynamically in the rules. See below rules, they are all effectively the same but reference the list in a different way.

2017-08-09_094009.png

Best Regards,

Jon

slizka
Level 7
Report Inappropriate Content
Message 3 of 10

Re: How to create list of lists

Jump to solution

Hi Jon,

Well, I'm really lazy and when creating rule criteria I'd like to use multiple lists within one criteria, something like when you create category list, just choosing which categories should be in the list and then using it in rule criteria.

Br. Ales

McAfee Employee jscholte
McAfee Employee
Report Inappropriate Content
Message 4 of 10

Re: How to create list of lists

Jump to solution

You're not lazy, you just want to be more efficient.

This seems like a cool idea, however its' not possible in the UI.

Using the REST interface, you could go crazy with it though.

slizka
Level 7
Report Inappropriate Content
Message 5 of 10

Re: How to create list of lists

Jump to solution

Ok, thanks Jon for your insight 😉

Br. Ales

slizka
Level 7
Report Inappropriate Content
Message 6 of 10

Re: How to create list of lists

Jump to solution

Just tried to access the REST interface but somehow I'm failing to authenticate. I'm sure that my credentials are OK, also my account has REST enabled and it's enabled under User Interface.

$ curl -k -i -X POST "$REST/login?userName=XXXXXX&pass=XXXXXX"

HTTP/1.1 401 Unauthorized

X-Frame-Options: DENY

X-Content-Type-Options: nosniff

X-XSS-Protection: 1; mode=block

X-MWG-REST-VERSION: 1

X-MWG-UI-VERSION: 7.7.2.3.0

Content-Type: text/plain;charset=ISO-8859-1

Content-Length: 27

Date: Fri, 11 Aug 2017 09:45:09 GMT

Server: mwg-ui

Check username and password

Any idea what I might doing wrong?

Thanks.

Br. Ales

McAfee Employee jscholte
McAfee Employee
Report Inappropriate Content
Message 7 of 10

Re: How to create list of lists

Jump to solution

Hi Ales,

You forgot to create a cookie store (maybe)? Here's what I use:

export REST=https://MWGADDRESS:4712/Konfigurator/REST

curl -ki -c cookies.txt -X POST "$REST/login?userName=USERNAME&pass=PASSWORD"

curl -ki -b cookies.txt "$REST/list"

Best Regards,

Jon

slizka
Level 7
Report Inappropriate Content
Message 8 of 10

Re: How to create list of lists

Jump to solution

Hi,

I guess that I don't need to create cookies storage if I try to just log in(?).

Anyway I've tried your command but still getting the 401 when trying to POST my credentials 😞

Br. Ales

Highlighted
McAfee Employee jscholte
McAfee Employee
Report Inappropriate Content
Message 9 of 10

Re: How to create list of lists

Jump to solution

Could the password have some strange character which could get messed up on the CLI?

As a test you could create a user with API permissions with a simpler password and try with that account.

slizka
Level 7
Report Inappropriate Content
Message 10 of 10

Re: How to create list of lists

Jump to solution

Thanks Jon, I had special char in my password, removing it helped. But it was not that special, kind of  weird it couldn't take it, it was just one '#".

Br. Ales

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community