pw group add_monitor
This command adds a monitor to a group.
Warning
You can use the pw group add_monitor
command only with groups that contain only other monitor instances or that are empty. This command will fail if the group contains other subgroups.
pw group add_monitor [-p <ParentGroupName>| -c <ChildGroupName>] -f <filter>
The -f
filter
option allows you to filter out a monitors to be added to a device. The filter
option can have anyone of the following value :
device=
devicemtype=
monitortypeUniqueNamemname=
monitorInstanceNamemtype=
monitortypeUniqueName,mname=
monitorInstanceNamedevice=
device,mtype=
monitortypeUniquename,mname=
monitorInstanaceNameFor example:
- To add all the monitors under a device named "xyz.co.in" to a parent group called "test_group," run the following command:
pw group add_monitor -p test_group -f device="xyz.co.in"
- To add all the Solaris Process Monitor instances under the device named "xyz.co.in" to a parent group called "test_group," run the following command:
pw group add_monitor -p test_group -f device="xyz.co.in",mtype="SolarisProcess"
- To add all the monitor instances of Solaris Process having instance name as "JServer" under a device named "xyz.co.in" to a child group called "test_group," run the following command:
pw group add_monitor -c test_group -f device="xyz.co.in",mtype=SolarisProcess,mname=jserver
- To add all the Solaris Process Monitor instances under all the devices in the BMC TrueSight Infrastructure Management Server to a child group called "test_group," run the following command:
pw group add_monitor -c test_group -f mtype="SolarisProcess"
- To add all the monitor instances named "yahoo" under all the devices in the BMC TrueSight Infrastructure Management Server to a parent group called "test_group," run the following command:
pw group add_monitor -p test_group -f mname=yahoo
Limitation
When the pw group add_monitor
command is used with a filter specifying a device and that device had monitor instances which were deleted prior to using the pw group add_monitor
command, then after completion of the pw group add_monitor
command, the deleted monitor instances are also added to the group.
Comments
Log in or register to comment.