< Back
Get-ArubaSWCli
Post
NAME Get-ArubaSWCli
SYNOPSIS
Get the result of a cli command on ArubaOS Switch.
SYNTAX
Get-ArubaSWCli [-cmd] <String> [-display_result] [-connection <PSObject>] [<CommonParameters>]
DESCRIPTION
Get the result of a cli command.
All configuration and execution commands in non-interactive mode are supported.
crypto, copy, process-tracking, recopy, redo, repeat, session, end, print, terminal,
logout, menu, page, restore, update, upgrade-software, return, setup, screen-length,
vlan range and help commands are not supported.
Testmode commands are not supported.
All show commands are supported except show tech and show history
PARAMETERS
-cmd <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-display_result [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-connection <PSObject>
Required? false
Position? named
Default value $DefaultArubaSWConnection
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ArubaSWCli -cmd "Show running-config"
This function give you the result (cmd, status, result, error_mesg...) of a cli command on the switch.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-ArubaSWCli -cmd "Show running-config" -display_result
This function give only ther esult of a cli command on the switch.
RELATED LINKS
SYNOPSIS
Get the result of a cli command on ArubaOS Switch.
SYNTAX
Get-ArubaSWCli [-cmd] <String> [-display_result] [-connection <PSObject>] [<CommonParameters>]
DESCRIPTION
Get the result of a cli command.
All configuration and execution commands in non-interactive mode are supported.
crypto, copy, process-tracking, recopy, redo, repeat, session, end, print, terminal,
logout, menu, page, restore, update, upgrade-software, return, setup, screen-length,
vlan range and help commands are not supported.
Testmode commands are not supported.
All show commands are supported except show tech and show history
PARAMETERS
-cmd <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-display_result [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-connection <PSObject>
Required? false
Position? named
Default value $DefaultArubaSWConnection
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ArubaSWCli -cmd "Show running-config"
This function give you the result (cmd, status, result, error_mesg...) of a cli command on the switch.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-ArubaSWCli -cmd "Show running-config" -display_result
This function give only ther esult of a cli command on the switch.
RELATED LINKS