Thanks for the example but how would I go about setting different properties
for the device?the location, description or group for example. are the methods
and calling conventions documented anywhere?
-------------- Original message ----------------------
From: Gregory Davis <[EMAIL PROTECTED]>
> Change CLASS to your device class.
> Script accepts a server name as an argument but can be changed to use a
> list.
> Replace USERNAME and PASSWORD.
>
> #!/bin/bash
>
> DEVICE_PATH=/Server/Linux/CLASS
>
> for device in `cat $1`
> do
> wget
> http://USERNAME:[EMAIL
> PROTECTED]:8080/zport/dmd/DeviceLoader?deviceName=${devi
> ce}\&devicePath=$DEVICE_PATH\&loadDevice:method=1
> done
>
>
> On Thu, 2007-01-04 at 19:59 +0000, [EMAIL PROTECTED] wrote:
>
> > Hi,
> > Is there any way to add a device via command line interface or using
> XML-RPC?are the XML-RPC methods documented any where? I have a fairly large
> network with many hosts getting deployed on daily basis. I would like to be
> able
> to add new devices and services from perl or ruby code. I am also interested
> in
> retrieving data in the objects database to use when compiling reports or
> displaying in our internal portal.
> > Any help or hints are much appreciated
> >
> > Regards
> > Mohamed
> > http://www.unixgarage.com
> > _______________________________________________
> > zenoss-users mailing list
> > [email protected]
> > http://lists.zenoss.org/mailman/listinfo/zenoss-users
--- Begin Message ---
Change CLASS to your device class.
Script accepts a server name as an argument but can be changed to use a
list.
Replace USERNAME and PASSWORD.
#!/bin/bash
DEVICE_PATH=/Server/Linux/CLASS
for device in `cat $1`
do
wget
http://USERNAME:[EMAIL
PROTECTED]:8080/zport/dmd/DeviceLoader?deviceName=${device}\&devicePath=$DEVICE_PATH\&loadDevice:method=1
done
On Thu, 2007-01-04 at 19:59 +0000, [EMAIL PROTECTED] wrote:
> Hi,
> Is there any way to add a device via command line interface or using
> XML-RPC?are the XML-RPC methods documented any where? I have a fairly large
> network with many hosts getting deployed on daily basis. I would like to be
> able to add new devices and services from perl or ruby code. I am also
> interested in retrieving data in the objects database to use when compiling
> reports or displaying in our internal portal.
> Any help or hints are much appreciated
>
> Regards
> Mohamed
> http://www.unixgarage.com
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
--- End Message ---
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users