01-08-2020 08:26 AM - edited 04-09-2020 11:11 AM
group Network (
SystemList = { teemm01 = 0, teemm02 = 1, teemm03 = 2, teemm04 = 3 }
Parallel = 1
AutoStartList = { teemm01, teemm02, teemm03, teemm04 }
)
MultiNICA MM_ONM_NIC (
Device @teemm01 = { bond0 = "0.0.0.0" }
Device @teemm02 = { bond0 = "0.0.0.0" }
Device @teemm03 = { bond0 = "0.0.0.0" }
Device @teemm04 = { bond0 = "0.0.0.0" }
NetMask = "0.0.0.0"
IPv4AddrOptions = "broadcast 0.0.0.0"
IPv4RouteOptions = "default via 0.0.0.0"
NetworkHosts = { "0.0.0.0" }
)
MultiNICA MM_TRF_NIC (
Device @teemm01 = { bond1 = "0.0.0.0" }
Device @teemm02 = { bond1 = "0.0.0.0" }
Device @teemm03 = { bond1 = "0.0.0.0" }
Device @teemm04 = { bond1 = "0.0.0.0" }
NetMask = "0.0.0.0"
Options = "broadcast 0.0.0.0"
NetworkHosts = { "0.0.0.0" }
I want to remove IPv4AddrOptions from MM_ONM_NIC how can I do so.
I am able to add but not able to delete to add I ran this command:
hares -modify MM_ONM_NIC IPv4AddrOptions "broadcast 0.0.0.0"
Need help please
Solved! Go to Solution.
01-11-2020 04:31 PM
this command below
hares -modify MM_ONM_NIC IPv4AddrOptions ""
will remove the values assigned to attribute IPv4AddrOptions
01-08-2020 09:14 AM
01-08-2020 10:32 AM - edited 04-09-2020 11:12 AM
please check my below command and let me know if I am correct?
hares -modify MM_ONM_NIC IPv4AddrOptions -delete "broadcast 0.0.0.0"
and if you can share the correct command
01-09-2020 12:30 AM
Looks ok, did it work? If not, post the output.
01-09-2020 01:16 AM
today I will implement and share the output with you
01-09-2020 03:01 AM
There are at least three ways to delete the attribute.
1. use VCS gui (VOM)
2. edit /etc/VRTSvcs/conf/config/maincf to remove the lines below
IPv4AddrOptions = "broadcast 10.86.197.191"
IPv4RouteOptions = "default via 10.86.197.129"
save the file, then restart had (maje sure that had on the server where the file main.cf is edited gets restarted first (or you can copythe maincf file to each machine in the cluster and restart had or any server).
3. run the commands below
haconf -makerw
hares -modify MM_ONM_NIC IPv4AddrOptions -delete ""
""
haconf -makero -dump
01-09-2020 03:25 AM
ademm01:~# hares -modify MM_ONM_NIC IPv4AddrOptions -delete "broadcast 10.86.201.191"
VCS WARNING V-16-1-10556 Delete not valid for scalars.
ademm01:~#
01-09-2020 03:27 AM
ademm01:~# hares -modify MM_ONM_NIC IPv4AddrOptions -delete "broadcast 10.86.201.191"
VCS WARNING V-16-1-10556 Delete not valid for scalars.
ademm01:~#
01-09-2020 04:36 PM
try this
hares -modify MM_ONM_NIC IPv4AddrOptions -delete -keys
01-10-2020 07:11 AM
ademm01:~# haconf -makerw
ademm01:~# hares -modify MM_ONM_NIC IPv4AddrOptions -delete -keys
VCS WARNING V-16-1-10556 Delete not valid for scalars.
ademm01:~#
01-10-2020 09:12 PM
run these commands
haconf -majkerw
hares -modify MM_ONM_NIC IPv4AddrOptions ""
haconf -dump -makero
grep IPv4AddrOptions /etc/VRTSvcs/conf/config/main.cf
01-11-2020 05:06 AM
what this command will do will it remove the entire parameter or it will just make it " "
01-11-2020 04:31 PM
this command below
hares -modify MM_ONM_NIC IPv4AddrOptions ""
will remove the values assigned to attribute IPv4AddrOptions
01-13-2020 03:17 AM
Thank you for the command this worked