lamw / vmware-scripts

Various scripts for VMware based solutions
http://www.williamlam.com/
BSD 2-Clause "Simplified" License
860 stars 487 forks source link

Line with no vSphere version 5.5.0 #37

Open pchamo opened 7 years ago

pchamo commented 7 years ago

I found a line with no vSphere version 5.5.0. I mean, these are lines 817 to 821 of the vmwarevSphereHealthCheck.pl version 6.0.0:

if($aversion eq '4.1.0' || ($aversion eq '5.0.0' || $aversion eq '5.1.0')) {

UPTIME

                                            $vmstateString .= "<td>".($vm->summary->quickStats->uptimeSeconds ? &getUptime($vm->summary->quickStats->uptimeSeconds) : "N/A")."</td>";
                                    }

I wonder why the version number 5.5.0 is not included. And also, some lines don't include the versio number 6.0.0. Those lines are identified running this command:

[user]$ grep 5.1.0 vmwarevSphereHealthCheck.pl -n|grep -v 6.0

Is all of that ok? Thank you.

pchamo commented 7 years ago

The whole section is (lines 802 to 821):

                            ######################
                            # VM STATE
                            ######################
                            if($VM_STATE eq "yes") {
                                    $vmstateString .= "<tr>";

                                    ## ESX/ESXi host ##
                                    $vmstateString .= "<td>".$host_name."</td>";

                                    ## DISPLAY NAME ##
                                    $vmstateString .= "<td>".$vm->name."</td>";

                                    ## BOOT TIME ##
                                    $vmstateString .= "<td>".($vm->runtime->bootTime ? $vm->runtime->bootTime : "N/A")."</td>";

                                    if($aversion eq '4.1.0' || ($aversion eq '5.0.0' || $aversion eq '5.1.0')) {
                                            ## UPTIME ##
                                            $vmstateString .= "<td>".($vm->summary->quickStats->uptimeSeconds ? &getUptime($vm->summary->quickStats->uptimeSeconds) : "N/A")."</td>";
                                    }