< Back

Set-iBMCAssetTag

Tue Jan 14, 2020 3:06 am

NAME Set-iBMCAssetTag



SYNOPSIS

Modify iBMC Asset Tag.





SYNTAX

Set-iBMCAssetTag [-Session] <RedfishSession[]> [[-AssetTag] <String[]>] [<CommonParameters>]





DESCRIPTION

Modify iBMC Asset Tag.





PARAMETERS

-Session <RedfishSession[]>

iBMC redfish session object which is created by Connect-iBMC cmdlet.

A session object identifies an iBMC server to which this cmdlet will be executed.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-AssetTag <String[]>

Indicates the asset tag

A character string that meets the following requirements:

- a string of 1 to 48 characters.

- an empty string if u want to set asset tag to null



Required? false

Position? 2

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

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

Null

Returns Null if cmdlet executes successfully.

In case of an error or warning, exception will be returned.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$credential = Get-Credential



PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert

PS C:\\> Set-iBMCAssetTag $session -AssetTag 'powershell-asset-tag'



Set Asset Tag to 'powershell-asset-tag' example









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$credential = Get-Credential



PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert

PS C:\\> Set-iBMCAssetTag $session -AssetTag ''



Set Asset Tag to null example











RELATED LINKS

https://github.com/Huawei/Huawei-iBMC-Cmdlets



Get-iBMCAssetTag

Connect-iBMC

Disconnect-iBMC