CWP Self Registration

  • 2
  • Question
  • Updated 4 years ago
  • Answered
I have set up a captive portal with self registration along with a syslog server that my access points are logging to at debug level. I am trying to obtain the information that the user enters into the CWP self registration form. I believe this information is obtainable via syslog. Despite me seeing syslogs from the AP I do not see any information relating to the self registration user. Can some one advise me how I can get hold of this information?
Photo of Carl Morton

Carl Morton

  • 5 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 2
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
It is bad practice to attempt to scrape syslog for information like this as it is intended as a local debugging aid only, the format is often subject to change and there is no recovery from packet loss.
Photo of Carl Morton

Carl Morton

  • 5 Posts
  • 0 Reply Likes
Thanks for the response Nick. What is the best practice to obtain the self registration information from the CWP?
Photo of Gary Smith

Gary Smith, Official Rep

  • 299 Posts
  • 61 Reply Likes
Carl,

There may be another way to achieve what you are after in 6.1r2:

Enhancements to Captive Web Portals: In this release, the captive web portals include the collection of
client information during authentication and information to determine the Aerohive device to which a
captive web portal client is associated:
Collecting Client Information from Captive Web Portal: You can now collect information submitted by
the user as part of the authentication and acceptance of the terms of use when a user authenticates to
a captive web portal.





Report client information gathered from captive web portals: Select to instruct devices to forward client information (such as name and email address) to HiveManager. HiveManager in turn logs the information as an event. (For information on the event log, see"Event Log".) This option is only available to VHM administrators.

With this enabled in our lab, we have also see that the self-reg details are captured in syslog.

Please let me know if there are any questions.

Kind Regards,
Gary Smith
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
My point was the general one that doing this with any vendor via syslog is inherently unreliably and always bad practice: syslog is not a reliable protocol with any form of acknowledgement from the destination, consequently any retry upon failure, so it is easy to get missing or partially complete data and there is no API 'contract' as you are scraping based on the textual format of a debugging aid.

I wanted to point that out so that you could make an informed choice before somebody else explained if it was possible to make the information available via that route (I had never looked) and, assuming so, how.

Garry has not touched on this issue in his post.
Photo of Carl Morton

Carl Morton

  • 5 Posts
  • 0 Reply Likes
Hi Gary,
Thanks for your response I have set up the Management options and I am now seeing the information I require on email and in a syslog.

Kind regards

Carl
Photo of Mohanantass

Mohanantass

  • 45 Posts
  • 0 Reply Likes
Hi carl, will be helpful if you can share how u manage to get an email in the those information ?