O'Reilly logo

Zenoss Core 3.x Network and System Monitoring by Michael Badger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Importing a list of devices with zenbatchload

So far, we've seen ways to build our device inventory through the web interface. In one case, we auto-discover everything and in the other case, we add the devices one at a time.

What if you already have a list of the SNMP capable devices by hostname or IP address? Wouldn't it be nice to import those devices. Zenoss Core can import a list of devices and attributes via the zenbatchload command.

In its simplest form, zebatchload will process a text file that lists one device per line. Here's a sample list of devices that I will call deviceList.txt:

	device01
	router02
	web03

Since zenbatchload is a Zenoss Core daemon, we need to run it as the zenoss user. Here are the commands:

su zenoss <enter zenoss user's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required