ExtremeCloud IQ- Site Engine & Extreme Management Center

Expand all | Collapse all

Powershell access to NAC controller

  • 1.  Powershell access to NAC controller

    Posted 09-22-2016 07:49
    Hello,
    he have the challenge to assign new MAC adresses to groups in NACs for port based authentication. This will be part of a deployment solution which will be scripted in powershell. I have the documentation of the NAC request tool, but a web interface (REST API) would be prefferrd. I also have the documentation "OneFabric Connect API Reference Guide" but this doesn't state how the sytanx looks like or doesn't give script examples (ideally in powershell).

    Could anyone give me a hint to get rolling?

    __Leo



  • 2.  RE: Powershell access to NAC controller

    Posted 09-27-2016 06:18
    I used PowerShell to connect to NetSight using the method described in the "OneFabric Connect API Reference Guide" but we unfortunately don't have the license to use the API. But maybe this can help you: https://gist.github.com/joxz/66694b99478314cddc90e59e0e14eac3


  • 3.  RE: Powershell access to NAC controller

    Posted 09-27-2016 06:24
    That looks very promising 🙂 I'll give it a try.

    Thank you!!

    __Leo


  • 4.  RE: Powershell access to NAC controller

    Posted 11-17-2017 12:20
    I have tried it but no success. I can get a connection, but with every request I get

    Exception calling "getAllEndSystemMacs" with "0" argument(s): "The request failed with HTTP status 505: HTTP Version Not Supported."

    Pasting the request into a browser on the same machine, I get the expected results. From what I understand I need to modify the HTML header and/or use authentication cookies, but as I have no experience with SOAP or REST, I'm completely lost.

    Anyone any idea? Input highly appreciated!!
    __Leo