< Back

Add-NSmonitorToService

Fri Jan 10, 2020 9:38 pm

NAME Add-NSmonitorToService



SYNOPSIS

The add-nsmonitortoservice cmdlet is used to associate a monitor with a service or service group.





SYNTAX

Add-NSmonitorToService -monitorname <string> -servicename <string> [-returnobject <SwitchParameter>] [-session

<nitro_service>] [-weight <uint>] [<CommonParameters>]





DESCRIPTION

The add-nsmonitortoservice cmdlet is used to associate a monitor with a service or service group.





PARAMETERS

-session <nitro_service>

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-monitorname <string>

Specify the name of the monitor



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-servicename <string>

Specify the name the service or service group to bind to



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-weight <uint>

Specify the weight of the binding.



Required? false

Position? named

Default value 1

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-returnobject <SwitchParameter>

If set to true, the object that is created is returned. This is useful to testing purposes.



Required? false

Position? named

Default value False

Accept pipeline input? true (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

com.citrix.netscaler.nitro.service.nitro_service

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



System.String

Specify the name of the monitor



System.String

Specify the name the service or service group to bind to



System.UInt32

Specify the weight of the binding.



System.Management.Automation.SwitchParameter

If set to true, the object that is created is returned. This is useful to testing purposes.





OUTPUTS

com.citrix.netscaler.nitro.resource.config.lb.lbmonitor_service_binding







RELATED LINKS