In any view, the values of the view properties represent the state of the server-side objects at the time the view was created. These property values are not updated automatically. In a production environment, the state of managed objects on the server is likely to change frequently. If your client script depends on the server being in a particular state (poweredOn or poweredOff, for example), then you can refresh the view object’s state. You can use the vSphere SDK for Perl Vim::update_view_data() subroutine to refresh the values of client-side views with server-side values. Example: Updating the State of View Objects uses Vim::update_view_data() to refresh view data.Example: Updating the State of View Objects