Powershell access to NAC controller
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎09-22-2016 07:49 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎11-17-2017 12:20 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎09-27-2016 06:24 AM
That looks very promising  I'll give it a try.
Thank you!!
__Leo
Thank you!!
__Leo
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎09-27-2016 06:18 AM
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
