cancel
Showing results for 
Search instead for 
Did you mean: 

Powershell access to NAC controller

Powershell access to NAC controller

Leonhard_Kurz
New Contributor II
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

3 REPLIES 3

Leonhard_Kurz
New Contributor II
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

Leonhard_Kurz
New Contributor II
That looks very promising  I'll give it a try.

Thank you!!

__Leo

Johannes_Dennin
New Contributor
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
GTM-P2G8KFN