Skip to content

Set-LMNormalizedProperties

Syntax

Add

Terminal window
Set-LMNormalizedProperties -Alias <String> [-Add] -Properties <Array> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Remove

Terminal window
Set-LMNormalizedProperties -Alias <String> [-Remove] -Properties <Array> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Description

The Set-LMNormalizedProperties cmdlet updates normalized properties in LogicMonitor. Normalized properties allow you to map multiple host properties to a single alias that can be used across your environment.

Examples

Example 1

Terminal window
Set-LMNormalizedProperties -Add -Alias "location" -Properties @("location", "snmp.sysLocation", "auto.meraki.location")
Updates a normalized property with alias "location" to include the new properties.

Example 2

Terminal window
Set-LMNormalizedProperties -Remove -Alias "location" -Properties @("auto.meraki.location")
Removes the "auto.meraki.location" property from the "location" alias.

Parameters

-Alias

The alias name for the normalized property.

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Add

Indicates that properties should be added to the existing normalized property.

Type: SwitchParameter
Parameter Sets: Add
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Remove

Indicates that properties should be removed from the existing normalized property.

Type: SwitchParameter
Parameter Sets: Remove
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Properties

An array of host property names to map to the alias.

Type: Array
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None.

Outputs

Returns a message indicating the success of the operation.

Notes

This function requires a valid LogicMonitor API authentication and uses API v4.