| Author |
Messages |
|
psilva
  Posts:81
 |
| 04/27/2006 4:22 AM |
|
How can I configure agent callback? |
|
|
|
chris.poole
  Posts:54
 |
| 04/27/2006 9:24 AM |
|
Instructions on how to configure an agent call back are located in the "Using the (agent type) Agent" manual. Search for the manual on CA's support Connect website and replace the (agent type) with Unix, Windows, Log... etc...
For a quick hint to get you going I have included the Unix Agent instructions below...
To configure the agent to use call-backs permanently, you must perform the following steps:
1. Stop the agent, for example:
caiUxOs stop
2. Remove the agent as a registered Agent Technology component: caiUxOs remove
3. Install the UNIX System Agent as a registered Agent Technology component by using the ¨Cu switch, which enables the call-back facility, for example:
caiUxOs installauto --options=¡±¨Cu¡± --dependOn=aws_sadmin
4. Create a configuration set by using the mkconfig command, for example:
mkconfig ¨Cs caiUxOs > /home/aworks/atech/agents/config/caiUxOs.cfg
5. Edit the configuration set. For example, insert ¡°fsys_full¡± as a value of the uxsStatusFSysCallBackRef attribute:
#SNMPTABLE uxsStatusFSysTable uxsStatusFSysName /usr uxsStatusFSysRelatedTo /dev/dsk/c0t0d0s4 uxsStatusFSysType ufs uxsStatusFSysStatus 3 ¡ uxsStatusFSysMountedMonitor 2 uxsStatusFSysMountedStatus 2 uxsStatusFSysLossAction 3 uxsStatusFSysLossStatus 2 uxsStatusFSysRemove 1 uxsStatusFSysCallBackRef fsys_full
6. Save the configuration set.
7. Create a call-back entry by using the same attribute value specified above. Store this entry in a new configuration file or append it to an existing one. For example, to execute a cleanup application in the case of a full file system, you can use the following entry:
[fsys_full] # Call-back reference application=/usr/Unicenter/scripts/tidy_logs user=root args=userarg1 @AG_TYPE @AG_PROPERTY @AG_NAME @AG_STATUS -u userarg2 Notes:
A path or application name containing white space characters must be surrounded by quotes.
The userarg-parameters in the args entry represent additional user-defined parameters of the call-back application that are not handled by predefined @ keywords. See also Using a Call-Back Script in this chapter.
8. Save the file as caiUxOs.cbc in the following directory: Install_Path/agents/config/cbc, for example:
/home/aworks/atech/agents/config/cbc/caiUxOs.cbc
9. Secure the caiUxOs.cbc file by assigning appropriate access rights to user and group attributes. Do not use “rw-rw-rw-” to set any permission!
10. Load the modified configuration set into the admin store, for example:
ldconfig /home/aworks/atech/agents/config/caiUxOs.cfg
11. Start the agent, for example:
caiUxOs start.
Now the UNIX System Agent uses the call-back facility permanently. |
|
|
|
|