|
Home | Switchboard | Unix Administration | Red Hat | TCP/IP Networks | Neoliberalism | Toxic Managers |
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and bastardization of classic Unix |
News | HP Operations Manager | Usage | Operations | Attributes | Examples |
Policies | Default Policy Groups | node groups | Layout groups | Humor | Etc |
|
Note: HP renamed the product called now HP operations manager way too many times. Also it is very inconsistent with using abbreviations. Here we will assume that the term "HP Operations manager" and abbreviations HPOM, OMU, and OVO mean the same thing :-)
Use the command opcnode to maintain nodes, node groups, template and category assignments. It enables assignment of modified or new policies to nodes or node groups. Can add new nodes (using standard parameters) and assign them to node groups. Additionally, users can check the configuration of a node or node group by listing the assigned templates or nodes, change the communication type of a list of nodes, change the machine type of a list of nodes, change the node type of a list of nodes.
|
It is a quite convenient way to disable receiving messages from a number of nodes.
It can be used by a HPOM user with no administrative privileges (e.g. template administrator), who has root access to the Management Server.
For handling virtual nodes (aka resource group) you can promote physical nodes to virtual ones, re-physicalize them again, assign other physical nodes to a virtual one or even change/assign a cluster package name to the virtual node.
Use opcnode to assign and design categories to specified nodes. You can also list all assigned categories to specified nodes.
If opcnode is called without any option, the usage string appears.
opcnode uses two types of parameter: operations and attributes. The operations are indicated by a '-' like -<operation>. Attributes are always specified through an assignment like <attrib>=<value>. Each parameter must be specified in full.
Note: Only one operation is allowed per call, opcnode cannot perform more than one operation per call.
Operations:
------------add_node | -del_node | -list_nodes |
-add_group | -del_group | -list_groups |
-assign_templ | -deassign_templ | -list_ass_templs |
-assign_node | -deassign_node | -list_ass_nodes |
-move_nodes | -list_templs | -chg_nodetype |
-chg_commtype | -chg_iptype | -chg_machtype |
-chg_id | -del_id | -list_id |
-set_physical | -set_virtual | -list_virtual |
-assign_cat | -deassign_cat | -list_ass_cat |
-assign_pol | -deassign_pol | -list_ass_pols |
-assign_pol_group| -deassign_pol_group | -list_ass_pol_groups |
-list_attrs |
-list_mach_typeAttributes:
-----------
node_name=<node_name> // Node Name
node_label=<node_label> // Label of the node
node_list='<list>' // List of nodes
group_name=<nodegrp_name> // Nodegroup Name
group_label=<group_label> // Label of the node group
node_hier=<node_hierarchy> // Node Hierarchy Name
layout_group=<layout_group> // Layout Group Name
net_type=<network_type> // Network Type of the node
mach_type=<machine_type> // Machine type of the node
comm_type=<comm_type> // Communication type of the node
node_type=<node_type> // Node type of the node
templ_name=<templ_name> // Template name
templ_type=<templ_type> // Template type
id=<uuid> // Agent ID
dynamic_ip=<yes|no> // Using dynamic IP address
cluster_package=<cluster pkg ID> // HA resource group identifier
sep=<separator character> // Optional separator for node list
ip_addr=<IP Address> // IP address of the node
cat_list='<comma separated categories>' // List of categories
pol_name=<policy name> // Name of the policy
pol_type=<policy type> // Type of the policy
version=<policy version> // Version of the policy
pol_group=<policy group name> // Name of the policy group
mode=<assignment mode> // Mode of policy-to-node assignement
NETWORK_NO_NODE
NETWORK_IP
NETWORK_OTHER
NETWORK_UNKNOWN
PATTERN_IP_ADDR
PATTERN_IP_NAME
PATTERN_OTHER
MACH_BBC_SOL_SPARC
MACH_BBC_HPUX_IPF32
MACH_BBC_HPUX_PA_RISC
MACH_BBC_WIN2K3_X64
MACH_BBC_WINXP_IPF64
MACH_BBC_LX26RPM_X64
MACH_BBC_LX26RPM_X86
MACH_BBC_WINNT_X86
MACH_BBC_OTHER_NON_IP
MACH_BBC_LX26RPM_IPF64
MACH_BBC_SOL10_X86
MACH_BBC_AIX_PPC
MACH_BBC_AIX_K64_PPC
MACH_BBC_OTHER_IP
COMM_UNSPEC_COMM
COMM_BBC
DISABLED
CONTROLLED
MONITORED
MESSAGE_ALLOWED
TEMPLATE_GROUP
CONSOLE_TEMPLATE
OPCMSG_TEMPLATE
LOGFILE_TEMPLATE
MONITOR_TEMPLATE
SNMP_TEMPLATE
EC_TEMPLATE
SCHEDULE_TEMPLATE
FIX (default)
MINOR_TO_LATEST
LATEST
Option FIX assigns the specified policy version to the node. If option MINOR_TO_LATEST is used the highest minor version that has the specified major version is assigned to the node. If mode has value of LATEST, the absolute highest version of the policy is assigned to the node. In MINOR_TO_LATEST and LATEST cases, assignment changes automatically as new versions that satisfy the criteria are created. In case of MINOR_TO_LATEST, assignment will be updated if a new policy version which has the same major number as the originally assigned one is created. With LATEST, the assignment updates as soon as the new highest policy version is created.
This command can only be issued by the root user. To enable other users to execute this command, the system administrator must change the file's attributes and copy it to a location which is included in the $PATH variable.
root@unlab12:/opt/OV # opcnode -list_nodes List of all Nodes in the HPOM database: ==================================================================== Name = unlab12.rockaway.firma.com Label = unlab12 IP-Address = 10.194.146.2 Network Type = NETWORK_IP Machine Type = MACH_BBC_LX26RPM_X64 Comm Type = COMM_BBC DHCP enabled = no (0x22) ==================================================================== Operation successfully completed.
root@unlab12:/opt/OV # opclaygrp -list_node_hier List of node hierarchies: ==================================================================== Name = NodeBank Label = HPOM Node Bank Description = Node hierarchy of administrator ==================================================================== Operation successfully completed.
opcnode -list_attrs node_name=nti106Add the HP-UX 11.0 node fancy.ben.kape.com with network type IP and assign it to the node group hp_ux:
====================================================================
Number of CPUs: 8
CPU Type: ia64
OS Family: unix
OS Type: HP-UX
OS Name: HP-UX
OS Vendor: Hewlett-Packard
OS Version: 11.31
OS Bits: 64
Agent Bits: 32
MAC Addresses: 64315000C140
====================================================================
Operation successfully completed.
opcnode -add_node node_name=fancy.ben.kape.com \ net_type=NETWORK_IP mach_type=MACH_BBC_HPUX_PA_RISC \ group_name=hp_ux
Assign a policy to a node: opcnode -assign_pol pol_name="opcmsg(1|3)" \ pol_type=Open_Message_Interface version=1.0 \ node_name=fancy.ben.kape.com net_type=NETWORK_IP Assign a policy group to a node: opcnode -assign_pol_group pol_group="HP-UX 10.x/11.x" \ node_name=fancy.ben.kape.com net_type=NETWORK_IP Change the communication type of several nodes, using ":" character as separator for node_list: opcnode -chg_commtype \ node_list="fancy.ben.kape.com:server.ben.kape.com" \ comm_type=COMM_BBC \ sep=: \ Change the machine type of several nodes: opcnode -chg_machtype \ node_list="fancy.ben.kape.com server.ben.kape.com" \ mach_type=MACH_BBC_SOL_SPARC \ Change the node type of several nodes: opcnode -chg_nodetype \ node_list="fancy.ben.kape.com server.ben.kape.com" \ node_type=DISABLED \ Change the node type of a node for external events of type IP-Name: opcnode -chg_nodetype \ node_list="^<*>.hp.com$" net_type=PATTERN_IP_NAME \ node_type=DISABLED \ List all nodes which are assigned to the node group hp_ux: opcnode -list_ass_nodes group_name=hp_ux Promote a node to virtual and assign physical nodes and a HA resource group name: opcnode -set_virtual node_name=urmel.hp.com node_list="wutz.hp.com wawa.hp.com" cluster_package="titiwu_HA" Assign several categories to several nodes : opcnode -assign_cat cat_list="catA,catB" node_list="fancy.ben.kape.com server.ben.kape.com" List categories, which are assigned to several nodes : opcnode -list_ass_cat node_list="fancy.ben.kape.com server.ben.kape.com"
|
Switchboard | ||||
Latest | |||||
Past week | |||||
Past month |
Oct 1, 2010 | IT Resource Center forums
Archana1
Hello experts,
We have 300 server as HPOM 8 agents. Now I have situation to verify templates deployed on all 300 agents. Please advice
Is there any simplest command or way ? other than checking manually on each agent.
Larry Klasmier :
use ovpolicy from the management node. If you have a list of the managed nodes you can script it to access all 300 nodes. if not you can use opcnode to feed the node names to the ovpolicy command. Check out the man pages for both ovpolicy and opcnode.
sekar sundaram:
get the nodes list on a file opcnode -list_nodes > /tmp/nodeslist
then run ovdeploy on each node thru a for loop:
for NODE in `cat /tmp/nodeslist` do ovdeploy -cmd "ovpolicy -list" -node $NODE done
better forward the output to a file, so that you can check it later..
ovdeploy -cmd "ovpolicy -list" -node $NODE >> /tmp/nodes-policies
NOTE - "ovpolicy" command works on OVO 8 agents and "opctemplate" command for OVO 7 agents.
Larry Klasmier:
No need to run ovdeploy. ovpolicy can query the policy on a managed node from the management server
ovpolicy -list -node <managed node>
Society
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
Quotes
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Bulletin:
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
History:
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
Classic books:
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|
You can use PayPal to to buy a cup of coffee for authors of this site |
Disclaimer:
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.
Last modified: March 12, 2019