Opsi server IP address change problem
Opsi server IP address change problem
Hello,
I need to change the IP address of the opsi server from 192.168.1.24/24 to 172.25.32.38/23. I tried to do it myself following this thread viewtopic.php?f=8&t=2523. But without success. My steps are described below.
First of all I made small opsiproduct which changes the file C:\Program files\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf and changes the line
url = https://192.168.1.24:4447/rpc
to line
url = https://172.25.32.38:4447/rpc
I run this job on client and control that the address in the config file is changed after the job end.
After that I change the file /etc/network/interfaces on the ubuntu opsi server (see the result below)
iface eth0 inet static
address 172.25.32.38
netmask 255.255.254.0
network 172.25.32.0
broadcast 172.25.33.255
gateway 172.25.32.1
# address 192.168.1.24
# netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.18
after that I changed the /etc/hosts file on the opsi server to
127.0.0.1 localhost
#192.168.1.24 install.soma.cz install
172.25.32.38 install.soma.cz install
after that I changed the addresses in file on server /var/lib/opsi/config/depots/install.soma.cz.ini to
[depotserver]
description =
hardwareaddress = 00:50:56:93:4c:40
inventorynumber =
ipaddress = 172.25.32.38
ismasterdepot = true
network = 172.25.32.0/255.255.254.0
notes =
after that I run the command on opsi server
opsi-setup --init-current-config --ip-address 172.25.32.38
finally I changed the DNS entry on our DNS server and reboot the opsi server. The last step was reboot of the client.
After these steps the client does not connect to the opsi server. The Admin interface in the web browser works. However, the fire on demand action for the client does not work (I get timeout after 15 sec.). Further when the client boot up, there is no lock picture in the upper right corner of the monitor.
Have you any sugestions what to do else?
Thank you in advance,
Jan Hubeny
I need to change the IP address of the opsi server from 192.168.1.24/24 to 172.25.32.38/23. I tried to do it myself following this thread viewtopic.php?f=8&t=2523. But without success. My steps are described below.
First of all I made small opsiproduct which changes the file C:\Program files\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf and changes the line
url = https://192.168.1.24:4447/rpc
to line
url = https://172.25.32.38:4447/rpc
I run this job on client and control that the address in the config file is changed after the job end.
After that I change the file /etc/network/interfaces on the ubuntu opsi server (see the result below)
iface eth0 inet static
address 172.25.32.38
netmask 255.255.254.0
network 172.25.32.0
broadcast 172.25.33.255
gateway 172.25.32.1
# address 192.168.1.24
# netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.18
after that I changed the /etc/hosts file on the opsi server to
127.0.0.1 localhost
#192.168.1.24 install.soma.cz install
172.25.32.38 install.soma.cz install
after that I changed the addresses in file on server /var/lib/opsi/config/depots/install.soma.cz.ini to
[depotserver]
description =
hardwareaddress = 00:50:56:93:4c:40
inventorynumber =
ipaddress = 172.25.32.38
ismasterdepot = true
network = 172.25.32.0/255.255.254.0
notes =
after that I run the command on opsi server
opsi-setup --init-current-config --ip-address 172.25.32.38
finally I changed the DNS entry on our DNS server and reboot the opsi server. The last step was reboot of the client.
After these steps the client does not connect to the opsi server. The Admin interface in the web browser works. However, the fire on demand action for the client does not work (I get timeout after 15 sec.). Further when the client boot up, there is no lock picture in the upper right corner of the monitor.
Have you any sugestions what to do else?
Thank you in advance,
Jan Hubeny
Re: Opsi server IP address change problem
Hello Jan hubeny,
If you have a working DNS so you change in the opsi-configed
to
and wait some days/weeks until the Clients get the new configserver.url in their local config.
Alternatively you can try to route for a while the old ip to the new server.
Hope that helps,
regards,
Bardo Wolf
this will not work.hubeny hat geschrieben:
First of all I made small opsiproduct which changes the file C:\Program files\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf and changes the line
url = https://192.168.1.24:4447/rpc
to line
url = https://172.25.32.38:4447/rpc
Jan Hubeny
If you have a working DNS so you change in the opsi-configed
Code: Alles auswählen
clientconfig.configserver.url [https://192.168.1.24:4447/rpc ]
Code: Alles auswählen
clientconfig.configserver.url [https://fqdnOfYourOPSIserver/rpc ]
Alternatively you can try to route for a while the old ip to the new server.
Hope that helps,
regards,
Bardo Wolf
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: Opsi server IP address change problem
Hello,
you mean to change the IP address of the server (/etc/hosts /etc/network/interfaces), change the depot address in file /var/lib/opsi/config/depots/install.soma.cz.ini. Change the IP with
opsi-setup --init-current-config --ip-address 172.25.32.38
anf finally change
clientconfig.configserver.url [https://fqdnOfYourOPSIserver/rpc ].
The client configuration file should be unchanged with old IP address? Or change it to https://fqdnOfYourOPSIserver/ like the server configuration?
Thank you,
Jan Hubeny
you mean to change the IP address of the server (/etc/hosts /etc/network/interfaces), change the depot address in file /var/lib/opsi/config/depots/install.soma.cz.ini. Change the IP with
opsi-setup --init-current-config --ip-address 172.25.32.38
anf finally change
clientconfig.configserver.url [https://fqdnOfYourOPSIserver/rpc ].
The client configuration file should be unchanged with old IP address? Or change it to https://fqdnOfYourOPSIserver/ like the server configuration?
Thank you,
Jan Hubeny
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: Opsi server IP address change problem
Thìs is what I was missing on page 30 of the opsi-getting-started-stable-en.pdf (4.0.3)! If you have a working DNS it probably works both ways. So no more problems updating the opsi-server ip address.wolfbardo hat geschrieben:If you have a working DNS so you change in the opsi-configedtoCode: Alles auswählen
clientconfig.configserver.url [https://192.168.1.24:4447/rpc ]
Code: Alles auswählen
clientconfig.configserver.url [https://fqdnOfYourOPSIserver/rpc ]

Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!