OMU message instruction field empty. (324 Views)
Reply
Frequent Advisor
Prak5192
Posts: 53
Registered: ‎10-30-2013
Message 1 of 14 (324 Views)

OMU message instruction field empty.

[ Edited ]

Hi All,

 

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 ".1.3.6.1.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. 

 

 

 
Please use plain text.
HP Expert
tobias_m
Posts: 212
Registered: ‎05-06-2010
Message 2 of 14 (305 Views)

Re: OMU message instruction field empty.

Hello,

 

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.

 

Best regards,

Tobias

Please use plain text.
Frequent Advisor
Prak5192
Posts: 53
Registered: ‎10-30-2013
Message 3 of 14 (293 Views)

Re: OMU message instruction field empty.

[ Edited ]

Hi Tobias,

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.

 HELP "60aac26c-0f41-4046-a78f-214476981ffb"

 

Am I missing something

 

 

 

Thank You. 

Please use plain text.
Honored Contributor
Goran Koruga
Posts: 1,280
Registered: ‎12-05-2002
Message 4 of 14 (273 Views)

Re: OMU message instruction field empty.

Hello.

 

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).

 

Regards,

    Goran

Please use plain text.
Frequent Advisor
Prak5192
Posts: 53
Registered: ‎10-30-2013
Message 5 of 14 (264 Views)

Re: OMU message instruction field empty.

Hi Goran,

 

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?

 

Thank You

 

 

Please use plain text.
Honored Contributor
Goran Koruga
Posts: 1,280
Registered: ‎12-05-2002
Message 6 of 14 (262 Views)

Re: OMU message instruction field empty.

Hello.

 

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.

 

Regards,

    Goran

Please use plain text.
Frequent Advisor
Prak5192
Posts: 53
Registered: ‎10-30-2013
Message 7 of 14 (257 Views)

Re: OMU message instruction field empty.

Hi Goran,

 

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.

 

Thank you.

Please use plain text.
Honored Contributor
Goran Koruga
Posts: 1,280
Registered: ‎12-05-2002
Message 8 of 14 (253 Views)

Re: OMU message instruction field empty.

Hello.

 

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.

 


Regards,

    Goran

Please use plain text.
Frequent Advisor
Prak5192
Posts: 53
Registered: ‎10-30-2013
Message 9 of 14 (243 Views)

Re: OMU message instruction field empty.

Hi Goran,

 

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-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 has replied that policies can be uploaded but cannot be distributed among the nodes.

 

http://h30499.www3.hp.com/t5/Systems-Management-OpenView-OP/How-to-import-ovow-7x-policy-to-omu-9/m-...

 

 

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.

 

Please Help.

 

Please use plain text.
Honored Contributor
Goran Koruga
Posts: 1,280
Registered: ‎12-05-2002
Message 10 of 14 (240 Views)

Re: OMU message instruction field empty.

Hello.

 

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.

 

Regards,

    Goran

Please use plain text.
Frequent Advisor
Prak5192
Posts: 53
Registered: ‎10-30-2013
Message 11 of 14 (238 Views)

Re: OMU message instruction field empty.

Hi Goran,

 

 

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)
[root@localhost ~]#

Thank You

Please use plain text.
Honored Contributor
Goran Koruga
Posts: 1,280
Registered: ‎12-05-2002
Message 12 of 14 (236 Views)

Re: OMU message instruction field empty.

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).

 

    Goran

Please use plain text.
Frequent Advisor
Prak5192
Posts: 53
Registered: ‎10-30-2013
Message 13 of 14 (229 Views)

Re: OMU message instruction field empty.

Hi Goran,

 

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.

 

Thank you

Please use plain text.
Honored Contributor
Goran Koruga
Posts: 1,280
Registered: ‎12-05-2002
Message 14 of 14 (223 Views)

Re: OMU message instruction field empty.

Hello.

 

The part after the "HELP" keyword is the UUID:

 

    HELP "60aac26c-0f41-4046-a78f-214476981ffb"

 

So:

 

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.

 

Regards,

    Goran

 

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation