improved a little bit tuto server connection with ipmi

This commit is contained in:
Hugo LAMY
2025-04-06 23:02:48 +02:00
parent c57c9f44ad
commit 4178de0d80

View File

@@ -129,28 +129,33 @@ gateway : fe80::226:bff:feef:59ff
## prevent loosing definitively ssh connection : **https://www.reddit.com/r/servers/comments/17mtlxf/how_to_set_up_a_backup_connection_to_a_server_if/** ## prevent loosing definitively ssh connection : **https://www.reddit.com/r/servers/comments/17mtlxf/how_to_set_up_a_backup_connection_to_a_server_if/**
## ipmi / idrac6 : connect to the server without ssh : ## ipmi / idrac6 : connect to the server without ssh :
- connect to ipmi (enter the ip adress of the internet connection, not the one of the server) - launch the ipmi session on the ecowan pannel, fill the ip address (no the server one, your internet connection one, ex by searching "what is my ip"), it will give you
- the url with the ip : `https://51.159.47.149/`
- the username : sd-51086
- the password
### OPTION 1/2 : you can then connect to the idrac web interface
- in the idrac interface, go to the console and click on 'launch virtual console' - in the idrac interface, go to the console and click on 'launch virtual console'
-> it will download a viewer.jnlp file -> it will download a viewer.jnlp file
- OPTION 1/3 : open this file with java with python script : ### OPTION 2/2 : you can launch the console in java :
- the script can be found here : **https://gist.github.com/TheJJ/2394cd76d3e2c34d02e3da1bd3e489b2?ref=blockdev.io** #### OPTION 2.1/3 : open the java console with python script :
- I added it to this config folder - the script can be found here : **https://gist.github.com/TheJJ/2394cd76d3e2c34d02e3da1bd3e489b2?ref=blockdev.io**
- i also added it to the PATH **~/.local/bin/idracclient.py** so you can call it from anywhere like that : **idracclient.py <ip> -u <username>** - I added it to this config folder
- OPTION 2/3 : open this file with global java yourself (last time it didn't worked) : - i also added it to the PATH **~/.local/bin/idracclient.py** so you can call it from anywhere like that : **idracclient.py <ip> -u <username>**
- install java 8 (it might works better with idrac6) : **sudo apt-get install openjdk-8-jre** #### OPTION 2.2/3 : open this file with global java yourself (last time it didn't worked) :
- for other versions : **https://openjdk.org/install/** - install java 8 (it might works better with idrac6) : **sudo apt-get install openjdk-8-jre**
- install javaws : **sudo apt install icedtea-netx** - for other versions : **https://openjdk.org/install/**
- to open viewer.jnlp file run : **javaws viewer.jnlp(blablabla)** - install javaws : **sudo apt install icedtea-netx**
- i also needed to change the security file otherwise it wouldn't open the files because 'jar are not signed' : - to open viewer.jnlp file run : **javaws viewer.jnlp(blablabla)**
- i also needed to change the security file otherwise it wouldn't open the files because 'jar are not signed' :
- maybe see : https://unix.stackexchange.com/questions/143805/running-unsigned-javaws-code - maybe see : https://unix.stackexchange.com/questions/143805/running-unsigned-javaws-code
- either do it manually : in **/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security**, change lines: - either do it manually : in **/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security**, change lines:
- **jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024...** to remove 'md5' - **jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024...** to remove 'md5'
- **jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024...** - **jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024...**
- alternatively you can have a local override, see **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6** - alternatively you can have a local override, see **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6**
- also, if needed to modify the java control panel, open it with : **/usr/bin/itweb-settings** - also, if needed to modify the java control panel, open it with : **/usr/bin/itweb-settings**
- OPTION 3/3 : open this file with local java yourself (last time it didn't worked) : #### OPTION 2.3/3 : open this file with local java yourself (last time it didn't worked) :
- same as before, but instead of installing the files with apt, you download the archives and unzip them in a folder - same as before, but instead of installing the files with apt, you download the archives and unzip them in a folder
- see : **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6** - see : **https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6**