pw device duplicate
-y -copy-baseline -debug -desc <description> -tag <tag_value>
-r read_community_string> -s <agent> -withdns -alias <device_alias>]
Copying baseline values
To create a new device based on the properties of an existing device (including agents and monitors), run the following command:
A new agent is created, for the new device <new-device>, if the old device specified has an agent, and all monitors that the existing device contains.
For new monitors that are being added with additional parameters such as -m, -mall, -t, -u, and -x, corresponding monitors are searched on the existing device <old-device>. If present, baseline values are copied from the corresponding monitor to the new monitor instance.
For example:
Info: Added device bandra
Info: Added agent bandra
Info: Agent Status ProactiveNet Agent Status added
Info: Added threshold for instance Ping Source Agent =
Info: BMC ProactiveNet Server, Target Device = 192.168.3.41, attribute
Info: Availability, severity SLO
Info: Added threshold for instance Ping Source Agent =
Info: BMC ProactiveNet Server, Target Device = 192.168.3.41, attribute
Info: Response Time, severity SLO
Info: Ping Source Agent = BMC ProactiveNet Server, Target Device =
Info: 192.168.3.41 added
Info: TCP Target IP/Host Name = 192.168.3.41 added
Info: Copying baseline from Agent Status Akshay/ProactiveNet Agent
Info: Status to bandra/ProactiveNet Agent Status.
Info: Copying baseline from Ping Akshay/Source Agent =
Info: BMC ProactiveNet Server, Target Device = 192.168.3.156 to bandra/Source
Info: Agent = BMC ProactiveNet Server, Target Device = 192.168.3.41.
Info: Copying baseline from TCP Akshay/Target IP/Host Name =
Info: 192.168.3.156 to bandra/Target IP/Host Name = 192.168.3.41.
Adding a duplicate device with DNS name
The pw device command with the -withdns option enables you to add a duplicate device with a DNS name. For example, if you run the pw device duplicate <source device> <target device> -withdns command, the target device is duplicated with the DNS name.
If the source device has either an agent ,monitors or both, the agent or monitors in the target device are added with the DNS name regardless of whether the agents or monitors on the source device are named with IP address or DNS name. For monitors that do not support DNS name, the IP address gets resolved.
The pw device duplicate command without the -withdns option creates devices, monitors, and agents with the resolved IP address of the target device.
Adding a duplicate device with alias and tag values
The pw device command with -alias and -tag options enables you to duplicate a device with the specified alias and tag values.
For example, the following command enables you to create a device venus, which is a duplicate of the device mars, with the alias name MarsToVenus and tag LOCATION=US.