TECHZEN Zenoss User Community ARCHIVE  

how to add the ip address to a device through the command line

Subject: how to add the ip address to a device through the command line
Author: [Not Specified]
Posted: 2016-08-24 16:24

i haveloaded devices through the comand line

su - zenoss
zenbatchload mydevicelist.txt

how to add the ip address for the new devices through the command line



Subject: You should be able to specify
Author: Jane Curry
Posted: 2016-08-31 05:04

You should be able to specify the ip address in your "mydevicelist.txt" file. Did you create this file by hand or did it come from a zenbatchdump command If the latter, then the setManageIp field should be present.

Here's an example from one of my zenbatchload files:

'/Devices/Network/Router/Cisco' zCollectorPlugins=['zenoss.snmp.NewDeviceMap', 'zenoss.snmp.DeviceMap', 'zenoss.snmp.CiscoMap', 'zenoss.snmp.InterfaceMap', 'zenoss.snmp.RouteMap'], cJCTest='this is a test'

'group-100-r1.class.example.org' cJCTest='this is a test', setHWProductKey=('.1.3.6.1.4.1.9.1.108', 'ciscoSystems'), setLastChange=DateTime('2013/08/12 18:15:41.484501 GMT+1'), setManageIp='10.191.100.4', setOSProductKey='IOS 12.0(12)', setPriority=3, setProdState=1000, setTitle='group-100-r1.class.example.org', setPerformanceMonitor='localhost', setLocation='Kandersteg', setSystems=['/Virtual', '/Test'], setGroups=['/raddle_group']

Note the setManageIp parameter.

Cheers,

Jane

Email: jane.curry@skills-1st.co.uk    Web: https://www.skills-1st.co.uk



Subject: Troubleshoot Missing Graphs For Known Data Points On Mon device
Author: [Not Specified]
Posted: 2016-09-01 16:27

can i know the same procodure which is shown below for zenoss 5.1.x

Procedure

Perform the following:

  1. Log onto the host for the collector that monitors the device.
  2. Become the zenoss user, if necessary:
    su - zenoss
  3. Determine if the zencommand daemon is recording data.
    NOTE: The device ID is required for this command. The device ID can be determined from the Resource Manager UI, under the Infrastructure tab on the device's overview page.
    1. Run the daemon in debug mode, substitute the actual device ID for [deviceID] in the following example:
      $ zencommand run -v10 -d [deviceID] > zcommand_[deviceID].log 2>&1
    2. Review the output of the log to verify whether data is being recorded, substitute the actual device ID for [deviceID] in the following example:
      $ grep rrd zcommand_[DeviceID].log
      If there is no return from the grep command, then the collector is not receiving data from the device.This can be caused by various issues, including:
      • Incorrect preparation of the device for monitoring by Zenoss
      • A lack of connectivity between Resource Manager and the device
      • Incorrect credentials for authentication


Subject: Yes, just connect to the
Author: Jay Stanley
Posted: 2016-09-06 08:16

Yes, just connect to the zencommand container first. Also, your first question was answered. New unrelated questions should go into a new thread.



< Previous
Unable to get email alert from zenoss notification
  Next
How to reset dashboard back to default
>