I am a facing a problem where I am not able to see my helpmate string/command in my trap message. For example consider below is one of my policy condition:
DESCRIPTION "alertAmperageProbeNormal (SNMPv1)"
MSGKEY "<$MSG_NODE_NAME> <$S> <$2>"
Now the problem is whenever i am sending any trap related to this condition, I am not able to see "HELPTEX" feild in my message properties. I checked the instruction feild of my message properties but got no luck. I need this https link for displaing help properties.
Make sure the message is from the correct policy (in case you have more than one SNMP trap policy) and the correct condition (you may have a more generic condition first that matches). You can check that in the Source field of the message properties window.
Also, make sure you have the correct version of the policy on the managed node. You can check with this:
# opctemplate -l
If it's not the correct version, distribute policies to the managed node again.
I have checked these things. Even All other feilds are getting populated correctly. Only the HELPTEXT mesage is not coming in any tab of the message feild. In windows HELPTEXT is getting populated in Instruction feild of the message properties.
One more thing I observed rigth now. When ever I am opening the message properties, I am getting message "There was a problem in getting message instruction from the agent." Invalid Instruction identifier received".
Also What is below feild in the data file of Policy.
The "DATA" keyword is used to specify UUID for the instruction text, which is stored in the database. You should be able to find it like so:
echo "select * from opc_instructions where instruction_id = '7057822e-8e28-71e3-0931-0a1112140000';" | opcdbpwd -e sqlplus
But based on your error message the above select will most likely not find it. To fix this edit the policy in question and re-enter instruction text and redistribute the policy. After this you should be able to find the instruction text using a select like above (just make sure to replace the UUID you're looking for).
Don't do this - I am assuming you're also having an OMW server, so download a policy from it in a format that's usable for OMU too. I don't know which command (I think it has been mentioned on this forum too in the past) can be used for this, but I'm sure you can find it in help. Then upload it to OMU, assign it to a node, distribute it and should work OK.
I tried to search the command to download policies from my OMW server. In some post someone has mentioned to follow below procedure.
To download a policy and convert it to text (HPOM for UNIX) format:
Download the policies in the policy group Server Policies to the test directory on the C drive
ovpmutil CFG POL DNL c:\test /p "\Server Policies"
Extract a downloaded structured storage file to a text header and data file:
ovpmutil PCV /x "C:\test\disk_monitor_CC832F49-A8BC-11D3-A45F-080009DC628C"
Combine the header and data file into a structured policy storage file that can be uploaded on the management server:
ovpmutil PCV /c "C:\test\disk_monitor_CC832F49-A8BC-11D3-A45F-080009DC628C"
But on below post some has mentioned that it is possoble only between OMW8.16 and OMU 9.
Also in the below post JeanBernard has replied that policies can be uploaded but cannot be distributed among the nodes.
This version includes the change I mentioned before - for this version taking a policy file and uploading it should result in the previously mentioned select returning the instruction text (just make sure you use the right UUID).