cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 10
Report Inappropriate Content
Message 1 of 4

No of users connected

Hi,

 

I would like to know how many users are connected to MWG at a given time? Is there a command? also can we consider Requests per second in console equals to # of users? i dont want to use CSR or some other tool for this.

 

Thanks,

Sridhar

3 Replies
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: No of users connected

Hello,

so far I know there is no client count available on MWG.

Via CLI commands you can only request amount of current connections for example but this is not equal to the client count:
#/opt/mwg/bin/mwg-core -S Connections

Maybe there is a chance to use Linux commands to strip/parse this output and count unique IP's but I haven't seen this.

So I guess a reporting solution such as CSR or any other will be required.

(If someone knows an easy way on MWG I would appreciate a response 😁 )

Regards,
Marcel Kutrieba
Technical Support Engineer
Highlighted
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 3 of 4

Re: No of users connected

# Number of unique client IP addresses connected to proxy

/opt/mwg/bin/mwg-core -S connections | awk -F'|' '{split($5,IPPORT,":"); if (NR>2 && IPPORT[1]~/\./){print IPPORT[1]}}' | sort | uniq -c | wc -l

Requests per second is not the same as number of client IPs. One IP address can have multiple concurrent connections to different resources.

 

BTW, why you cannot use MWG UI to read/visualize the number of Active Proxy Connections?

Dashboards - Charts and Tables - System Summary - Number of Active Proxy Connections.

 

I'm not sure, but probably you can also read those numbers by SNMP. They are in "Currently connected clients":

stClientCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Currently connected clients"
::= { mwgMiscellaneous 2 }

MIB you can download from MWG UI: Configuration - Appliances - SNMP - SNMP MIB Files (at the bottom).

Have a good luck.

Highlighted
Level 10
Report Inappropriate Content
Message 4 of 4

Re: No of users connected

Thq for your response. i will try SNMP.

 

Wish McAfee incorporates this in the future versions.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

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