Forum Discussion

Ayan1987's avatar
Ayan1987
Level 3
5 years ago

Unable to remove on attribute in vcs 7.4

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

  • this command below

    hares -modify MM_ONM_NIC IPv4AddrOptions ""

    will remove the values assigned to attribute IPv4AddrOptions

  • Try
    hares -modify res attr -delete key ... [-sys system]

    Key being "broadcast 10.86.197.191"
    • Ayan1987's avatar
      Ayan1987
      Level 3

      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

  • 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

    • Ayan1987's avatar
      Ayan1987
      Level 3

      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:~#