Coder Social home page Coder Social logo

powerarubaiap's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

alagoutte

powerarubaiap's Issues

Add Action API

From Aruba Instant 8.5, Add Action API

  • Hostname
  • Swarm Mode
  • Static Channel and Power
  • Zone
  • Antenna gain
  • Enabling and disabling radios

HttpWebRequestError: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

When trying to connect to an IAP AP-303 with OS 8.5 I get an error message:

HttpWebRequestError: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

I added a function to enable parsing of unsafe headers to conection.ps1 and it solved the problem.

function Set-UseUnsafeHeaderParsing
        {
            param(
                [Parameter(Mandatory,ParameterSetName='Enable')]
                [switch]$Enable,

                [Parameter(Mandatory,ParameterSetName='Disable')]
                [switch]$Disable
            )

            $ShouldEnable = $PSCmdlet.ParameterSetName -eq 'Enable'

            $netAssembly = [Reflection.Assembly]::GetAssembly([System.Net.Configuration.SettingsSection])

            if($netAssembly)
            {
                $bindingFlags = [Reflection.BindingFlags] 'Static,GetProperty,NonPublic'
                $settingsType = $netAssembly.GetType('System.Net.Configuration.SettingsSectionInternal')

                $instance = $settingsType.InvokeMember('Section', $bindingFlags, $null, $null, @())

                if($instance)
                {
                    $bindingFlags = 'NonPublic','Instance'
                    $useUnsafeHeaderParsingField = $settingsType.GetField('useUnsafeHeaderParsing', $bindingFlags)

                    if($useUnsafeHeaderParsingField)
                    {
                    $useUnsafeHeaderParsingField.SetValue($instance, $ShouldEnable)
                    }
                }
            }
        }

        Set-UseUnsafeHeaderParsing -Enable

Add Configuration API

From Aruba Instant 8.5 REST API Guide, Add Configuration API

  • VC Country Code
  • VC IP address
  • NTP Server
  • Syslocation
  • Organization
  • Syslog Level
  • Syslog Server
  • dot11g Radio Profile
  • ARM
  • dot11a Radio Profile
  • SSID Profile
  • RF Band
  • Authentication Server Profile
  • ACL Profile
  • External Captive Portal
  • IDS
  • Software Upgrade
  • Time Zone
  • AP Reboot
  • Wired Port Profile
  • Wired Profile Map
  • Management User

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.