Option to run Racadm locally; handle: logs, exceptions. Separate folders for scripts, logs

This commit is contained in:
2026-01-16 16:20:16 +00:00
parent eda2eb0cc8
commit ecec60554f
4 changed files with 519 additions and 481 deletions

View File

@@ -1,30 +1,30 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup> </startup>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" /> <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.4.0" newVersion="4.2.4.0" /> <bindingRedirect oldVersion="0.0.0.0-4.2.4.0" newVersion="4.2.4.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" /> <bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" /> <bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.6.0" newVersion="4.1.6.0" /> <bindingRedirect oldVersion="0.0.0.0-4.1.6.0" newVersion="4.1.6.0" />
</dependentAssembly> </dependentAssembly>
</assemblyBinding> </assemblyBinding>
</runtime> </runtime>
</configuration> </configuration>

View File

@@ -1,264 +1,279 @@
namespace SSH_Test namespace SSH_Test
{ {
partial class FormConfiguration partial class FormConfiguration
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Clean up any resources being used. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
if (disposing && (components != null)) if (disposing && (components != null))
{ {
components.Dispose(); components.Dispose();
} }
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.labelIP = new System.Windows.Forms.Label(); this.labelIP = new System.Windows.Forms.Label();
this.textBoxSftpIP = new System.Windows.Forms.TextBox(); this.textBoxSftpIP = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.textBoxSftpPassword = new System.Windows.Forms.TextBox(); this.textBoxSftpPassword = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.textBoxSftpUsername = new System.Windows.Forms.TextBox(); this.textBoxSftpUsername = new System.Windows.Forms.TextBox();
this.buttonOK = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.textBoxTftpIP = new System.Windows.Forms.TextBox(); this.textBoxTftpIP = new System.Windows.Forms.TextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox(); this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label3 = new System.Windows.Forms.Label(); this.checkBox_Local = new System.Windows.Forms.CheckBox();
this.textBoxIDRACPassword = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label(); this.textBoxIDRACPassword = new System.Windows.Forms.TextBox();
this.textBoxIDRACUsername = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label(); this.textBoxIDRACUsername = new System.Windows.Forms.TextBox();
this.textBoxIDRACIP = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout(); this.textBoxIDRACIP = new System.Windows.Forms.TextBox();
this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout();
this.SuspendLayout(); this.groupBox3.SuspendLayout();
// this.SuspendLayout();
// labelIP //
// // labelIP
this.labelIP.AutoSize = true; //
this.labelIP.Location = new System.Drawing.Point(20, 28); this.labelIP.AutoSize = true;
this.labelIP.Name = "labelIP"; this.labelIP.Location = new System.Drawing.Point(20, 28);
this.labelIP.Size = new System.Drawing.Size(17, 13); this.labelIP.Name = "labelIP";
this.labelIP.TabIndex = 0; this.labelIP.Size = new System.Drawing.Size(17, 13);
this.labelIP.Text = "IP"; this.labelIP.TabIndex = 0;
this.labelIP.Click += new System.EventHandler(this.label1_Click); this.labelIP.Text = "IP";
// this.labelIP.Click += new System.EventHandler(this.label1_Click);
// textBoxSftpIP //
// // textBoxSftpIP
this.textBoxSftpIP.Location = new System.Drawing.Point(55, 25); //
this.textBoxSftpIP.Name = "textBoxSftpIP"; this.textBoxSftpIP.Location = new System.Drawing.Point(55, 25);
this.textBoxSftpIP.Size = new System.Drawing.Size(214, 20); this.textBoxSftpIP.Name = "textBoxSftpIP";
this.textBoxSftpIP.TabIndex = 1; this.textBoxSftpIP.Size = new System.Drawing.Size(214, 20);
this.textBoxSftpIP.TextChanged += new System.EventHandler(this.textBox1_TextChanged); this.textBoxSftpIP.TabIndex = 1;
// this.textBoxSftpIP.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
// groupBox1 //
// // groupBox1
this.groupBox1.Controls.Add(this.label2); //
this.groupBox1.Controls.Add(this.textBoxSftpPassword); this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.textBoxSftpPassword);
this.groupBox1.Controls.Add(this.textBoxSftpUsername); this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.labelIP); this.groupBox1.Controls.Add(this.textBoxSftpUsername);
this.groupBox1.Controls.Add(this.textBoxSftpIP); this.groupBox1.Controls.Add(this.labelIP);
this.groupBox1.Location = new System.Drawing.Point(12, 71); this.groupBox1.Controls.Add(this.textBoxSftpIP);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Location = new System.Drawing.Point(12, 71);
this.groupBox1.Size = new System.Drawing.Size(278, 118); this.groupBox1.Name = "groupBox1";
this.groupBox1.TabIndex = 3; this.groupBox1.Size = new System.Drawing.Size(278, 118);
this.groupBox1.TabStop = false; this.groupBox1.TabIndex = 3;
this.groupBox1.Text = "Sftp"; this.groupBox1.TabStop = false;
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter); this.groupBox1.Text = "Sftp";
// this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
// label2 //
// // label2
this.label2.AutoSize = true; //
this.label2.Location = new System.Drawing.Point(20, 80); this.label2.AutoSize = true;
this.label2.Name = "label2"; this.label2.Location = new System.Drawing.Point(20, 80);
this.label2.Size = new System.Drawing.Size(53, 13); this.label2.Name = "label2";
this.label2.TabIndex = 4; this.label2.Size = new System.Drawing.Size(53, 13);
this.label2.Text = "Password"; this.label2.TabIndex = 4;
this.label2.Click += new System.EventHandler(this.label2_Click); this.label2.Text = "Password";
// this.label2.Click += new System.EventHandler(this.label2_Click);
// textBoxSftpPassword //
// // textBoxSftpPassword
this.textBoxSftpPassword.Location = new System.Drawing.Point(83, 77); //
this.textBoxSftpPassword.Name = "textBoxSftpPassword"; this.textBoxSftpPassword.Location = new System.Drawing.Point(83, 77);
this.textBoxSftpPassword.Size = new System.Drawing.Size(186, 20); this.textBoxSftpPassword.Name = "textBoxSftpPassword";
this.textBoxSftpPassword.TabIndex = 5; this.textBoxSftpPassword.Size = new System.Drawing.Size(186, 20);
// this.textBoxSftpPassword.TabIndex = 5;
// label1 //
// // label1
this.label1.AutoSize = true; //
this.label1.Location = new System.Drawing.Point(20, 54); this.label1.AutoSize = true;
this.label1.Name = "label1"; this.label1.Location = new System.Drawing.Point(20, 54);
this.label1.Size = new System.Drawing.Size(57, 13); this.label1.Name = "label1";
this.label1.TabIndex = 2; this.label1.Size = new System.Drawing.Size(57, 13);
this.label1.Text = "UserName"; this.label1.TabIndex = 2;
// this.label1.Text = "UserName";
// textBoxSftpUsername //
// // textBoxSftpUsername
this.textBoxSftpUsername.Location = new System.Drawing.Point(83, 51); //
this.textBoxSftpUsername.Name = "textBoxSftpUsername"; this.textBoxSftpUsername.Location = new System.Drawing.Point(83, 51);
this.textBoxSftpUsername.Size = new System.Drawing.Size(186, 20); this.textBoxSftpUsername.Name = "textBoxSftpUsername";
this.textBoxSftpUsername.TabIndex = 3; this.textBoxSftpUsername.Size = new System.Drawing.Size(186, 20);
// this.textBoxSftpUsername.TabIndex = 3;
// buttonOK //
// // buttonOK
this.buttonOK.Location = new System.Drawing.Point(55, 195); //
this.buttonOK.Name = "buttonOK"; this.buttonOK.Location = new System.Drawing.Point(55, 195);
this.buttonOK.Size = new System.Drawing.Size(151, 23); this.buttonOK.Name = "buttonOK";
this.buttonOK.TabIndex = 4; this.buttonOK.Size = new System.Drawing.Size(151, 23);
this.buttonOK.Text = "OK"; this.buttonOK.TabIndex = 4;
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Text = "OK";
this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); this.buttonOK.UseVisualStyleBackColor = true;
// this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
// groupBox2 //
// // groupBox2
this.groupBox2.Controls.Add(this.label5); //
this.groupBox2.Controls.Add(this.textBoxTftpIP); this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Location = new System.Drawing.Point(12, 12); this.groupBox2.Controls.Add(this.textBoxTftpIP);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Location = new System.Drawing.Point(12, 12);
this.groupBox2.Size = new System.Drawing.Size(278, 53); this.groupBox2.Name = "groupBox2";
this.groupBox2.TabIndex = 6; this.groupBox2.Size = new System.Drawing.Size(278, 53);
this.groupBox2.TabStop = false; this.groupBox2.TabIndex = 6;
this.groupBox2.Text = "Tftp"; this.groupBox2.TabStop = false;
// this.groupBox2.Text = "Tftp";
// label5 //
// // label5
this.label5.AutoSize = true; //
this.label5.Location = new System.Drawing.Point(20, 28); this.label5.AutoSize = true;
this.label5.Name = "label5"; this.label5.Location = new System.Drawing.Point(20, 28);
this.label5.Size = new System.Drawing.Size(17, 13); this.label5.Name = "label5";
this.label5.TabIndex = 0; this.label5.Size = new System.Drawing.Size(17, 13);
this.label5.Text = "IP"; this.label5.TabIndex = 0;
// this.label5.Text = "IP";
// textBoxTftpIP //
// // textBoxTftpIP
this.textBoxTftpIP.Location = new System.Drawing.Point(55, 25); //
this.textBoxTftpIP.Name = "textBoxTftpIP"; this.textBoxTftpIP.Location = new System.Drawing.Point(55, 25);
this.textBoxTftpIP.Size = new System.Drawing.Size(214, 20); this.textBoxTftpIP.Name = "textBoxTftpIP";
this.textBoxTftpIP.TabIndex = 1; this.textBoxTftpIP.Size = new System.Drawing.Size(214, 20);
// this.textBoxTftpIP.TabIndex = 1;
// groupBox3 //
// // groupBox3
this.groupBox3.Controls.Add(this.label3); //
this.groupBox3.Controls.Add(this.textBoxIDRACPassword); this.groupBox3.Controls.Add(this.checkBox_Local);
this.groupBox3.Controls.Add(this.label4); this.groupBox3.Controls.Add(this.label3);
this.groupBox3.Controls.Add(this.textBoxIDRACUsername); this.groupBox3.Controls.Add(this.textBoxIDRACPassword);
this.groupBox3.Controls.Add(this.label6); this.groupBox3.Controls.Add(this.label4);
this.groupBox3.Controls.Add(this.textBoxIDRACIP); this.groupBox3.Controls.Add(this.textBoxIDRACUsername);
this.groupBox3.Location = new System.Drawing.Point(307, 12); this.groupBox3.Controls.Add(this.label6);
this.groupBox3.Name = "groupBox3"; this.groupBox3.Controls.Add(this.textBoxIDRACIP);
this.groupBox3.Size = new System.Drawing.Size(278, 118); this.groupBox3.Location = new System.Drawing.Point(307, 12);
this.groupBox3.TabIndex = 6; this.groupBox3.Name = "groupBox3";
this.groupBox3.TabStop = false; this.groupBox3.Size = new System.Drawing.Size(278, 152);
this.groupBox3.Text = "IDRAC"; this.groupBox3.TabIndex = 6;
// this.groupBox3.TabStop = false;
// label3 this.groupBox3.Text = "IDRAC";
// //
this.label3.AutoSize = true; // checkBox_Local
this.label3.Location = new System.Drawing.Point(20, 80); //
this.label3.Name = "label3"; this.checkBox_Local.AutoSize = true;
this.label3.Size = new System.Drawing.Size(53, 13); this.checkBox_Local.Location = new System.Drawing.Point(23, 19);
this.label3.TabIndex = 4; this.checkBox_Local.Name = "checkBox_Local";
this.label3.Text = "Password"; this.checkBox_Local.Size = new System.Drawing.Size(52, 17);
// this.checkBox_Local.TabIndex = 6;
// textBoxIDRACPassword this.checkBox_Local.Text = "Local";
// this.checkBox_Local.UseVisualStyleBackColor = true;
this.textBoxIDRACPassword.Location = new System.Drawing.Point(83, 77); this.checkBox_Local.CheckedChanged += new System.EventHandler(this.checkBox_Local_CheckedChanged);
this.textBoxIDRACPassword.Name = "textBoxIDRACPassword"; //
this.textBoxIDRACPassword.Size = new System.Drawing.Size(186, 20); // label3
this.textBoxIDRACPassword.TabIndex = 5; //
this.textBoxIDRACPassword.UseSystemPasswordChar = true; this.label3.AutoSize = true;
// this.label3.Location = new System.Drawing.Point(20, 105);
// label4 this.label3.Name = "label3";
// this.label3.Size = new System.Drawing.Size(53, 13);
this.label4.AutoSize = true; this.label3.TabIndex = 4;
this.label4.Location = new System.Drawing.Point(20, 54); this.label3.Text = "Password";
this.label4.Name = "label4"; //
this.label4.Size = new System.Drawing.Size(57, 13); // textBoxIDRACPassword
this.label4.TabIndex = 2; //
this.label4.Text = "UserName"; this.textBoxIDRACPassword.Location = new System.Drawing.Point(83, 102);
// this.textBoxIDRACPassword.Name = "textBoxIDRACPassword";
// textBoxIDRACUsername this.textBoxIDRACPassword.Size = new System.Drawing.Size(186, 20);
// this.textBoxIDRACPassword.TabIndex = 5;
this.textBoxIDRACUsername.Location = new System.Drawing.Point(83, 51); this.textBoxIDRACPassword.UseSystemPasswordChar = true;
this.textBoxIDRACUsername.Name = "textBoxIDRACUsername"; //
this.textBoxIDRACUsername.Size = new System.Drawing.Size(186, 20); // label4
this.textBoxIDRACUsername.TabIndex = 3; //
// this.label4.AutoSize = true;
// label6 this.label4.Location = new System.Drawing.Point(20, 79);
// this.label4.Name = "label4";
this.label6.AutoSize = true; this.label4.Size = new System.Drawing.Size(57, 13);
this.label6.Location = new System.Drawing.Point(20, 28); this.label4.TabIndex = 2;
this.label6.Name = "label6"; this.label4.Text = "UserName";
this.label6.Size = new System.Drawing.Size(17, 13); //
this.label6.TabIndex = 0; // textBoxIDRACUsername
this.label6.Text = "IP"; //
// this.textBoxIDRACUsername.Location = new System.Drawing.Point(83, 76);
// textBoxIDRACIP this.textBoxIDRACUsername.Name = "textBoxIDRACUsername";
// this.textBoxIDRACUsername.Size = new System.Drawing.Size(186, 20);
this.textBoxIDRACIP.Location = new System.Drawing.Point(55, 25); this.textBoxIDRACUsername.TabIndex = 3;
this.textBoxIDRACIP.Name = "textBoxIDRACIP"; //
this.textBoxIDRACIP.Size = new System.Drawing.Size(214, 20); // label6
this.textBoxIDRACIP.TabIndex = 1; //
// this.label6.AutoSize = true;
// FormConfiguration this.label6.Location = new System.Drawing.Point(56, 53);
// this.label6.Name = "label6";
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.label6.Size = new System.Drawing.Size(17, 13);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.label6.TabIndex = 0;
this.ClientSize = new System.Drawing.Size(586, 228); this.label6.Text = "IP";
this.Controls.Add(this.groupBox3); //
this.Controls.Add(this.groupBox2); // textBoxIDRACIP
this.Controls.Add(this.buttonOK); //
this.Controls.Add(this.groupBox1); this.textBoxIDRACIP.Location = new System.Drawing.Point(83, 50);
this.Name = "FormConfiguration"; this.textBoxIDRACIP.Name = "textBoxIDRACIP";
this.Text = "FormConfiguration"; this.textBoxIDRACIP.Size = new System.Drawing.Size(186, 20);
this.groupBox1.ResumeLayout(false); this.textBoxIDRACIP.TabIndex = 1;
this.groupBox1.PerformLayout(); //
this.groupBox2.ResumeLayout(false); // FormConfiguration
this.groupBox2.PerformLayout(); //
this.groupBox3.ResumeLayout(false); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.groupBox3.PerformLayout(); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ResumeLayout(false); this.ClientSize = new System.Drawing.Size(586, 228);
this.Controls.Add(this.groupBox3);
} this.Controls.Add(this.groupBox2);
this.Controls.Add(this.buttonOK);
#endregion this.Controls.Add(this.groupBox1);
this.Name = "FormConfiguration";
private System.Windows.Forms.Label labelIP; this.Text = "FormConfiguration";
private System.Windows.Forms.TextBox textBoxSftpIP; this.Load += new System.EventHandler(this.FormConfiguration_Load);
private System.Windows.Forms.GroupBox groupBox1; this.groupBox1.ResumeLayout(false);
private System.Windows.Forms.Label label2; this.groupBox1.PerformLayout();
private System.Windows.Forms.TextBox textBoxSftpPassword; this.groupBox2.ResumeLayout(false);
private System.Windows.Forms.Label label1; this.groupBox2.PerformLayout();
private System.Windows.Forms.TextBox textBoxSftpUsername; this.groupBox3.ResumeLayout(false);
private System.Windows.Forms.Button buttonOK; this.groupBox3.PerformLayout();
private System.Windows.Forms.GroupBox groupBox2; this.ResumeLayout(false);
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBoxTftpIP; }
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Label label3; #endregion
private System.Windows.Forms.TextBox textBoxIDRACPassword;
private System.Windows.Forms.Label label4; private System.Windows.Forms.Label labelIP;
private System.Windows.Forms.TextBox textBoxIDRACUsername; private System.Windows.Forms.TextBox textBoxSftpIP;
private System.Windows.Forms.Label label6; private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox textBoxIDRACIP; private System.Windows.Forms.Label label2;
} private System.Windows.Forms.TextBox textBoxSftpPassword;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBoxSftpUsername;
private System.Windows.Forms.Button buttonOK;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBoxTftpIP;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBoxIDRACPassword;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBoxIDRACUsername;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox textBoxIDRACIP;
private System.Windows.Forms.CheckBox checkBox_Local;
}
} }

View File

@@ -1,70 +1,93 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace SSH_Test namespace SSH_Test
{ {
public partial class FormConfiguration : Form public partial class FormConfiguration : Form
{ {
public string Tftp_IP { get; set; } public string Tftp_IP { get; set; }
public string Sftp_IP { get; set; } public string Sftp_IP { get; set; }
public string Sftp_Username { get; set; } public string Sftp_Username { get; set; }
public string Sftp_Password { get; set; } public string Sftp_Password { get; set; }
public string IDRAC_IP { get; set; } public string IDRAC_IP { get; set; }
public string IDRAC_Username { get; set; } public string IDRAC_Username { get; set; }
public string IDRAC_Password { get; set; } public string IDRAC_Password { get; set; }
public bool IDRAC_Local { get; set; }
public FormConfiguration(string tftp_IP, string sftpIP, string sftp_Username, string sftp_Password, string idrac_IP, string idrac_Username, string idrac_Password)
{ public FormConfiguration(string tftp_IP, string sftpIP, string sftp_Username, string sftp_Password, string idrac_IP, string idrac_Username, string idrac_Password, bool iDRAC_Local)
InitializeComponent(); {
this.textBoxTftpIP.Text = Tftp_IP = tftp_IP; InitializeComponent();
this.textBoxSftpIP.Text = Sftp_IP = sftpIP; this.textBoxTftpIP.Text = Tftp_IP = tftp_IP;
this.textBoxSftpUsername.Text = Sftp_Username = sftp_Username; this.textBoxSftpIP.Text = Sftp_IP = sftpIP;
this.textBoxSftpPassword.Text = Sftp_Password = sftp_Password; this.textBoxSftpUsername.Text = Sftp_Username = sftp_Username;
this.textBoxIDRACIP.Text = IDRAC_IP = idrac_IP; this.textBoxSftpPassword.Text = Sftp_Password = sftp_Password;
this.textBoxIDRACUsername.Text = IDRAC_Username = idrac_Username; this.textBoxIDRACIP.Text = IDRAC_IP = idrac_IP;
this.textBoxIDRACPassword.Text = IDRAC_Password = idrac_Password; this.textBoxIDRACUsername.Text = IDRAC_Username = idrac_Username;
this.textBoxIDRACPassword.Text = IDRAC_Password = idrac_Password;
this.Update(); this.checkBox_Local.Checked = iDRAC_Local;
} this.Update();
private void groupBox1_Enter(object sender, EventArgs e) }
{
private void groupBox1_Enter(object sender, EventArgs e)
} {
private void textBox1_TextChanged(object sender, EventArgs e) }
{
private void textBox1_TextChanged(object sender, EventArgs e)
} {
private void label1_Click(object sender, EventArgs e) }
{
private void label1_Click(object sender, EventArgs e)
} {
private void label2_Click(object sender, EventArgs e) }
{
private void label2_Click(object sender, EventArgs e)
} {
private void buttonOK_Click(object sender, EventArgs e) }
{
Tftp_IP = textBoxTftpIP.Text; private void buttonOK_Click(object sender, EventArgs e)
Sftp_IP = textBoxSftpIP.Text; {
Sftp_Username = textBoxSftpUsername.Text; Tftp_IP = textBoxTftpIP.Text;
Sftp_Password = textBoxSftpPassword.Text; Sftp_IP = textBoxSftpIP.Text;
IDRAC_IP = textBoxIDRACIP.Text; Sftp_Username = textBoxSftpUsername.Text;
IDRAC_Username= textBoxIDRACUsername.Text; Sftp_Password = textBoxSftpPassword.Text;
IDRAC_Password= textBoxIDRACPassword.Text; IDRAC_IP = textBoxIDRACIP.Text;
this.Close(); IDRAC_Username= textBoxIDRACUsername.Text;
} IDRAC_Password= textBoxIDRACPassword.Text;
} IDRAC_Local=checkBox_Local.Checked;
} this.Close();
}
private void FormConfiguration_Load(object sender, EventArgs e)
{
}
private void checkBox_Local_CheckedChanged(object sender, EventArgs e)
{
if (checkBox_Local.Checked)
{
checkBox_Local.Checked = true;
IDRAC_Local = checkBox_Local.Checked;
}
else
{
checkBox_Local.Checked = false;
IDRAC_Local = checkBox_Local.Checked;
}
}
}
}

View File

@@ -1,120 +1,120 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
</root> </root>