VMware {code} Community
JV0613
Contributor
Contributor

Hostinfo.pl script printing out too much information

Hi,

I'm new to Perl and the Perl SDK so please go easy on me if this is a known issue or if I'm just doing something wrong. I'm using hostinfo.pl to obviously get some host information but sometimes it returns a crazy amount of information in XML format it looks like. Please see screenshot. This happens a lot like 1/5 runs. I'm on Ubuntu 14.04 using VMWare-vSphere-CLI-6.0.0-351779.x86_64 version. Any ideas? Any help would be greatly appreciated.

Reply
0 Kudos
3 Replies
natxoasenjo
Enthusiast
Enthusiast

Could you add your hostinfo.pl command? I run it like this and cannot reproduce your issue: perl hostinfo.pl --config ~/.visdk/visdkrc_esx_work --server hostname

Reply
0 Kudos
JV0613
Contributor
Contributor

I used: $./hostinfo.pl --server <vCenter ip address> --username <vCenter username> --password <vCenter password>

Please note that this only happens to me in Ubuntu 14.04. I tried this same script on Windows and it hasn't failed yet.

Reply
0 Kudos
JV0613
Contributor
Contributor

Does not happen in CentOS 6 so I decided to develop in CentOS and not on Ubuntu.
Reply
0 Kudos