cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to remove on attribute in vcs 7.4

Ayan1987
Level 3

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

1 ACCEPTED SOLUTION

Accepted Solutions

frankgfan
Moderator
Moderator
   VIP   

this command below

hares -modify MM_ONM_NIC IPv4AddrOptions ""

will remove the values assigned to attribute IPv4AddrOptions

View solution in original post

13 REPLIES 13

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified
Try
hares -modify res attr -delete key ... [-sys system]

Key being "broadcast 10.86.197.191"

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

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Looks ok, did it work? If not, post the output.

today I will implement and share the output with you

frankgfan
Moderator
Moderator
   VIP   

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

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

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

frankgfan
Moderator
Moderator
   VIP   

try this

hares -modify MM_ONM_NIC IPv4AddrOptions -delete -keys

ademm01:~# haconf -makerw
ademm01:~# hares -modify MM_ONM_NIC IPv4AddrOptions -delete -keys
VCS WARNING V-16-1-10556 Delete not valid for scalars.
ademm01:~#

frankgfan
Moderator
Moderator
   VIP   

run these commands

 

haconf -majkerw

hares -modify MM_ONM_NIC IPv4AddrOptions ""

haconf -dump -makero

grep IPv4AddrOptions /etc/VRTSvcs/conf/config/main.cf

 

what this command will do will it remove the entire parameter or it will just make it " "

frankgfan
Moderator
Moderator
   VIP   

this command below

hares -modify MM_ONM_NIC IPv4AddrOptions ""

will remove the values assigned to attribute IPv4AddrOptions

Thank you for the command this worked