"Dell idrac 6"-ны өөр хувилбарууд
(Эх сурвалжийн линкийг нарийвчилж оруулав) |
|||
(Хэрэглэгчид дундын нэг хувилбар харагдахгүй) | |||
96-р мөр: | 96-р мөр: | ||
</pre> | </pre> | ||
+ | Host: ip_address | ||
+ | Username: iDRAC_username | ||
+ | Password: iDRAC_password | ||
+ | (порт бол тохируулах хэрэггүй.) | ||
− | Link: https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6 | + | Windows 10 дээр туршив. |
+ | |||
+ | |||
+ | Link: https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6?permalink_comment_id=3457236#gistcomment-3457236 | ||
[[Ангилал:Сисадмин]] | [[Ангилал:Сисадмин]] |
15:38, 9 Хоёрдугаар сар 2022-ий байдлаарх одоогийн засвар
MacOS дээр ажиллуулах арга
1. Console нээх файлаа татаж авна. Энэ нэр нь буруу байх тул viewer.jnlp ѳргѳтгѳлтэй болгож арын хэсгийг арилгаж тохируулна. Ингэснээр шууд Java Web Start-аар нээх боломжтой болно.
2. Нээх үед хамгаалалтын алдаа гарах ба System Preferences > Security & Privacy нээгээд General табын Allow apps downloaded from хэсэгт хүлээгдэж байгаа файлаа Open anyway гэж нээнэ. Нээгдэх цонх, диалогуудад Allow, continue гэх мэтээр нээнэ.
3. Privacy табын Accessbility дотроос java-г чагталж сонгож ѳгнѳ.
4. System Preferences дотроос Java тохиргоог нээж URL хаягаа Security хэсэгт нэмж ѳгч болно. Яг хэрэг болох эсэхийг мэдэхгүй. Бүүр болохгүй бол нэмж үзээрэй.
5. Доорх файлыг засварлана
iDRAC6 Virtual Console (Connection Failed)
Go to Java installation folder. Open java.security -file in text editor.
Windows:
C:\Program Files x86\Java...\lib\security\java.security
MacOS:
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/java.security
Доорх мѳрийг устгах юмуу, хаана.
#jdk.tls.disabledAlgorithms=SSLv3 ...
Доорхыг мѳн болохгүй бол хааж үзнэ.
#jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024
Windows 10
So, I had to jump through a lot of hoops to get this to work, but it DID work. That said, in case others are having the same issues I had, I'm posting here to tell you what I did. Note that this was on an x64 Windows machine.
Create a folder that you can easily navigate to using the command line. I will use "C:\idracfix" for this example. Create subdirectories "jre" and "lib" within "C:\idracfix". (In other words, create "C:\idracfix\jre" and "C:\idracfix\lib".) Create the "start-virtual-console.bat" file that is posted above and put it in your "C:\idracfix" folder. Download the older version of Java from the Oracle webpage. I used this page to download "Java SE Development Kit 7u80" (jdk-7u80-windows-x64.exe). You will have to create an Oracle account. You may be able to find this same file elsewhere on the internet if you Google for it. If you have a 32-bit system, download the x86 (i586) file instead. Extract the files from the executable you just downloaded. I used 7-Zip to do this. You'll end up with a "tools.zip" file. Extract the files from "tools.zip". I again used 7-Zip but since it's a regular .zip file, you can use Windows built-in unzipping/extraction utility. Put all the files and folders from "tools.zip" into your "C:\idracfix\jre" directory. Download your "viewer.jnlp" file from your iDRAC by clicking the "Launch" button on the iDRAC System Summary page. It will actually be named something fairly crazy. You can rename it to "viewer.jnlp" if you like, but it doesn't ultimately matter. Open your "viewer.jnlp" file in a text editor. I used Notepad++ so I could easily double-click the links you'll need from within the file, but regular Notepad works if you don't mind cutting and pasting into a browser. Find the first "resources" section. There will be a link within it to pull your "avctKVM.jar" file from your iDRAC. Use that link to download your "avctKVM.jar" file, and place it directly in your "C:\idracfix" folder. In your "viewer.jnlp" file, below the link to your "avctKVM.jar" file, there is more "resources" sections. Look for the one with your OS and architecture. If you're using 32-bit Windows, you want the architecture of "x86", and if you're using 64-bit Windows, you want the architecture of "amd64" or "x86_64". (Those last two should end up linking to the same files.) Using the same process you used to download your "avctKVM.jar", download "avctKVMIOWin64.jar" (32-bit: "avctKVMIOWin32.jar") and "avctVMWin64.jar" (32-bit: "avctVMWin32.jar"). Extract the files from "avctKVMIOWin64.jar" (32-bit: "avctKVMIOWin32.jar") and "avctVMWin64.jar" (32-bit: "avctVMWin32.jar"). I again used 7-Zip for this. From the resulting files you extracted,, copy the .dll files and paste them in the "C:\idracfix\lib" folder. My .dll files were named "avmWinLib.dll" and "avctKVMIO.dll" but I cannot guarantee that yours will be the same names. You should now have a file/folder structure similar to this:
C:\idracfix\start-virtual-console.bat C:\idracfix\avctKVM.jar C:\idracfix\lib\avmWinLib.dll C:\idracfix\lib\avctKVMIO.dll C:\idracfix\jre\(A bunch of files from tools.zip)
Open Command Prompt, as Administrator, and navigate to your "C:\idracfix" folder. ("cd C:\idracfix") Run the "start-virtual-console.bat" file from within Command Prompt. (Just type in "start-virtual-console.bat" and hit enter.) Fill in the requested information. However, it is at this point that I got the following error:
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
This likely means that various .jar files need to be unpacked. This happens by itself when you run the actual installer, but since we needed to manually extract the files, it didn't happen. You can do this manually using the below command in Command Prompt from the "C:\idracfix" directory. Thanks go out to MultiplyByZer0 and Rigg802 at this link.
for /r %f in (*.pack) do "jre\bin\unpack200.exe" -r -q "%f" "%~pf%~nf.jar"
Run "start-virtual-console.bat" again from the Command Prompt. Your iDRAC console should launch successfully this time!
start-virtual-console.bat
@echo off set /P drachost="Host: " set /p dracuser="Username: " set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^ $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^ [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"" for /f "usebackq delims=" %%p in (`%psCommand%`) do set dracpwd=%%p .\jre\bin\java -cp avctKVM.jar -Djava.library.path=.\lib com.avocent.idrac.kvm.Main ip=%drachost% kmport=5900 vport=5900 user=%dracuser% passwd=%dracpwd% apcp=1 version=2 vmprivilege=true "helpurl=https://%drachost%:443/help/contents.html"
Host: ip_address Username: iDRAC_username Password: iDRAC_password (порт бол тохируулах хэрэггүй.)
Windows 10 дээр туршив.