Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to get aaasession #105

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

overag3
Copy link

@overag3 overag3 commented Oct 21, 2020

Description

Add function Get-NSAAASession to get NS AAA sessions.

With no parameter, all AAA sessions returned. The 'Username' and 'Filter' parameters can be used to select a specific session or a subset of sessions.

Motivation and Context

For some use cases, I need to retrieve the sessions to then manipulate them.

How Has This Been Tested?

$Hostname = 'hostname'
$Credential = Import-Clixml -Path .\cred.xml
$Session = Connect-NetScaler -Hostname $Hostname -Credential $Credential -Https -PassThru
$AAASessions = Get-NSAAASession -Session $Session
$AAAFilterSessions = Get-NSAAASession -Filter '^fr' -Session $Session
$AAAUserSessions = Get-NSAAASession -Name 'user1','user2' -Session $Session

$Users = 'user1', 'user2'
$Users | Get-NSAAASession -Session $Session

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Get-NSAAASession function return AAA sessions.
With no parameters, all AAA sessions returned, parameter Username and
Filter can be used to return specific session or a subset of sessions.
@overag3 overag3 changed the base branch from master to dev October 22, 2020 11:03
@overag3
Copy link
Author

overag3 commented Oct 22, 2020

In my work env, all checks are passed, no problem detected.
Where is the mistake ?

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant