02-03-2014 05:24 AM - edited 02-03-2014 05:25 AM
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)" CONDITION_ID "a52a494-bad6-4c44-a0d1-efe1a2b4c1c4" CONDITION $e ".22.214.171.124.4.1.674.10892.1" $G 6 $S 1202 SET SEVERITY Normal APPLICATION "Administrator" MSGGRP "SNMPTraps" OBJECT "AmperageProbe" SERVICE_NAME "Hardware:Service:Server:SrvAdminSNMPTraps@@<$MSG_
NODE_ID>" MSGKEY "<$MSG_NODE_NAME> <$S> <$2>" TEXT "<$3>" AUTOACTION "HealthStatus.pl" HELPTEXT "https://localhost/knowledgebase/en/Server/msgch20 .html#wp1079371" HELP "60aac26c-0f41-4046-a78f-214476981ffb"
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.
02-03-2014 09:43 AM
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.
02-03-2014 10:12 PM - edited 02-03-2014 11:18 PM
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.
Am I missing something
02-04-2014 09:57 PM
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).
02-05-2014 12:41 AM
Thank You for your repsonse and time.
I have some doubt in your sugestion.
"To fix this edit the policy in question and re-enter instruction text and redistribute the policy."
Edit the policy with what?
Can you please suggest some sample.
Also how the data keyword and UUID is associated?
02-05-2014 01:01 AM
I can't answer your first question in more details because I don't know which product you are using, but all versions come with a policy editor (Motif GUI for OMU 8.x, Admin UI for OMU 9.x etc.).
I don't understand your second question.
02-05-2014 01:18 AM
First of all sorry for my bad English and way of asking the question.
I am using OMU 9.
First let me explain what I have done so that you can understand my situation.
I have a tested data and header file for a mib which I have tested on windows.
So i want to use the same data file for linux (OMU)too.
To to this, I created a dummy policy from OMU admin UI.
Then I edited the header.xml file which I created from OMU admin UI and replaces the data filename and checksum from for the data file which I had for windows.
After that I uploded this new edited header file using opcpolicy command, and then distributed it.
With this evrything is working fine excpect the instruction feild.
I hope I am clear now. If you need any more information please ask.
02-05-2014 01:52 AM
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.
02-05-2014 03:09 AM
Thank ou for your suggestion.
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-0800
09DC628C" 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-0800 09DC628C"
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.
What could be wrong in my method as all other things are working fine expect this Instruction feild. So if somehow I can make work then i dont have to go through method you sugeested.
02-05-2014 03:34 AM
The post only mentions you don't get assignments this way - you can still assign it manually and then distribute it.
What's the exact patch level you are on? "opcsv -version" shows it. The very early versions do not include one change related to handling policy uploads which include instruction text.
02-05-2014 03:41 AM
This is the version I am using
[root@localhost ~]# /opt/OV/bin/OpC/opcsv -version
@(#)HP Operations Manager 09.11.040 OML_00071 (10/18/13)
02-05-2014 03:52 AM
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).
02-05-2014 04:26 AM
Sorry to ask a basic question, but what is UUID and where can I find it.
Is UUID is the part of filename of data and header file, like UUID_data and UUID_header.xml ?
This is what is I got from net.
02-05-2014 05:10 AM
The part after the "HELP" keyword is the UUID:
grep HELP policy_file
I realized I used word "DATA" earlier - I have no idea why I wrote that, it should be "HELP", sorry about the confusion.