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 = "10.86.197.148" }
Device @teemm02 = { bond0 = "10.86.197.149" }
Device @teemm03 = { bond0 = "10.86.197.150" }
Device @teemm04 = { bond0 = "10.86.197.167" }
NetMask = "255.255.255.192"
IPv4AddrOptions = "broadcast 10.86.197.191"
IPv4RouteOptions = "default via 10.86.197.129"
NetworkHosts = { "10.86.197.149" }
)

MultiNICA MM_TRF_NIC (
Device @teemm01 = { bond1 = "10.86.197.53" }
Device @teemm02 = { bond1 = "10.86.197.54" }
Device @teemm03 = { bond1 = "10.86.197.55" }
Device @teemm04 = { bond1 = "10.86.197.64" }
NetMask = "255.255.255.128"
Options = "broadcast 10.86.197.127"
NetworkHosts = { "10.86.197.54" }

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 10.86.197.191"

Need help please

1 Solution

Accepted Solutions
Highlighted
Accepted Solution!

Re: Unable to remove on attribute in vcs 7.4

this command below

hares -modify MM_ONM_NIC IPv4AddrOptions ""

will remove the values assigned to attribute IPv4AddrOptions

View solution in original post

13 Replies
Highlighted

Re: Unable to remove on attribute in vcs 7.4

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

Key being "broadcast 10.86.197.191"
Highlighted

Re: Unable to remove on attribute in vcs 7.4

please check my below command and let me know if I am correct?

hares -modify MM_ONM_NIC IPv4AddrOptions -delete "broadcast 10.86.197.191"

and if you can share the correct command

Highlighted

Re: Unable to remove on attribute in vcs 7.4

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

Highlighted

Re: Unable to remove on attribute in vcs 7.4

today I will implement and share the output with you

Highlighted

Re: Unable to remove on attribute in vcs 7.4

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

Highlighted

Re: Unable to remove on attribute in vcs 7.4

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

Highlighted

Re: Unable to remove on attribute in vcs 7.4

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

Highlighted

Re: Unable to remove on attribute in vcs 7.4

try this

hares -modify MM_ONM_NIC IPv4AddrOptions -delete -keys

Highlighted

Re: Unable to remove on attribute in vcs 7.4

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

Highlighted

Re: Unable to remove on attribute in vcs 7.4

run these commands

 

haconf -majkerw

hares -modify MM_ONM_NIC IPv4AddrOptions ""

haconf -dump -makero

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

 

Highlighted

Re: Unable to remove on attribute in vcs 7.4

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

Highlighted
Accepted Solution!

Re: Unable to remove on attribute in vcs 7.4

this command below

hares -modify MM_ONM_NIC IPv4AddrOptions ""

will remove the values assigned to attribute IPv4AddrOptions

View solution in original post

Highlighted

Re: Unable to remove on attribute in vcs 7.4

Thank you for the command this worked