Quantcast
Channel: VMware Communities : Popular Discussions - vSphere Management Assistant (vMA)
Viewing all 25377 articles
Browse latest View live

New to VMA, question on esxcli

$
0
0

I am new to VMA. I find it is going to be very useful.

 

A question I have is when running esxcli against many hosts, is it possible to just add vcenter as a target? It doesnt appear that is enough, that I have to have each esx host as a target in order to run esxcli commands against a host. Thank you.


vmware-cmd over 15 minutes via vcenter

$
0
0

New to VMA...  Fresh install of the appliance  vMA-5.5.0.1-1663088.

 

Running:

vi-admin@localhost:~> time vmware-cmd -H vcenter.ces.cvnt.net -U root -P xxx -h vm3.ces.cvnt.net -l

...  (about 23 entries)

real    16m24.956s

user    15m35.606s

sys     0m2.792s

 

If I skip vcenter, things are reasonable:

 

 

vi-admin@localhost:~> time vmware-cmd -U root -P yyy -H vm3.ces.cvnt.net -l  

...

real    0m2.423s

user    0m1.996s

sys     0m0.040s

 

Connecting vcenter server with sphere client is fine.  Running the appliance version of vcenter if that makes a difference.

vMA unable to join domain (Unresolved Domain Name)

$
0
0

It looks like I might be the only one having this problem.

 

I've recently installed the vMA appliance and used this PDF as an installation guide:

https://pubs.vmware.com/vsphere-55/topic/com.vmware.ICbase/PDF/vma_55_guide.pdf

 

 

The Domain controller is a Windows 2008 R2.

The vMA server is vSphere 5.5.0.3 Build 2301366

(vMA was updated to this version immediately after the install via the web interface)

 

 

Following the instruction to join the local domain that vcenter is on I ran this command:

sudo domainjoin-cli --loglevel verbose --log . join <my_domain> Administrator

(I added the loglevel and log argument after experiencing the problem in order to provide better error details below)

 

 

This is the relevant error that it produces:

20150505005817:INFO:Checking status of daemon [/etc/init.d/lsassd]

20150505005817:INFO:Daemon [/etc/init.d/lsassd]: status [3]

20150505005817:INFO:Getting DC

20150505005817:ERROR:Lsass Error [CENTERROR_DOMAINJOIN_UNRESOLVED_DOMAIN_NAME]


 

0x9CAC - Failed to lookup the domain controller for given domain. Check that the domain name is correctly entered. Check that your DNS server is reachable, and that your system is configured to use DNS in nsswitch. Check that port 389 UDP is not blocked by your firewall.

 

 

I can ping my PDC and the PDC can ping the vMA server.

No firewall was installed or any other software for that matter and I am able to add other servers to the domain with no problem.

 

 

What should I be looking for here?

 

Thanks for any info.

vMA 5.5 The session is not authenticated after connect to target ESXi

$
0
0

Im trying add targe ESXi 5.5:

 

vi-admin@localhost:~> vifp addserver esxi1 --authpolicy fpauth --username root --password Passw0rd

vi-admin@localhost:~> vifp listservers

esxi1  ESXi

vi-admin@localhost:~> vifptarget -s esxi1

vi-admin@localhost:~[esxi1]> esxcli network nic list

Runtime error: The session is not authenticated.

 

Screenshot_1.png

 

In vSphere client task inform me about create users:

 

Screenshot_3.png

 

Screenshot_2.png

 

but when im trying run some remote commands i receive:


Runtime error: The session is not authenticated.


Some suggestion ?

vima and firewall

$
0
0

 

Is vima running a firewall?  I've installed an agent into VIMA that I would like to use in conjunction with some of the tools in VIMA.  The agent installed successfully but the application that manages the agent is not connecting to it.

 

 

Failed to add vmkernel nic: A specified parameter was not correct. vSphere CLI + ESXi 4

$
0
0

Hi. I try to add vmknic with Jumbo Frames to my distributed virtual switch.

 

I read the guide vSphere Command-Line Interface Installation and Reference Guide:

"vicfg-vmknic  -a -i DHCP "vmk5"

I see error message:

Failed to add vmkernel nic: A specified parameter was not correct.

Vim.Host.VirtualNic.Specification.Ip

 

What's wrong?

I tried all combinations of parameters with the same result.

vMA AD integration with ESX fastpass auth

$
0
0

hey,

 

I have vMA 4.1 with AD integration and ESXi 4.1/4.0 with fastpass authentication,

now, when I log in with domain user, I need to enter user name and password for each command.

is this  normal behavior?

I was sure that fastpass save the credentials, and any user that in the sudoers file will be able to run command without entering username and password.

 

thanks.

vMA causes rapid database growth

$
0
0

Hey all.  Have a question and I wanted to see if anyone else is experiencing this.

 

I deployed vMA 4.1 a while back and I believe I followed the deployment guide correctly.  However, I had a problem where my vCenter came to a crashing halt.  I found that the SQL database had grown and filled the partition.  My db is usually around 240 MB and in a few weeks it grew to over 15 GB.  Through some digging I found that the vpx_event and vpx_event_arg tables grew tremendously due to an enormous amount of login and logout events.  After further digging I discovered that it was vMA logging in and out every couple of seconds.  I double checked to make sure all my credetials were correct but I could not find the reason behind the logins and logouts.  I cleaned up my db, removed my servers and shutdown vMA, and my database has remained at 240MB.

 

Now, I really want to get vMA back up and running but I wanted to see if anyone else has had this problem or might have any suggestions as to why this happened.

 

******************************************************************************************************************************************

 

Also, I wanted to add that I see a large amount of idle sessions when I look at the "Session" tab in the vCenter client.  I have seen upwards of 150 at one time.  I can only assume it is related.


How to set advanced host options w/ Perl SDK?

$
0
0

I want to write a script that will let me set advanced host options, so I can roll them out to all of my hosts in one go vs. touching each host. I have the Enterprise license so I don't have host profiles - scripts are the best option for me. I'm trying to use the UpdateOptions() method to an OptionManager object to make this happen.

 

The problem I'm having is identical to the one in this discussion: http://communities.vmware.com/message/686401, but the accepted solution is not working for me. Neither my own code nor the script attached to the other discussion will work.

 

For example, if I try to change the value of NFS.SendBufferSize to any valid, I get a response like this:

 

$ perl ./advoptions.pl --server vcenter --host vm1 --name NFS.SendBufferSize --value 64
Changing option NFS.SendBufferSize to 64.
SOAP Fault:
-----------
Fault string: A specified parameter was not correct.
Fault detail: InvalidArgumentFault

This occurs whether I treat the new value as an integer, a string, or use PrimType to set one or the other. It occurs whether I create a new OptionValue instance or change the value of an existing one and submit that. I've tried on a vMA instance (5.0.0.0-472630) as well as a CentOS 6.3 x86_64 host w/ perl 5.10.1 and the perl SDK build 4.1.0-254719, with identical results. Same issue whether I connect to the vCenter server or to a VM host directly.
Here is some sample code. It's similar to the script attached to the other discussion and fails the same way.
#!/usr/bin/perl -w

use strict;
use VMware::VIRuntime;

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

Opts::parse();
Opts::validate();

Util::connect();

my $entities = Vim::find_entity_views(
                view_type => 'HostSystem',
                properties => ['configManager'],
                );

foreach my $entity (@$entities) {

        my $optionManager = Vim::get_view(mo_ref => $entity->configManager->advancedOption);

        my $sendBuffer = new OptionValue (key => 'NFS.SendBufferSize', value => PrimType->new('64', 'int') );
        eval { $optionManager->UpdateOptions( changedValue => [$sendBuffer] ); };

        print $@ if ($@);
}

Util::disconnect();

What am I doing wrong here? Any pointers would be appreciated.

Manage snapshots with vMA

$
0
0

Hi,

 

Is there any way in which I could manage VM snapshots using vMA? I'm using the command "vmware-cmd" but I see no option to LIST the snapshots and revert to a specific one.

 

I can only get the command to show me in a boolean fashion if the VM has snapshots, remove them or revert to the last one.

 

Thanks in advance!

elgreco81

Navigating ESXi Command Line via VMA

$
0
0

I have VMA 5.0 installed in my ESXi environment and I have added all the ESXisevers via "sudo vifp addserver xxxxxxx" and I see all my ESXi servers when I do "vifp listservers". I just cannot figure out how to navigate the file structure of the ESXi server via the VMA command line. If I do a "vifptarget --set xxxxxxx" the command prompt is appended to include that ESXi server but all of the command line navigation is pointing me to the VMA and not the ESXi server. For example if I do an "ls" I see the file structure for the VMA not the ESXi server.

 

All I am trying to do is install the ACP UPS agents on the ESXi server and I'm supposed to change directories to the location of the install files and execute via 'sudo ./install_en-sh" but I cannot for the life of me figure that out. I have spent the last 4 hours hunting this down to no avail.

READ ONLY

$
0
0

Hi,

 

I try to modify a config file in /var/tripplite/poweralert and the system refuse. ACCESS DENIED. Any idea plz

Question about SNMP trap test output to .cvs

$
0
0

Hello,

 

I am preparing for my VCAP exam and need some help with saving the cvs to a local folder.

 

VCAP Objective:

Setup SNMP and save the test trap to .cvs on your PC.

 

vMA SNMP setup:

vicfg-snmp -c public

vicfg-snmp -t server.local@161\public

vicfg-snmp -E

vicfg-snmp -s

 

I run this command and the .cvs is placed into the vMA BIN folder instead of my test folder.

vicfg-snmp -T > c:\SNMP\snmptest.cvs

 

CLi

esxcli system snmp -T > c:\snmp\test.cvs

No output

 

Can someone point me in the right direction with why the > file location is not working? 

 

Thanks,

 

Rob-o


Commands to get CPU and Memory usage in VMA ??

$
0
0

Hi,

I want to develop one dashboard for Hosts CPU and Memory usage. Can anybody provide commands to fetch those details.

Or can anybody please tell me how to process csv file on VMA, generated by resxtop batch mode in order to get CPU and RAM utilization.

How to handle "target datastore is full" errors?

$
0
0

Hi all,

we managed to run ghettoVCBg2 on vSphere 6.0 and vMA 6.0.

Unfortunately our backup datastore reached it's maximum capacity resulting in failing backups (e.g. the large VMDK files are missing).

There are no error or debug messages in ghettoVCBg2's log file.

How can we handle this (besides monitoring the target backup datastore and providing sufficient storage space ;-)?

 

vifs supports only "--dir <remotedir>" but that does not show the size of the files living in <remotedir>.

What would be the best approach after backup to check if all files made it to the backup target datastore?

 

Thanks for any hints!

Martin


vMA 5.5 Error: Failed to add users /

$
0
0

Hi.

 

I need add 3 hosts to vMA.I dont have domain controller.

 

1. I deploy fresh vMA from OVF and configure IP and password for vi-admin.

2. Add first ESX01 host with success. ( vifp addserver esx02 --authpolicy fpauth )

3. Added second and third ESXi finish with fail.(commands bellow)

 

vi-admin@vma02:~> vifp addserver esx02 --authpolicy fpauth

root@esx02's password:

vi-admin@vma02:~> vifp listservers

esx02.localdomain       ESXi

vi-admin@vma02:~> vifp addserver esx03 --authpolicy fpauth

root@esx03's password:

Error: Failed to add users

 

in vSphere client we can see something that:

vma01.png

During above tasks is creating vi-user and next vi-admin. After several seconds vi-admin is removed(i dont know why...)

 

/var/log/vmware/vma/vifpd.log on vMA

 

[2016-04-07 19:51:07.186 7F220CD47700 info 'App'] command-> 1

[2016-04-07 19:51:07.187 7F220AEC7700 info 'App'] ADDSERVER

[2016-04-07 19:51:07.197 7F220CD47700 info 'App'] MessageQueue::RecvMessage - Queue id is 0

[2016-04-07 19:51:07.595 7F220AEC7700 info 'App'] MessageQueue::SendMessage - Queue id is 0

[2016-04-07 19:51:12.144 7F220CD47700 info 'App'] command-> 1

[2016-04-07 19:51:12.145 7F220CD47700 info 'App'] MessageQueue::RecvMessage - Queue id is 0

[2016-04-07 19:51:12.145 7F220AE45700 info 'App'] ADDSERVER

[2016-04-07 19:51:12.504 7F220AE45700 info 'App'] Already connected.

[2016-04-07 19:51:12.509 7F220AE45700 info 'App'] Already connected.

[2016-04-07 19:51:30.308 7F220AE45700 info 'App'] permissions set for vi-admin00@esx03.localdomain

[2016-04-07 19:51:30.345 7F220AE45700 info 'App'] credstore: added user vi-admin00@esx03.localdomain to credstore of vi-admin

[2016-04-07 19:51:30.361 7F220AE45700 info 'App'] can take ownership of user vi-user01@esx03.localdomain.

[2016-04-07 19:51:30.361 7F220AE45700 warning 'App'] taking ownership of vi-user01@esx03.localdomain as it seems to be created by us.

[2016-04-07 19:51:52.534 7F220AE45700 error 'App'] addserver: Error occured while adding users for esx03.localdomain ..rolling back. Error in Vma

core.

[2016-04-07 19:51:52.582 7F220AE45700 info 'App'] user vi-admin00@esx03.localdomain is created by vifp. Removing it...

[2016-04-07 19:51:52.703 7F220AE45700 info 'App'] failed to remove permissions for vi-admin00@esx03.localdomain.

[2016-04-07 19:51:52.704 7F220AE45700 info 'App'] removed user vi-admin00@esx03.localdomain.

[2016-04-07 19:51:52.733 7F220AE45700 info 'App'] user vi-admin00@esx03.localdomain is removed from credstore of vi-admin.

[2016-04-07 19:51:52.768 7F220AE45700 error 'App'] Failed to add users

[2016-04-07 19:51:52.768 7F220AE45700 info 'App'] MessageQueue::SendMessage - Queue id is 0

[2016-04-07 19:51:52.772 7F220AE45700 info 'App'] MessageQueue::SendMessage - Queue id is 0

 

In which logs can i find something more ?

var/log/vmkernel.log on host is not clear for me... but if somebody will ask i will paste.

 

What should i do more ? i want only add 3 esxi servers to vMA and next login to those esxi without puting passwords.

 

Interesting is when i deployed next vMA02 and VM03 i can only add one esxi to vMA. During adding Second and third esxi generate that same errors... Now i have 1 vMA for each host .....

 

Please about suggestion and help.... because my adventure with vMA is not good... last time i was problem with this vMA 5.5 The session is not authenticated after connect to target ESXi and dont resolved this in my second lab...

 

Sebastian

VMware vMA and free ESXi - which ESXi license do you need so that vMA is usefull?

$
0
0

I'm just evaluating vMA 5.5 with my home-lab of a few free ESXi 5.5-servers and now after reading some documentations I was trying my first few commands in the vMA-machine.

 

So i registered my first ESXi-server with the vifp command, connected to it and then I just wanted to turn on my test-guest-vm:

 

vmware-cmd /vmfs/volumes/401176d6-90e595dc/test-debian/test-debian.vmx start

Operation cannot be performed:

SOAP Fault:

-----------

Fault string: Current license or ESXi version prohibits execution of the requested operation.

Fault detail: RestrictedVersionFault


So WTF, you even cannot turn on/off a VM with command-line operations with the free version or am I doing it wrong???

 

Which license do you need for ESXi to use even the most itsy bitsy common features with vMA?

What is even possible with vMA 5.5 and the free ESXi, only read-only operations?

 

Have to ask here, because I didn't find anything on vMA with free ESXi license restrictions.

ESXi and VMware vSphere Management Assistant (vMA)

$
0
0

We are a care home company looking to virtualise our environment using ESXi 4.1. I need to connect the ESXi running on a DELL poweredge R610 to a UPS. I have downloaded the new VMware vSphere Management Assistant (vMA), installed it and verified that it can connect to the ESXi via the ESXi client interface. My next task is to install the vmtools on vMA, but the instructions on how to do this not very clear to me.

Tried the following steps from Dell_ UPS Management Software Installation and Configuration User's Guide

 

  • Insert the VMware server installation CD. (is this the free iso download for ESXi install?)

 

  • Go to \VMware\RPMS to locate the VMware Tools installation package. (Where do I do this, in the vMA console from the ESXi client interface?)

 

  • Log in to the guest operating system from the virtual machine console (I guess this is the vMA)
  • ·         Select the template name and then right-click and select Install/Upgrade VMware Tools from the menu. (I selected the first option, from two given)

 

  • Mount the CD with the command: using mount /dev/cdrom /mnt (vi-admin is not allowed to use this command, has to be root?)

 

Needless to say I have NOT made much progress from these instructions so far, can someone please help me. I have attached doc that has the instructions.

SSH Client Broken After Upgrade to 5.1.0.2

$
0
0



I just upgraded vMA to 5.1.0.2 and can no longer connect to other hosts via SSH:


ssh <username@servername>


ssh: symbol lookup error: ssh: undefined symbol: FIPS_mode


Is anyone else experiencing this?


Thanks,


Daniel

Is resxtop on vMA ever going to be either fixed or adequate workaround provided?

$
0
0

I used to make use of the vMA more during the pre 5.1 days to avoid having to enable SSH on all of my hosts and to have a central point of host management for CLI type stuff.  Version 5.1 broke resxtop in the vCLI as has been documented and discussed in the past, and I abandoned the vMA as a management platform, since resxtop was a large part of what I wanted to use vMA/vCLI for.  I wound up enabling SSH on my hosts every time I wanted to look at performance.  I was hopeful that the 5.5 version would have a usable resxtop, but alas, it still is completely unusable!  Still a "known issue" listed in the release notes:

 

  • resxtop fails to run agains vSphere targets
    When you run resxtop against a vSphere 5.5 target, an error results.Workaround: If your environment supports this, run esxtop in the ESXi Shell. Otherwise, no workaround.
    • If the SSL certificate is set in the vCLI client, the following error results:
      SSL Exception: Verification parameters
    • If the SSL certificate is not set, the following error results:
      Login failed, reason: HTTPS_CA_FILE or HTTPS_CA_DIR not set

 

  • No output when running the resxtop vCLI command.
    When you install vCLI on a Linux system and attempt to run the resxtop command, no output results.Workaround: No workaround. You might be able to run the esxtop command in the ESXi Shell if you have access to the system. Enable the shell before you run the command.

 

Is this ever going to be fixed?  It has been broken for 2 years!  Or has anyone figured out a workaround?

Viewing all 25377 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>