Installing VMWARE sdk
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Installing VMWARE sdk
Hi Team,
I am installing the pre-requisites for VMWARE sdk, while I execute the cpan command I see below error and its not completing. Can anyone help me understand the problem here.
Nagios Server : CentOS Linux release 7.9.2009 (Core)
Nagios App : 5.8.3
*****Error****
[root@CH-S_TGINAG01 ~]# cpan -i App::cpanminus
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters. Configuration will be written to
<</root/.cpan/CPAN/MyConfig.pm>>
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes] yes
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] yes
Looking for CPAN mirrors near you (please be patient)
Can't call method "http" on unblessed reference at /usr/share/perl5/CPAN/FirstTime.pm line 1866.
I am installing the pre-requisites for VMWARE sdk, while I execute the cpan command I see below error and its not completing. Can anyone help me understand the problem here.
Nagios Server : CentOS Linux release 7.9.2009 (Core)
Nagios App : 5.8.3
*****Error****
[root@CH-S_TGINAG01 ~]# cpan -i App::cpanminus
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters. Configuration will be written to
<</root/.cpan/CPAN/MyConfig.pm>>
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes] yes
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] yes
Looking for CPAN mirrors near you (please be patient)
Can't call method "http" on unblessed reference at /usr/share/perl5/CPAN/FirstTime.pm line 1866.
Re: Installing VMWARE sdk
Hi,
Please compare your /root/.cpan/CPAN/MyConfig.pm to the following, at a minimum I think your urllist
has a bad or nonvalue:
$CPAN::Config = {
'applypatch' => q[],
'auto_commit' => q[0],
'build_cache' => q[100],
'build_dir' => q[/root/.cpan/build],
'build_dir_reuse' => q[0],
'build_requires_install_policy' => q[yes],
'bzip2' => q[/usr/bin/bzip2],
'cache_metadata' => q[1],
'check_sigs' => q[0],
'cleanup_after_install' => q[0],
'commandnumber_in_prompt' => q[1],
'connect_to_internet_ok' => q[1],
'cpan_home' => q[/root/.cpan],
'ftp_passive' => q[1],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[/usr/bin/gpg],
'gzip' => q[/usr/bin/gzip],
'halt_on_failure' => q[0],
'histfile' => q[/root/.cpan/histfile],
'histsize' => q[100],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/root/.cpan/sources],
'load_module_verbosity' => q[none],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'make_install_make_command' => q[/usr/bin/make],
'makepl_arg' => q[],
'mbuild_arg' => q[],
'mbuild_install_arg' => q[],
'mbuild_install_build_command' => q[./Build],
'mbuildpl_arg' => q[],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'patch' => q[/usr/bin/patch],
'perl5lib_verbosity' => q[none],
'prefer_external_tar' => q[1],
'prefer_installer' => q[MB],
'prefs_dir' => q[/root/.cpan/prefs],
'prerequisites_policy' => q[follow],
'recommends_policy' => q[1],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'show_unparsable_versions' => q[0],
'show_upload_date' => q[0],
'show_zero_versions' => q[0],
'suggests_policy' => q[0],
'tar' => q[/usr/bin/tar],
'tar_verbosity' => q[none],
'term_is_latin' => q[1],
'term_ornaments' => q[1],
'test_report' => q[0],
'trust_test_report_history' => q[0],
'unzip' => q[/usr/bin/unzip],
'urllist' => [q[http://www.cpan.org/]],
'use_prompt_default' => q[0],
'use_sqlite' => q[0],
'version_timeout' => q[15],
'wget' => q[/usr/bin/wget],
'yaml_load_code' => q[0],
'yaml_module' => q[YAML],
};
1;
__END__
Let me know if that fixes it for you.
Thanks
Please compare your /root/.cpan/CPAN/MyConfig.pm to the following, at a minimum I think your urllist
has a bad or nonvalue:
$CPAN::Config = {
'applypatch' => q[],
'auto_commit' => q[0],
'build_cache' => q[100],
'build_dir' => q[/root/.cpan/build],
'build_dir_reuse' => q[0],
'build_requires_install_policy' => q[yes],
'bzip2' => q[/usr/bin/bzip2],
'cache_metadata' => q[1],
'check_sigs' => q[0],
'cleanup_after_install' => q[0],
'commandnumber_in_prompt' => q[1],
'connect_to_internet_ok' => q[1],
'cpan_home' => q[/root/.cpan],
'ftp_passive' => q[1],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[/usr/bin/gpg],
'gzip' => q[/usr/bin/gzip],
'halt_on_failure' => q[0],
'histfile' => q[/root/.cpan/histfile],
'histsize' => q[100],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/root/.cpan/sources],
'load_module_verbosity' => q[none],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'make_install_make_command' => q[/usr/bin/make],
'makepl_arg' => q[],
'mbuild_arg' => q[],
'mbuild_install_arg' => q[],
'mbuild_install_build_command' => q[./Build],
'mbuildpl_arg' => q[],
'no_proxy' => q[],
'pager' => q[/usr/bin/less],
'patch' => q[/usr/bin/patch],
'perl5lib_verbosity' => q[none],
'prefer_external_tar' => q[1],
'prefer_installer' => q[MB],
'prefs_dir' => q[/root/.cpan/prefs],
'prerequisites_policy' => q[follow],
'recommends_policy' => q[1],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'show_unparsable_versions' => q[0],
'show_upload_date' => q[0],
'show_zero_versions' => q[0],
'suggests_policy' => q[0],
'tar' => q[/usr/bin/tar],
'tar_verbosity' => q[none],
'term_is_latin' => q[1],
'term_ornaments' => q[1],
'test_report' => q[0],
'trust_test_report_history' => q[0],
'unzip' => q[/usr/bin/unzip],
'urllist' => [q[http://www.cpan.org/]],
'use_prompt_default' => q[0],
'use_sqlite' => q[0],
'version_timeout' => q[15],
'wget' => q[/usr/bin/wget],
'yaml_load_code' => q[0],
'yaml_module' => q[YAML],
};
1;
__END__
Let me know if that fixes it for you.
Thanks
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: Installing VMWARE sdk
here is the o/p:
[root@CH-S_TGINAG01 bin]# cat /root/.cpan/CPAN/MyConfig.pm
1;
it has just nothing on it.
[root@CH-S_TGINAG01 bin]# cat /root/.cpan/CPAN/MyConfig.pm
1;
it has just nothing on it.
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: Installing VMWARE sdk
here is the o/p:
[root@CH-S_TGINAG01 bin]# cat /root/.cpan/CPAN/MyConfig.pm
1;
it has just nothing on it.
[root@CH-S_TGINAG01 bin]# cat /root/.cpan/CPAN/MyConfig.pm
1;
it has just nothing on it.
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: Installing VMWARE sdk
I did install cpan. attched the results
I have to manually export the proxy if I have to download any package on the server.
I have to manually export the proxy if I have to download any package on the server.
You do not have the required permissions to view the files attached to this post.
Re: Installing VMWARE sdk
Did you add your proxy in /root/.cpan/CPAN/MyConfig.pm?
If you do you shouldn't have to keep re-entering it.
Also, make sure there is a value for the urllist parameter.
Thanks
If you do you shouldn't have to keep re-entering it.
Also, make sure there is a value for the urllist parameter.
Thanks
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: Installing VMWARE sdk
Hi,
I get the below error where its not allowing me to feed in the URLList details:
[root@CH-S_TGINAG01 vmware-vsphere-cli-distrib]# cpan
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters. Configuration will be written to
<</root/.cpan/CPAN/MyConfig.pm>>
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes] yes
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] yes
Looking for CPAN mirrors near you (please be patient)
Can't call method "http" on unblessed reference at /usr/share/perl5/CPAN/FirstTime.pm line 1866.
Can u help me as to how do i do it..?
I get the below error where its not allowing me to feed in the URLList details:
[root@CH-S_TGINAG01 vmware-vsphere-cli-distrib]# cpan
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters. Configuration will be written to
<</root/.cpan/CPAN/MyConfig.pm>>
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes] yes
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] yes
Looking for CPAN mirrors near you (please be patient)
Can't call method "http" on unblessed reference at /usr/share/perl5/CPAN/FirstTime.pm line 1866.
Can u help me as to how do i do it..?
-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: Installing VMWARE sdk
yes did the corrections on myconfig.pm for the urllist n its working.
But while i added the ESXi to monitoring, i get the service check timed out.
Attaching few commands o/p n the alert snap. please help this resolve.
But while i added the ESXi to monitoring, i get the service check timed out.
Attaching few commands o/p n the alert snap. please help this resolve.
You do not have the required permissions to view the files attached to this post.
Re: Installing VMWARE sdk
hi,
please run this command and wait until it completes, then send me the results:
Thanks
please run this command and wait until it completes, then send me the results:
Code: Select all
time /usr/lib/vmware-vcli/apps/vm/vminfo.pl --server esx001 --username root --password secret-
sneha.irali
- Posts: 141
- Joined: Fri Jan 15, 2021 3:56 am
Re: Installing VMWARE sdk
here is the o/p:
[root@CH-S_TGINAG01 libexec]# time /usr/lib/vmware-vcli/apps/vm/vminfo.pl --serv er 10.61.50.243 --username nagiosuser --password Abb@21Admin
Information of Virtual Machine Deployment
Name: Deployment
No. of CPU(s): 4
Memory Size: 32768
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] Deployment/Deployment.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIDEP01.ch.abb.com
IP Address: 10.61.50.242
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 281 MHz
Host memory usage: 14387 MB
Guest memory usage: 655 MB
Overall Status: The entity is OK
Information of Virtual Machine VMware vCenter Server
Name: VMware vCenter Server
No. of CPU(s): 4
Memory Size: 19456
Virtual Disks: 16
Template: 0
vmPathName: [DS_HPE_ESX] VMware vCenter Server/VMware vCenter Serve r.vmx
Guest OS: VMware Photon OS (64-bit)
guestId: vmwarePhoton64Guest
Host name: localhost
IP Address: 10.61.50.240
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 462 MHz
Host memory usage: 19377 MB
Guest memory usage: 2918 MB
Overall Status: The entity is OK
Information of Virtual Machine Veeam-B&R
Name: Veeam-B&R
No. of CPU(s): 4
Memory Size: 32768
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] Veeam-B&R/Veeam-B&R.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIBAK01.ch.abb.com
IP Address: 192.168.20.244
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 324 MHz
Host memory usage: 19151 MB
Guest memory usage: 327 MB
Overall Status: The entity is OK
Information of Virtual Machine Metering
Name: Metering
No. of CPU(s): 12
Memory Size: 8192
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] Metering/Metering.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIMET01.ch.abb.com
IP Address: 10.61.50.246
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 55 MHz
Host memory usage: 8272 MB
Guest memory usage: 737 MB
Overall Status: The entity is OK
Information of Virtual Machine nagiosxi5
Name: nagiosxi5
No. of CPU(s): 8
Memory Size: 12288
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] nagiosxi5/nagiosxi5.vmx
Guest OS: Not Known
guestId: Not Known
Host name: Not Known
IP Address: Not Known
VMware Tools: VMware Tools has never been installed or has not run in the virtual machine.
Cpu usage: 809 MHz
Host memory usage: 10204 MB
Guest memory usage: 860 MB
Overall Status: The entity is OK
Information of Virtual Machine ServiceNow-MID1
Name: ServiceNow-MID1
No. of CPU(s): 4
Memory Size: 8192
Virtual Disks: 2
Template: 0
vmPathName: [DS_HPE_ESX] ServiceNow-MID1/ServiceNow-MID1.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIMID01.europe.abb.com
IP Address: 10.61.50.248
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 224 MHz
Host memory usage: 8251 MB
Guest memory usage: 1310 MB
Overall Status: The entity is OK
Information of Virtual Machine ServiceNow-MID2
Name: ServiceNow-MID2
No. of CPU(s): 2
Memory Size: 4096
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] ServiceNow-MID2/ServiceNow-MID2.vmx
Guest OS: Not Known
guestId: Not Known
Host name: Not Known
IP Address: Not Known
VMware Tools: VMware Tools is not running.
Cpu usage: Not Known
Host memory usage: Not Known
Guest memory usage: Not Known
Overall Status: The entity is OK
Information of Virtual Machine HPE-OneView
Name: HPE-OneView
No. of CPU(s): 8
Memory Size: 10240
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] HPE-OneView/HPE-OneView.vmx
Guest OS: Other 3.x or later Linux (64-bit)
guestId: other3xLinux64Guest
Host name: ci-005056a24d2b
IP Address: 10.61.50.250
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 647 MHz
Host memory usage: 10044 MB
Guest memory usage: 1536 MB
Overall Status: The entity is OK
real 0m1.235s
user 0m1.116s
sys 0m0.040s
You have new mail in /var/spool/mail/root
[root@CH-S_TGINAG01 libexec]# time /usr/lib/vmware-vcli/apps/vm/vminfo.pl --serv er 10.61.50.243 --username nagiosuser --password Abb@21Admin
Information of Virtual Machine Deployment
Name: Deployment
No. of CPU(s): 4
Memory Size: 32768
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] Deployment/Deployment.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIDEP01.ch.abb.com
IP Address: 10.61.50.242
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 281 MHz
Host memory usage: 14387 MB
Guest memory usage: 655 MB
Overall Status: The entity is OK
Information of Virtual Machine VMware vCenter Server
Name: VMware vCenter Server
No. of CPU(s): 4
Memory Size: 19456
Virtual Disks: 16
Template: 0
vmPathName: [DS_HPE_ESX] VMware vCenter Server/VMware vCenter Serve r.vmx
Guest OS: VMware Photon OS (64-bit)
guestId: vmwarePhoton64Guest
Host name: localhost
IP Address: 10.61.50.240
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 462 MHz
Host memory usage: 19377 MB
Guest memory usage: 2918 MB
Overall Status: The entity is OK
Information of Virtual Machine Veeam-B&R
Name: Veeam-B&R
No. of CPU(s): 4
Memory Size: 32768
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] Veeam-B&R/Veeam-B&R.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIBAK01.ch.abb.com
IP Address: 192.168.20.244
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 324 MHz
Host memory usage: 19151 MB
Guest memory usage: 327 MB
Overall Status: The entity is OK
Information of Virtual Machine Metering
Name: Metering
No. of CPU(s): 12
Memory Size: 8192
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] Metering/Metering.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIMET01.ch.abb.com
IP Address: 10.61.50.246
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 55 MHz
Host memory usage: 8272 MB
Guest memory usage: 737 MB
Overall Status: The entity is OK
Information of Virtual Machine nagiosxi5
Name: nagiosxi5
No. of CPU(s): 8
Memory Size: 12288
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] nagiosxi5/nagiosxi5.vmx
Guest OS: Not Known
guestId: Not Known
Host name: Not Known
IP Address: Not Known
VMware Tools: VMware Tools has never been installed or has not run in the virtual machine.
Cpu usage: 809 MHz
Host memory usage: 10204 MB
Guest memory usage: 860 MB
Overall Status: The entity is OK
Information of Virtual Machine ServiceNow-MID1
Name: ServiceNow-MID1
No. of CPU(s): 4
Memory Size: 8192
Virtual Disks: 2
Template: 0
vmPathName: [DS_HPE_ESX] ServiceNow-MID1/ServiceNow-MID1.vmx
Guest OS: Microsoft Windows Server 2019 (64-bit)
guestId: windows2019srv_64Guest
Host name: CH-S-TGIMID01.europe.abb.com
IP Address: 10.61.50.248
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 224 MHz
Host memory usage: 8251 MB
Guest memory usage: 1310 MB
Overall Status: The entity is OK
Information of Virtual Machine ServiceNow-MID2
Name: ServiceNow-MID2
No. of CPU(s): 2
Memory Size: 4096
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] ServiceNow-MID2/ServiceNow-MID2.vmx
Guest OS: Not Known
guestId: Not Known
Host name: Not Known
IP Address: Not Known
VMware Tools: VMware Tools is not running.
Cpu usage: Not Known
Host memory usage: Not Known
Guest memory usage: Not Known
Overall Status: The entity is OK
Information of Virtual Machine HPE-OneView
Name: HPE-OneView
No. of CPU(s): 8
Memory Size: 10240
Virtual Disks: 1
Template: 0
vmPathName: [DS_HPE_ESX] HPE-OneView/HPE-OneView.vmx
Guest OS: Other 3.x or later Linux (64-bit)
guestId: other3xLinux64Guest
Host name: ci-005056a24d2b
IP Address: 10.61.50.250
VMware Tools: VMware Tools is running and the version is current
Cpu usage: 647 MHz
Host memory usage: 10044 MB
Guest memory usage: 1536 MB
Overall Status: The entity is OK
real 0m1.235s
user 0m1.116s
sys 0m0.040s
You have new mail in /var/spool/mail/root