cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
138
Views
0
Helpful
2
Replies
Highlighted
Beginner

DCNM FQDN error

DCNM can only be installed with a FQDN name.

 

My FQDN is xx-xxx-dcnm-xxx.adm.gnp.les800 but DCNM refuse it.

I need to cheat using:

xx-xxx-dcnm-xxx.adm.gnp.les800.fr or

xx-xxx-dcnm-xxx.adm.gnp.les800.com or

xx-xxx-dcnm-xxx.adm.gnp

 

[root@xx-xxx-dcnm-xxx home]# appmgr update network-properties set hostname local xx-xxx-dcnm-xxx.adm.gnp.les800
ERROR: invalid FQDN xx-xxx-dcnm-xxx.adm.gnp.les800
[root@xx-xxx-dcnm-xxx home]# appmgr update network-properties set hostname local xx-xxx-dcnm-xxx.adm.gnp
[root@xx-xxx-dcnm-xxx home]#

 

How can I force my FQDN o where is the regex to correct it ????

2 REPLIES 2
Highlighted
Beginner

Re: DCNM FQDN error

appmgr update network-properties set hostname local xx-xxx-dcnm-xxx.adm.gnp.les800 --force
/root/packaged-files/scripts/updateNetworkProperties.sh: unrecognized option '--force'
ERROR: invalid FQDN xx-xxx-dcnm-xxx.adm.gnp.les800
[root@xx-xxx-dcnm-xxx home]# vi /root/packaged-files/scripts/updateNetworkProperties.sh
Comment line:
#check -is_fqdn "$fqdn" || { echo "ERROR: invalid FQDN $fqdn"; exit 1; }
Can't write cause file is on CD :-/ I need to edit the iso file
Highlighted
Beginner

Re: DCNM FQDN error

SOLUTION:

[root@xx-xxx-dcnm-xxx ~]# mv /root/packaged-files/scripts /root/packaged-files/scripts.tmp

[root@xx-xxx-dcnm-xxx ~]# mkdir /root/packaged-files/scripts

[root@xx-xxx-dcnm-xxx ~]# cp -fr /root/packaged-files/scripts.tmp/* /root/packaged-files/scripts/

[root@xx-xxx-dcnm-xxx ~]# sed -i 's!check -is_fqdn!#check -is_fqdn!g' /root/packaged-files/scripts/updateNetworkProperties.sh

[root@xx-xxx-dcnm-xxx ~]# appmgr update network-properties set hostname local xx-xxx-dcnm-xxx.adm.gnp.les800

[root@xx-xxx-dcnm-xxx ~]# appmgr update network-properties session apply

[root@xx-xxx-dcnm-xxx ~]# rm -fr /root/packaged-files/scripts

[root@xx-xxx-dcnm-xxx ~]# mv /root/packaged-files/scripts.tmp /root/packaged-files/scripts

[root@xx-xxx-dcnm-xxx ~]# reboot