vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
vSphere SDK for Perl Programming Guide - Documentation - VMware
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> <strong>Programming</strong> <strong>Guide</strong><br />
3 Refining <strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> Scripts 33<br />
Creating and Using Filters 33<br />
Using Filters with Vim::find_entity_view() or Vim::find_entity_views() 33<br />
Filtering Views Selectively Using Properties 35<br />
Using View Subroutines with a Properties Argument 35<br />
Using Filters on the Utility Application Command Line 36<br />
Retrieving the ServiceInstance Object on a <strong>vSphere</strong> Host 36<br />
Saving and Using Sessions 36<br />
Saving Sessions 36<br />
Loading Sessions 37<br />
Using Multiple Sessions 37<br />
Learning About Object Structure Using Data::Dumper 38<br />
Specifying Untyped Arguments in Scheduled Tasks and Callbacks 39<br />
Using Advanced Subroutines 40<br />
Opts::get_config() 40<br />
4 <strong>vSphere</strong> <strong>SDK</strong> <strong>for</strong> <strong>Perl</strong> Subroutine Reference 41<br />
Subroutines in the Opts Package 42<br />
add_options 42<br />
get_option 42<br />
option_is_set 43<br />
parse 43<br />
validate 43<br />
usage 43<br />
Subroutines in the Util Package 44<br />
connect 44<br />
disconnect 44<br />
get_inventory_path 44<br />
trace 45<br />
Subroutines in the Vim Package 45<br />
clear_session 45<br />
find_entity_view 45<br />
find_entity_views 46<br />
get_service_instance 47<br />
get_service_content 47<br />
get_session_id 48<br />
get_view 48<br />
get_views 48<br />
load_session 48<br />
login 49<br />
logout 49<br />
save_session 50<br />
update_view_data 50<br />
A Web Services <strong>for</strong> Management <strong>Perl</strong> Library 51<br />
Web Services <strong>for</strong> Management Overview 51<br />
Required <strong>Perl</strong> Modules 52<br />
Sample Scripts 53<br />
SOAP Message Construction with WSMan::WSBasic 53<br />
WSMan::WSBasic‐>new 54<br />
register_xml_ns 54<br />
register_class_ns 55<br />
Identify 55<br />
Enumerate 55<br />
PullRelease 56<br />
4 <strong>VMware</strong>, Inc.