I've about 250 ASG's with wrong ACC-server address in their options (server IP-address has been changed). I want to use a script which will correct IP-address. I use plink.exe for ssh connection. The output of get_object function is below:
astaro:/home/login # cc get_object REF_VctZAbInbK
get_object returned {
'lock' => '',
'ref' => 'REF_VctZAbInbK',
'data' => {
'resolved6' => 0,
'address6' => '',
'comment' => '',
'name' => 'ACC',
'interface' => '',
'resolved' => 1,
'address' => '10.10.37.200'
},
'hidden' => 0,
'class' => 'network',
'type' => 'host',
'nodel' => ''
}
Now I need to change 'address' value - how can I do this?
I've tried to do this with tool cc->OBJS->network->host, but it doesn't work through plink. I get "Cannot open /dev/tty for read at confd-client.pl line 159" error.
I think that's because cc starts something like it's own shell, so input from my script doesn't work.
I think I need the only one command to change IP-address, so I've tried to use set_object but I don't know right syntax. I receive "Bareword "REF_VctZAbInbK" not allowed while "strict subs" in use at (eval 78) line 1" error.
Could anybody tell me, how can I change the value of my ACC-server IP address? Thanks in advance!
This thread was automatically locked due to age.