Discussion:
Change/Reset IP for entire group
Matthew Kitchin (public)
2013-08-09 18:12:04 UTC
Permalink
Matthew Kitchin (public) [http://community.zenoss.org/people/mkitchin] created the discussion

"Re: Check reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74343#74343

--------------------------------------------------------------
Thanks. I'm a little unclear on how I would use that. I can't reset an IP address as long as something else has the IP that id needs to be updated to. Any idea what steps I would need to perform in what order?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74343#74343]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Matthew Kitchin (public)
2013-08-09 18:29:09 UTC
Permalink
Matthew Kitchin (public) [http://community.zenoss.org/people/mkitchin] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74344#74344

--------------------------------------------------------------
I tried following some tips from here:
http://copilotco.com/mail-archives/zenoss.2008/msg09001.html http://copilotco.com/mail-archives/zenoss.2008/msg09001.html
but I get the same results as the GUI.
d.getManageIp()
'10.10.2.24'
d.setManageIp()
2013-08-09 13:29:28 WARNING zen.Device The IP address 10.10.2.22 is already assigned
'The IP address 10.10.2.22 is already assigned'

The server is really at .22. It was at .24 yesterday. It seems like I need to blank the IPs of all the servers at once, and then rediscover, but I can't figure that out.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74344#74344]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Rob Eagle
2013-08-09 18:34:08 UTC
Permalink
Rob Eagle [http://community.zenoss.org/people/reagle] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74345#74345

--------------------------------------------------------------
maybe try a phony ip address for all devices (unique to each) and then a second round of changes to the ip addresses you require?  not very efficient but would probably work.
--Rob
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74345#74345]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Matthew Kitchin (public)
2013-08-09 18:42:29 UTC
Permalink
Matthew Kitchin (public) [http://community.zenoss.org/people/mkitchin] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74346#74346

--------------------------------------------------------------
d.getManageIp()
'10.10.2.24'
d.setManageIp='20.20.20.20'
commit()
d.getManageIp()
'10.10.2.24'
d.pushConfig()
d.getManageIp()
'10.10.2.24'

It doesn't seem to take. Am I missing something?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74346#74346]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Rob Eagle
2013-08-09 18:58:28 UTC
Permalink
Rob Eagle [http://community.zenoss.org/people/reagle] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74347#74347

--------------------------------------------------------------
d.setManageIp('1.1.1.1')
''
print d.manageIp
1.1.1.1
?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74347#74347]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Matthew Kitchin (public)
2013-08-09 19:23:24 UTC
Permalink
Matthew Kitchin (public) [http://community.zenoss.org/people/mkitchin] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74348#74348

--------------------------------------------------------------
No luck for me.
d = find ('ndcpxaa02*')
d.setManageIp('1.1.1.1')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: 'str' object is not callable

I found the format
d.setManageIp='20.20.20.20'
on a posting. This format doesn't error, but it doesn's seem to work either.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74348#74348]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Matthew Kitchin (public)
2013-08-09 19:56:29 UTC
Permalink
Matthew Kitchin (public) [http://community.zenoss.org/people/mkitchin] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74349#74349

--------------------------------------------------------------
I ran a script to add a bogux host file entry for each machine. I then reset the IPs. That worked. I then removed the entries fromt he host file, and tried again. That really didn't work. I have all sorts of errors. I'm deleting all machines now and will add them back.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74349#74349]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Rob Eagle
2013-08-09 20:04:05 UTC
Permalink
Rob Eagle [http://community.zenoss.org/people/reagle] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74350#74350

--------------------------------------------------------------
Matthew,
After trying d.setManageIp='20.20.20.20' on my system, i started getting "TypeError: 'str' object is not callable", when try to use d.setManageIp('20.20.20.20') again and could not get the device to change.  After deleting the device and readding, the d.setManageIp('20.20.20.20') started working again.  Not for sure what the d.setManageIp='20.20.20.20' is doing, but it broke my ability to change that devices IP address until I recreated the device in zenoss.
There is also a good partial script for you on the wiki ( http://wiki.zenoss.org/ZenDMD_Tip_-_Zet_manageIp_via_Host_Lookup_%28A_record%29 http://wiki.zenoss.org/ZenDMD_Tip_-_Zet_manageIp_via_Host_Lookup_%28A_record%29).
--Rob
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74350#74350]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Matthew Kitchin (public)
2013-08-09 20:08:09 UTC
Permalink
Matthew Kitchin (public) [http://community.zenoss.org/people/mkitchin] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74351#74351

--------------------------------------------------------------
Thanks. That makes sense. I got all kinds of DB errors too, so I think the incorrect syntax caused an issue. It didn't take that long for me to recreate them. I will try this again next time it happens. Thanks for the help!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74351#74351]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
guyverix
2013-08-09 23:09:41 UTC
Permalink
guyverix [http://community.zenoss.org/people/guyverix] created the discussion

"Re: Change/Reset IP for entire group"

To view the discussion, visit: http://community.zenoss.org/message/74352#74352

--------------------------------------------------------------
Here is a github post from Chet Luthor that should be albe to be leveraged as well..


https://gist.github.com/cluther/1901884 https://gist.github.com/cluther/1901884
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74352#74352]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...