vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
trace<br />
Chapter 4 <strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> Subroutine Reference<br />
General‐purpose logging function used in conjunction with the --verbose command‐line option. Default log<br />
level is 0. Passing the --verbose flag without a value sets the level to 1.<br />
Parameters<br />
Parameter Description<br />
loglevel Numeric value that specifies the log level. Default is 0.<br />
message String that specifies the associated loglevel value.<br />
Returns<br />
Returns nothing.<br />
Subroutines in the Vim Package<br />
The Vim package includes the following subroutines:<br />
“clear_session” on page 45<br />
“find_entity_view” on page 45<br />
“find_entity_views” on page 46<br />
“get_service_instance” on page 47<br />
“get_service_content” on page 47<br />
“get_session_id” on page 48<br />
“get_view” on page 48<br />
“get_views” on page 48<br />
“load_session” on page 48<br />
“login” on page 49<br />
“logout” on page 49<br />
“save_session” on page 50<br />
“update_view_data” on page 50<br />
clear_session<br />
Terminates the current session loaded by the load_session() subroutine.<br />
Parameters<br />
No parameters.<br />
Returns<br />
Returns nothing.<br />
find_entity_view<br />
Searches the inventory tree <strong>for</strong> a managed entity that matches the specified entity type. The search begins with<br />
the root folder unless the begin_entity parameter is specified.<br />
In most cases, you specify a filter or property when using this command to avoid per<strong>for</strong>mance problems. See<br />
“Creating and Using Filters” on page 33 and “Filtering Views Selectively Using Properties” on page 35.<br />
<strong>VMware</strong>, Inc. 45