← Back to team overview

mosquitto-users team mailing list archive

Re: How to monitor Client ID in broker

 

Thanks everyone.
Actually, I'm developing a server application base on mosquitto broker. So
I want to list all active client ID.
The method in "http://mqtt.org/wiki/doku.php/presence"; is ok for my
requirement.

Thanks again.
Andy

2012/10/11 Josh Hawley <jhawley@xxxxxxxxxxxxxxxxx>

> Seems like this would be a great feature for debugging.
>
> Josh Hawley
> Hawley Hosting
> jhawley@xxxxxxxxxxxxxxxxx
>
>
> -----Original Message-----
> From:
> mosquitto-users-bounces+jhawley=hawleyhosting.com@xxxxxxxxxxxxxxxxxxx
> [mailto:mosquitto-users-bounces+jhawley=hawleyhosting.com@lists.launchpa
> d.net] On Behalf Of Mark Schulz
> Sent: Wednesday, October 10, 2012 1:17 PM
> To: Roger Light
> Cc: mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Mosquitto-users] How to monitor Client ID in broker
>
> If you really want to do this, why not put the client ID in the
> published message? However, scanning a message broker looking for client
> IDs does not sound like we have a secure broker.
>
> Cheers
> Mark
>
> Typing quality varies as this message has been prepared on my iPad.
>
> On 11/10/2012, at 6:00 AM, Roger Light <roger@xxxxxxxxxx> wrote:
>
> > Hi Andy,
> >
> > Andy is right, there's no way to do this in mosquitto specifically. If
>
> > you really need to do this, you can recreate it using client
> > behaviour: http://mqtt.org/wiki/doku.php/presence
> >
> > Cheers,
> >
> > Roger
> >
> >
> > On Wed, Oct 10, 2012 at 12:34 PM, andypiperuk@xxxxxxxxx
> > <andypiperuk@xxxxxxxxx> wrote:
> >> Hi Andy
> >>
> >> Curious why you would specifically need to do this?
> >>
> >> The idea of a publish-and-subscribe system is that publishers and
> >> subscribers/consumers are not aware of one another.
> >>
> >> I don't think there's a way to monitor specific client IDs with
> >> mosquitto but I guess you could scrape the broker log to find out
> >> which clients are connecting.
> >>
> >> Andy
> >>
> >> On Wed, Oct 10, 2012 at 9:37 AM, andy zhang <andyzhang.h@xxxxxxxxx>
> wrote:
> >>>
> >>> Hi all,
> >>>
> >>> Is there anyone know how to monitor client connected with broker?
> >>> If subscribe to $SYS/broker/clients/#, I can get the number of
> >>> connected clients, but I don't know how to get more details
> >>> information, such as client ID...
> >>>
> >>> Regards,
> >>> Andy
> >>>
> >>> --
> >>> Mailing list: https://launchpad.net/~mosquitto-users
> >>> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> >>> Unsubscribe : https://launchpad.net/~mosquitto-users
> >>> More help   : https://help.launchpad.net/ListHelp
> >>>
> >>
> >>
> >>
> >> --
> >> Andy Piper | Farnborough, Hampshire (UK)
> >> blog: http://andypiper.co.uk   |   skype: andypiperuk
> >> twitter: @andypiper  |  images:
> >> http://www.flickr.com/photos/andypiper
> >>
> >> --
> >> Mailing list: https://launchpad.net/~mosquitto-users
> >> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> >> Unsubscribe : https://launchpad.net/~mosquitto-users
> >> More help   : https://help.launchpad.net/ListHelp
> >>
> >
> > --
> > Mailing list: https://launchpad.net/~mosquitto-users
> > Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~mosquitto-users
> > More help   : https://help.launchpad.net/ListHelp
>
> --
> Mailing list: https://launchpad.net/~mosquitto-users
> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mosquitto-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> --
> Mailing list: https://launchpad.net/~mosquitto-users
> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mosquitto-users
> More help   : https://help.launchpad.net/ListHelp
>

References