ISS Technology Update, Vol. 7 Number 6

ISS Technology Update Volume 7, Number 6
9
NOTE
This usage is beyond the ability of a simple use of the mxquery command. If users have
experience in this area, they could define an SQL statement to run against the database that
outputs the names of the nodes they want to eliminate and then pass it to the mxnode
command. If this SQL statement is packed in a script of some sort, it can be scheduled through
the operating system or through HP SIM.
Using the mxnode command for scripting
The mxnode command allows customers to add, modify, remove, or list HP SIM systems. When entering mxnode commands,
customers can specify systems on the command line or in an XML file. See the mxnode(4) manpage for the required XML format
for input files. To view an example, enter mxnode -lf mysystem, and substitute one of the system names for mysystem.
Only full configuration rights users can add, modify, or remove systems. Any user can view system information.
mxnode -r nodename(s)|hostname(s)|ipaddr(es) [-x force] [-v]
mxnode -r -f filename [-x force] [-v]
The -r option allows customers to remove a system from the database. The system to be removed can be specified by its
system name, hostname, or IP address. Removing a system only removes its context from the database. The CMS itself and
non-empty container systems cannot be removed.
During the removal process, the system is removed from all system groups and all authorizations for the system are removed
(see mxauth(1M)).
It is not an error to remove a system from the database while a task is running on the system. HP SIM does not terminate the
task on the system; task results and status are sent to HP SIM when the task is complete.
Additional resources
For additional information on the topics discussed in this article, visit:
Resource URL
HP SIM website
www.hp.com/go/hpsim
HP SIM command lines
http://h20000.www2.hp.com/bc/docs/support/SupportMa
nual/c00849410/c00849410.pdf