Discussion:
Export ip address list from all Devices added in Zenoss
Syed Ali
2012-02-21 00:08:35 UTC
Permalink
Syed Ali [http://community.zenoss.org/people/S.A.Ali] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Hello,
          Is there anyway to get the IP of the selected device in Zenoss through scripting. If anybody knows pls post. It would be of great help to everybody.
Thanks
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dhopp
2012-02-22 02:01:39 UTC
Permalink
dhopp [http://community.zenoss.org/people/dhopp] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Syed All:

What do mean by "the selected device"?  The posted will print the device name and the management IP.  What else are you looking for?

--Dennis
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-02-22 03:07:55 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Going to take a guess and maybe your after a limited set of devices, not all devices?
device_list = ['device1', 'device2','device3']
  dev = dmd.Devices.findDevice(device)
   print dev.id, dev.manageIp
If thats not it, I'll defer back to dhopp's "what do you mean"
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Syed Ali
2012-02-22 03:33:51 UTC
Permalink
Syed Ali [http://community.zenoss.org/people/S.A.Ali] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Loading Image... Loading Image...


i am reffering to this screen, after clicking device you come to this screen and now i want its IP...and only its IP
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-02-22 03:35:31 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Are you looking to extend the interface? The IP is generally display toward the upper left (just above where your screen shot is cutoff). If all you want to do is see it, its already there, if your trying to programatically do something with it, it might be helpful to understand what functionality your looking to provide, as there are different ways to get that data depending on what you are doing.
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Syed Ali
2012-02-22 03:53:45 UTC
Permalink
Syed Ali [http://community.zenoss.org/people/S.A.Ali] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Yes, i am extending it to provide SSH and telnet support on zenoss. Like when you click on device it takes you in (like in that screenshot), now i want to get its IP and directly ssh to that IP. just like you do snmpwalk or ping in zenoss you dont have to give IP but you just click device and hit ping it starts pinging that device. i want that when user enters the device and hit ssh, it should automatically start ssh to that. i have integrated ajaxterm and anyterm with the zenoss....so i am thinking of getting IP and passing them to ajaxterm to start ssh...
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-02-22 04:00:28 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Gotcha, so I don't know alot about javascript, but the "method" to get that information would like be the JSON API. there is a getInfo (or something like that) in the DeviceRouter. The part I can't answer is how you get the context around the device in javascript so you know which device to request information for.
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Syed Ali
2012-02-22 04:05:36 UTC
Permalink
Syed Ali [http://community.zenoss.org/people/S.A.Ali] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Exactly its the problem which is irritating me. I dont know how to cater this...:(
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Syed Ali
2012-03-05 20:36:58 UTC
Permalink
Syed Ali [http://community.zenoss.org/people/S.A.Ali] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Ah, i have got it to work like if you want to get which device are you looking for here/manageIp and here/id

this gives the current ip and name of the device

thanks

--Syed Ali
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Syed Ali
2012-02-22 03:21:27 UTC
Permalink
Syed Ali [http://community.zenoss.org/people/S.A.Ali] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
Dennis,
           i want to get IP of device that is selected, i mean if someone looks in device tabs all devices are listed, now if soemone clicks on any device in device tab  zenoss takes you in its details (it shows device name,property,production,tag,uptime,first seen etc etc). Now i have to fetch that IP i want to know which device the user has clicked and of which device user is viewing details. I want that IP. So is there any way to get that specific IP.

Thanks

--Syed Ali
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
bend chen
2012-03-23 06:06:14 UTC
Permalink
bend chen [http://community.zenoss.org/people/bend] created the discussion

"Re: Export ip address list from all Devices added in Zenoss"

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

--------------------------------------------------------------
can i export monitor list?
example:
i monitor :
switch1:port1, port 3, port10
switch3:port1,port3,port9
i want export monitor list,and find difference switch1 and switch3.

thanks.
--------------------------------------------------------------

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

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