Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

Device Add / View zProperties tips

VERSION 2  Click to view document history
Created on: Sep 14, 2009 11:21 AM by Noel Brockett - Last Modified:  Mar 22, 2010 1:45 PM by Matt Ray

This page is for collecting up various zendmd tips, tricks, and examples.

 

Links to other zendmd pages

use a zendmd script as standalone program

 

Scott Haskell's Useful Tips and Tricks

 

 

 

 

Wouter D'Haeseleer's zendmd Tips and Tricks

 

Examples!

Device Add - Unmonitored, No IP address


dmd.Devices.Unmonitored.createInstance('deviceName1')
dmd.Devices.Unmonitored.createInstance('deviceName2')
commit()

Use this to create an unmonitored device, with no IP address. This is useful for devices that will act as an inventory placeholder for a Location. Also useful for creating reserved space in a cabinet, or knowing where cable trays are placed in a cabinet.

What to do before hand:

Create a device class called /Unmonitored and set the zPingMonitorIgnore and zSnmpMonitorIgnore to true on it.

Notes:

It is unknown if a device added with this method is compatible with modeling or not. Will this device simply not be modeled during modeling cycles?

 

zProperties viewing

deviceOfInterest = find('test.zenoss.loc')
deviceOfInterest.zSnmpMonitorIgnore
deviceOfInterest.zSnmpPort
deviceOfInterest.zCollectorClientTimeout

deviceOfInterest.zCollectorClientTimeout = 190
commit()

Gives value of zProperties for a specified device and can change the zProperties as seen in last example line

Other Info:

test.zenoss.loc is an example device name; replace with a real device on your zenoss system
Any zProperty should work

 

Template for next dmd command

DMD Example goes here

Placeholder for next tip or trick or example. Please do not delete this, just copy and modify it, so that it can be used as a template for all other tips added.

Other Info:

Comments (0)