You can test ZenCommand data sources by using the zentestcommand shell script.
- Log in to the Control Center host as a user with serviced CLI privileges.
- Attach to the zenhub
serviced service attach zenhub
- Change to the zenoss
su - zenoss
- Run the zentestcommand
zentestcommand –d DeviceID --datasource=DataSourceName
where DeviceID is the ID of the device on which you want to run the command, and DataSourceName is the name of a data source on a template associated with the device.
The zentestcommand script prints the results of the command to standard output.