Main Content

addTarget

Add target computer to target computers object

Since R2022b

    Description

    example

    addTarget(tgs,targetName,ipAddress,userName,password) adds the specified target to the object.

    Examples

    collapse all

    Create a target object and add a target with name LinuxTarget1 containing user name user1, password myPassword, and IP address.

    tgs = linux.Targets();
    tg = tgs.addTarget("LinuxTarget1", "178.10.10.1", "user1", "myPassword");

    Input Arguments

    collapse all

    Target object created by the linux.Targets class.

    Example: tgs, target_object

    Specify a name for the target.

    Example: "LinuxTarget1"

    Specify the IP address of the target.

    Example: "178.10.10.1"

    Specify the user name for the target.

    Example: "user1"

    Specify the password for the user on the target.

    Example: "myPassword"

    Version History

    Introduced in R2022b