Skip navigation
2098 Views 2 Replies Latest reply: May 28, 2012 4:41 AM by Apoorv Chincholkar RSS
Apoorv Chincholkar Rank: White Belt 13 posts since
Apr 25, 2012
Currently Being Moderated

May 24, 2012 7:52 AM

Adding device via command line

Hi,

 

I am using the command below to add a device in Zenoss, through command line, but the same is not getting added in Zenoss:

 

wget 'http://phmsuser2:xxx@3.204.40.111:9080/zport/dmd/DeviceLoader/loadDevice?deviceName=127.0.0.1&devicePath=/Server/Linux'

 

 

I get following reply when I run this command.

 

REPLY FROM SERVER

 

[root@localhost bin]# wget 'http://phmsuser2:xxx@3.204.40.111:9080/zport/dmd/DeviceLoader/loadDevice?deviceName=127.0.0.1&devicePath=/Server/Linux'

--2012-05-24 20:13:35--  http://phmsuser2:*password*@3.204.40.111:9080/zport/dmd/DeviceLoader/loadDevice?deviceName=127.0.0.1&devicePath=/Server/Linux

Connecting to 3.204.40.111:9080... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: http://3.204.40.111:9080/zport/acl_users/cookieAuthHelper/login_form?came_from=http%3A//3.204.40.111%3A9080/zport/dmd/DeviceLoader/loadDevice%3FdeviceName%3D127.0.0.1%26devicePath%3D/Server/Linux [following]

--2012-05-24 20:13:35--  http://3.204.40.111:9080/zport/acl_users/cookieAuthHelper/login_form?came_from=http%3A//3.204.40.111%3A9080/zport/dmd/DeviceLoader/loadDevice%3FdeviceName%3D127.0.0.1%26devicePath%3D/Server/Linux

Connecting to 3.204.40.111:9080... connected.

HTTP request sent, awaiting response... 200 OK

Length: 4134 (4.0K) [text/html]

Saving to: `login_form?came_from=http:%2F%2F3.204.40.111:9080%2Fzport%2Fdmd%2FDeviceLoader%2FloadDevice?deviceName=127.0.0.1&devicePath=%2FServer%2FLinux'

 

100%[===================================================================================================================>] 4,134       --.-K/s   in 0s

 

2012-05-24 20:13:35 (246 MB/s) - `login_form?came_from=http:%2F%2F3.204.40.111:9080%2Fzport%2Fdmd%2FDeviceLoader%2FloadDevice?deviceName=127.0.0.1&devicePath=%2FServer%2FLinux' saved [4134/4134]

 

 

Requesting suggestion.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points