public hypervisor_vmware_FreeNAS(hypSpec_vmware spec, NASParams nasParams, clientExecutionMethod newExecMethod = clientExecutionMethod.vmwaretools) : base(spec, newExecMethod) { nas = FreeNasGroup.getOrMake(nasParams.IP, nasParams.username, nasParams.password); }
public hypervisor_iLo(hypSpec_iLo spec, clientExecutionMethod newExecMethod = clientExecutionMethod.smbWithPSExec) { _spec = spec; lock (_ilos) { if (!_ilos.ContainsKey(spec.iLoHostname)) { _ilos.Add(spec.iLoHostname, new refCount <hypervisor_iLo_HTTP>(new hypervisor_iLo_HTTP(spec.iLoHostname, spec.iLoUsername, spec.iLoPassword))); } else { _ilos[spec.iLoHostname].addRef(); } } if (_spec.iscsiserverIP != null && _spec.iscsiServerUsername != null && _spec.iscsiServerPassword != null) { theNas = FreeNasGroup.getOrMake(_spec.iscsiserverIP, _spec.iscsiServerUsername, _spec.iscsiServerPassword); } if (newExecMethod == clientExecutionMethod.smbWithPSExec) { _executor = new SMBExecutorWithPSExec(spec.kernelDebugIPOrHostname, spec.hostUsername, spec.hostPassword); } else if (newExecMethod == clientExecutionMethod.smbWithWMI) { _executor = new SMBExecutor(spec.kernelDebugIPOrHostname, spec.hostUsername, spec.hostPassword); } else if (newExecMethod == clientExecutionMethod.vmwaretools) { throw new NotSupportedException(); } else if (newExecMethod == clientExecutionMethod.SSHToBASH) { _executor = new SSHExecutor(spec.kernelDebugIPOrHostname, spec.hostUsername, spec.hostPassword); } }
public hypervisor_vmware_FreeNAS(hypSpec_vmware spec, string freeNasip, string freeNasUsername, string freeNasPassword, clientExecutionMethod newExecMethod = clientExecutionMethod.vmwaretools) : base(spec, newExecMethod) { nas = FreeNasGroup.getOrMake(freeNasip, freeNasUsername, freeNasPassword); }