t0m5k1

./discovery.php -h 26 -d -m os

May 11th, 2024 (edited)
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. librenms@m0n1t:~$ ./discovery.php -h 26 -d -m os
  2. LibreNMS Discovery
  3. SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 0.51ms]
  4.  
  5. SQL[select count(*) as aggregate from `migrations` [] 0.37ms]
  6.  
  7. SQL[select version() [] 0.45ms]
  8.  
  9. ===========================================
  10. Component | Version
  11. --------- | -------
  12. LibreNMS | 24.4.1-44-g1e3e60d59 (2024-05-09T04:17:05+01:00)
  13. DB Schema | 2024_04_22_161711_custom_maps_add_group (292)
  14. PHP | 8.1.2-1ubuntu2.17
  15. Python | 3.10.12
  16. Database | MariaDB 10.6.16-MariaDB-0ubuntu0.22.04.1
  17. RRDTool | 1.7.2
  18. SNMP | 5.9.1
  19. ===========================================
  20. DEBUG!
  21. Updating os_def.cache
  22. Override discovery modules: os
  23. SQL[SELECT * FROM `devices` WHERE disabled = 0 AND `device_id` = '26' ORDER BY device_id DESC [] 0.78ms]
  24.  
  25. ruckus-ap 26 generic SQL[select * from `devices` where `device_id` = ? limit 1 [26] 0.5ms]
  26.  
  27. SQL[select * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null [26] 0.43ms]
  28.  
  29. [FPING] '/usr/bin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '500' '-O' '0' 'ruckus-ap'
  30.  
  31. response: ruckus-ap : xmt/rcv/%loss = 3/3/0%, min/avg/max = 0.352/0.515/0.602
  32. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0']
  33. SNMPv2-MIB::sysObjectID.0 = SNMPv2-SMI::enterprises.25*.20
  34.  
  35.  
  36. Modules status: Global+
  37. OS
  38. Device
  39.  
  40. #### Load disco module core ####
  41. Attempting to initialize OS: generic
  42. OS initialized: LibreNMS\OS\Generic
  43. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-On' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0' 'SNMPv2-MIB::sysDescr.0' 'SNMPv2-MIB::sysName.0']
  44. .*.*.0 = .*.4.1.25*.20
  45. .*.*.0 = Ruckus Wireless R510
  46. .*.*.0 = badmofo
  47.  
  48.  
  49. | Ruckus Wireless R510 | .1.3.6.1.4.1.25053.3.1.5.20 |
  50.  
  51. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/arris' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.1166.1.621.14.2.0']
  52. SNMPv2-SMI::enterprises.1166.1.6* = No Such Object available on this agent at this OID
  53.  
  54.  
  55. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.8072.1.3.2.3.1.2.6.100.105.115.116.114.111']
  56. NET-SNMP-MIB::netSnmpObjects.*.*.* = No Such Object available on this agent at this OID
  57.  
  58.  
  59. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/eltek' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.12148.10.2.6.0']
  60. SNMPv2-SMI::enterprises.12*.0 = No Such Object available on this agent at this OID
  61.  
  62.  
  63. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/hikvision' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.39165.1.1.0']
  64. SNMPv2-SMI::enterprises.39* = No Such Object available on this agent at this OID
  65.  
  66.  
  67. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/orvaldi' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.21111.1.1.1.6.0']
  68. SNMPv2-SMI::enterprises.21*.6.0 = No Such Object available on this agent at this OID
  69.  
  70.  
  71. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '1.3.6.1.4.1.4515.1.3.6.1.1.1.2.0']
  72. SNMPv2-SMI::enterprises.45*.*.0 = No Such Object available on this agent at this OID
  73.  
  74.  
  75. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/primekey' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'PRIMEKEY-APPLIANCE-MIB::pkAVersion']
  76. PRIMEKEY-APPLIANCE-MIB::pkAVersion = No Such Object available on this agent at this OID
  77.  
  78.  
  79. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/ruckus' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.25053.1.2.1.1.1.1.9.0']
  80. SNMPv2-SMI::enterprises.25*.*.0 = No Such Object available on this agent at this OID
  81.  
  82.  
  83. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/supermicro' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'ATEN-IPMI-MIB::bmcMajorVesion.0']
  84. ATEN-IPMI-MIB::bmcMajorVesion.0 = No Such Object available on this agent at this OID
  85.  
  86.  
  87. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/wisi' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.7465.20.2.9.1.2.1.3.1.2']
  88. SNMPv2-SMI::enterprises.74*.*.1.2 = No Such Object available on this agent at this OID
  89.  
  90.  
  91. OS: Generic Device (generic)
  92.  
  93. Attempting to initialize OS: generic
  94. OS initialized: LibreNMS\OS\Generic
  95.  
  96. >> Runtime for discovery module 'core': 0.8250 seconds with 6936 bytes
  97. >> SNMP: [11/0.81s] MySQL: [0/0.00s] RRD: [0/0.00s]
  98. #### Unload disco module core ####
  99.  
  100. Modules status: Global+
  101. OS
  102. Device
  103.  
  104. #### Load disco module os ####
  105. Yaml location data:
  106. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-Oqv' '-M' '/opt/librenms/mibs' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysLocation.0']
  107. Study
  108.  
  109. SQL[select * from `locations` where (`location` = ?) limit 1 ["Study"] 0.5ms]
  110.  
  111. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-Ovq' '-m' 'SNMPv2-MIB' '-M' '/opt/librenms/mibs' 'udp:HOSTNAME:161' 'sysContact.0']
  112. Tom
  113.  
  114. Yaml OS data:
  115. Location: Study
  116. Hardware:
  117. OS Version:
  118. OS Features:
  119. Serial:
  120.  
  121. >> Runtime for discovery module 'os': 1.2570 seconds with 291744 bytes
  122. >> SNMP: [4/1.25s] MySQL: [1/0.00s] RRD: [0/0.00s]
  123. #### Unload disco module os ####
  124.  
  125. SQL[update `devices` set `last_discovered_timetaken` = ?, `last_discovered` = NOW() where `device_id` = ? [3.118,26] 1.13ms]
  126.  
  127. Discovered in 3.118 seconds
  128.  
  129. ./discovery.php 26 2024-05-11 12:27:38 - 1 devices discovered in 3.308 secs
  130.  
  131. SNMP [16/2.08s]: Snmpget[16/2.08s]
  132. SQL [9/0.05s]: Select[8/0.04s] Update[1/0.01s]
  133. RRD [0/0.00s]:
Advertisement
Add Comment
Please, Sign In to add comment