Leveraging the vcem web user interface, Gathering vc environment information, Script development considerations – HP Insight Management-Software User Manual
Page 7: Choosing a location for the script files, Initiating multiple commands
•
Run scripts in response to HP Systems Insight Manager events or from the Windows job
scheduler.
•
Leverage the comma-separated values (CSV) export of profile data to answer questions such
as:
◦
Where is this MAC address or WWN used?
◦
Which profiles use this network?
◦
Which profiles use this fabric?
◦
What is different between these profiles?
Leveraging the VCEM web user interface
The VCEMCLI is designed to be used in addition to the VCEM web user interface. The web UI is
an easy way to gather information about your VC configuration and to examine the results of
scripted operations during the script development process.
Gathering VC environment information
Before you use the VCEMCLI, gather the following:
•
Systems Insight Manager authentication information
•
List of VC domains
•
List of VC domain groups
•
List of VC server profiles (can be done via the VCEMCLI -export profiles command)
•
List of VC networks
•
List of VC storage fabrics
•
SAN-boot configuration details (if any)
•
List of enclosures and a list of bays and servers contained in the enclosures
Script development considerations
The information in this section helps you with some key decisions on how your scripts are structured.
Choosing a location for the script files
Do not place the scripts you create in the VCEMCLI installation directory, because this approach
might prevent product upgrades from functioning. Instead, create your scripts in a separate directory
outside the HP installation directory tree.
Initiating multiple commands
Initiating several commands into the CMS quickly increases resource consumption on that system
for both CPU and memory. At some point, there is a risk of exceeding the system's ability to accept
and queue additional jobs.
To avoid this situation, HP recommends that you code script in such a way that it will be able to
cope with failed job submissions. Then, you must wait for a period of time and attempt to submit
the job again.
Do not use the -nb option when you are submitting multiple commands to operate on a single
profile, such as a series of commands to add multiple network connections. Doing so can cause
the commands to interfere with each other during processing.
Script development considerations
7