You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
From: Nikunj B. <nik...@gm...> - 2014-11-17 16:01:21
|
Hello All, Is there a way to find out which datastores are local to my ESX server ? The getDatastores() method of host mor obj gives all kind of datastores. But I am interested in finding out only the ones which are local to the ESX server and not coming from SAN ? Example: ESXSERVER |-> DS1 (local) |-> DS2 (SAN) |-> DS3 (SAN) ... ... I need to find out all datastores of type DS1 which are local and not shared by any other host. Any pointers ? Thanks. |
From: Nikunj B. <nik...@gm...> - 2014-09-23 11:15:53
|
Hello All, Cross posting on this mailing lists a post from Help forum. https://sourceforge.net/p/vijava/discussion/823527/thread/7ebea289/?limit=25#3eae I am trying to create an alarm for monitoring disk latency of virtual machine. The snippet looks like this: ============ public class DiskLatencyAlarmSpec extends AlarmSpec { //Private variables definition come here.. public DiskLatencyAlarmSpec(String name) { this.setName(name); this.setDescription(DESCRIPTION); this.setEnabled(true); this.setExpression(getMetricAlarmExpression()); //getMetricAlarmExpression() returns an object of type MetricAlarmExpression. this.setSetting(getAlarmSetting()); //getAlarmSetting() returns an object of type AlarmSetting. } //getMetricAlarmExpression() definition come here.. //getAlarmSetting() definition come here.. } spec = DiskLatencyAlarmSpec("TestSpec"); alarm = createAlarm(getEntity(), spec); //getEntity() returns the managed object type for the vm. ============== When I do like this, I get "com.vmware.vim25.InvalidRequest" exception. But when I simply create a new AlarmSpec() object (instead of inheritance) and pass it to createAlarm() method, the alarm gets registered for the VM just fine and I could see it in the vSphere client. Any pointers on whats going on here ? Thanks, Nikunj |
From: Nikunj B. <nik...@gm...> - 2014-09-14 04:41:08
|
Hello All, I am trying to register a disk latency alarm for a vm through vijava. if disk latency goes above 10ms for 5 mins, then flag a warning (yellow). OR if disk latency goes above 20ms for 5 mins, then flag an alert (red) Here is my piece of code: {{{ 637 ServerConnection sc = getVM().getServerConnection(); 638 // Method getVM(), returns the managed object for the VM. 639 640 AlarmManager alarmManager = sc.getServiceInstance().getAlarmManager(); 641 642 AlarmSpec alarmSpec = new AlarmSpec(); 643 alarmSpec.name = "VM Datastore Latency Tracker"; 644 alarmSpec.description = "This alarm is used to monitor disk latency of my VM"; 645 alarmSpec.enabled = true; 646 647 OrAlarmExpression orAlarmExp = new OrAlarmExpression(); 648 alarmSpec.expression = orAlarmExp; 649 650 AlarmExpression[] alarmExp = new AlarmExpression[1]; 651 MetricAlarmExpression metricAlarmExp = new MetricAlarmExpression(); 652 alarmExp[0] = metricAlarmExp; 653 MetricAlarmOperator metricAlarmOperator = MetricAlarmOperator.isAbove; 654 metricAlarmExp.operator = metricAlarmOperator; 655 metricAlarmExp.type = "VirtualMachine"; 656 PerfMetricId perfMetric = new PerfMetricId(); 657 metricAlarmExp.metric = perfMetric; 658 perfMetric.counterId = 133; //ID for disk latency monitor 659 perfMetric.instance = ""; 660 metricAlarmExp.yellow = 10; //disk latency 10ms 661 metricAlarmExp.yellowInterval = 300; 662 metricAlarmExp.red = 20; 663 metricAlarmExp.redInterval = 300; 664 665 AlarmSetting alarmSetting = new AlarmSetting(); 666 alarmSetting.toleranceRange = 0; 667 alarmSetting.reportingFrequency = 0; 668 alarmSpec.setting = alarmSetting; 669 alarmManager.createAlarm(getVM(), alarmSpec); 670 // End: CreateAlarm 671 672 }}} When I run this, I get an exception saying that "com.vmware.vim25.InvalidRequest: com.vmware.vim25.InvalidRequest" Any pointers on how to resolve this ? Thanks, Nikunj |
From: jaikiran p. <jai...@gm...> - 2013-11-15 13:15:45
|
Hi, We are using the latest released 5.5 beta vijava jar against our VCenter whose version is VMware vCenter Server 5.1.0 build-799731. We are running some sample code which is expected to import a ovf file to the vCenter instance. The code just invokes on the OVFManager to create the import spec but it consistently fails with the following exception every time it's invoked: 18:37:03,712 INFO [OVFImporter] - Starting OVF read from URL : file:///foo/bar/helloworld.ova Exception in thread "main" java.rmi.RemoteException: VI SDK invoke exception:org.dom4j.DocumentException: null Nested exception: null at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:183) at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:125) at com.vmware.vim25.ws.VimStub.createImportSpec(VimStub.java:1174) at com.vmware.vim25.mo.OvfManager.createImportSpec(OvfManager.java:80) at org.myapp.OVFImporter.importFile(OVFImporter.java:122) at org.myapp.OVFImporter.main(OVFImporter.java:52) I digged around a bit in the code and it turns out the real exception is this one: Caused by: java.lang.NullPointerException at java.net.URL.<init>(URL.java:524) ... 17 more Nested exception: java.net.MalformedURLException at java.net.URL.<init>(URL.java:619) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:605) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:799) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at com.vmware.vim25.ws.XmlGenDom.fromXML(XmlGenDom.java:62) at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:118) at com.vmware.vim25.ws.VimStub.createImportSpec(VimStub.java:1198) at com.vmware.vim25.mo.OvfManager.createImportSpec(OvfManager.java:80) at org.myapp.OVFImporter.importFile(OVFImporter.java:122) at org.myapp.OVFImporter.main(OVFImporter.java:52) Caused by: java.lang.NullPointerException at java.net.URL.<init>(URL.java:524) ... 17 more This issue looks similar to what was blogged about here by Steve http://www.doublecloud.org/2011/11/discontinuous-response-stream-from-vsphere/although the operation being run is probably different. We also tried this operation using the 5.1 version of vijava jar from our client. But it runs into the same exception (I haven't digged deeper into the root cause in that version). Is there a way we can get past this issue? Let me know if more details are needed or if you want me to try a few things through the code. -Jaikiran |
From: Mike K. <mi...@gm...> - 2013-08-27 12:46:11
|
Hi vijava users, I'm using the SDK to for creating/destroying VMs via vCenter and somehow I encounter a strange exception (see below). The strange thing about this problem is that functionality actually works well. I'm using version 5.1 of the library and I'm sure that it's the only version on the classpath. java.lang.IllegalAccessException: Class com.vmware.vim25.ws.XmlGen can not access a member of class com.vmware.vim25.DynamicData with modifiers "private static transient" at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:105) at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:261) at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:253) at java.lang.reflect.Field.get(Field.java:376) at com.vmware.vim25.ws.XmlGen.toXML(XmlGen.java:763) at com.vmware.vim25.ws.XmlGen.toXML(XmlGen.java:693) at com.vmware.vim25.ws.XmlGen.toXML(XmlGen.java:644) at com.vmware.vim25.ws.WSClient.createSoapMessage(WSClient.java:220) at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:171) at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:125) at com.vmware.vim25.ws.VimStub.retrieveProperties(VimStub.java:72) at com.vmware.vim25.mo.PropertyCollector.retrieveProperties(PropertyCollector.java:107) at com.vmware.vim25.mo.ManagedObject.retrieveObjectProperties(ManagedObject.java:155) at com.vmware.vim25.mo.ManagedObject.getCurrentProperty(ManagedObject.java:179) at com.vmware.vim25.mo.ManagedObject.getManagedObject(ManagedObject.java:369) at com.vmware.vim25.mo.ComputeResource.getResourcePool(ComputeResource.java:70) at my.company.com.CreateVSphereInstanceAction.execute(CreateVSphereInstanceAction.java:61) It happens not only in getResource() call, but also Task.getTaskInfo(), ManagedObject.getPropertyByPath() and so on. Mike |
From: Pai, R. M. <roo...@hp...> - 2011-08-11 04:19:14
|
Hi, We understand that the primary advantage of the VI Java API is improved productivity due to a serious reduction in code - up to 70 percent and improved performance compared to VISDK. We would like to know if : 1) VIJava supports all the versions of ESX? Will this API support all upcoming version of ESX? What is the commitment of the VIJava towards this? 2) What benefit is gives in terms of memory, cpu ? Thanks, Roopa |
From: Andrea T. <and...@em...> - 2011-02-07 11:53:35
|
Hi all, I'm using vijava since a while and now I'd like to run program/script in Windows guest without using vnc, ssh or rdp. I know VMware provides "vmrun" CLI to run this kind of tasks on guest where vmware tools is installed. Is there any suppot of this functionalities in vijava library? thank you, Andrea |
From: Bhushan J. <bhu...@gm...> - 2010-10-25 16:43:49
|
Hi, I had a query regarding how often is the vijava project updated corresponding to the updates in the VMware SDK? Do updates in VMware SDK get incorporated in vijava instantaneously or what is the usual time time lag? Please let me know -- Regards, -------------------- Bhushan Jain |
From: Adam S. <ada...@gm...> - 2009-12-16 21:48:49
|
Hello All, Looking to see if anyone out there has something written they would be willing to share or for any tips on generating linked clones using VI Java. I've done a bit of prototyping with the ghetto-linked-clones script provided here: http://communities.vmware.com/docs/DOC-9020. This works functionally for me, but since it needs to be executed from the ESX host it's untenable in my environment without resorting to major hackery (like SSH'ing to individual ESX machines and running the script from a central machine). Thanks in advance for any help, pointers, advice, code snippets that you can provide. Sincerely, Adam |