You can test the socket attribute group that you created,
within Agent Builder.
Before you begin
To test the attribute group, you need a socket client to
send data. An example socket client that is written with perl script
can be seen at Sample script for socket
Restriction: Unlike most other attribute groups, you cannot
test the socket attribute group while it is being created. You can
test the attribute group when you complete its creation.
Procedure
- Select an attribute group on the Agent Editor Data Source Definition page after agent
creation and click Test. For
more information about the Agent Editor, see Using the Agent Editor to modify the agent.
After you click Test in
one of the previous two steps, the Test Socket
Client window is displayed.
- Optional: Set environment variables and configuration
properties before you start testing.
- Click Start Agent.
A window indicates that the Agent is starting.
- When the agent starts, it listens for socket data according
to its configuration.
- To test your agent 's data collection, you now generate
socket data that matches the agents configuration.
You
can generate socket data by using a socket client.
When
the agent receives socket data that matches its configuration, it
adds the data to its internal cache.
- To simulate a request from Tivoli® Enterprise
Portal for agent data, click Collect Data.
The Test Socket Client window
collects and displays any data in the agent's cache since it was last
started.
- Click Check Results if
something does not seem to be working as expected.
The
Data Collection Status window opens and
shows you more information about the data. The data that is collected
and displayed by the Data collection Status window is described in
Performance Object Status node
- Stop the agent by clicking Stop
Agent.
- Click OK or Cancel to exit the Test
Socket Client window. Clicking OK saves
any changes that you made.