manage_createDevice(context,
deviceName,
devicePath=' /Discovered ' ,
tag='
' ,
serialNumber='
' ,
zSnmpCommunity='
' ,
zSnmpPort=161,
zSnmpVer='
' ,
rackSlot=0,
productionState=1000,
comments='
' ,
hwManufacturer='
' ,
hwProductName='
' ,
osManufacturer='
' ,
osProductName='
' ,
locationPath='
' ,
groupPaths=[ ] ,
systemPaths=[ ] ,
statusMonitors=[ ' localhost ' ] ,
performanceMonitor=' localhost ' ,
discoverProto=' snmp ' ,
priority=3)
| source code
|
Device factory creates a device and sets up its relations and collects
its configuration. SNMP Community discovery also happens here. If an IP
is passed for deviceName it will be used for collection and the device
name will be set to the SNMP SysName (or ptr if SNMP Fails and ptr is
valid)
- Returns: Device
|