Skip to main content

ALVAO SNMP Network Discovery

This extension module uses SNMP protocol to scan network devices in a computer network, like network printers, routers, switches, etc. It consists of an SNMP Scanner application running on one or more Windows Server machines within your network infrastructure. The application regularly scans the configured IP address space, and for each scanned device it either updates or creates an object in the Objects page.

Technical requirements

  • ALVAO Asset Management
  • Alvao REST API
  • Windows Server
  • SNMP on a .NET Runtime 8 machine (SaaS and on-premise customers)

Installation

  1. Install the AlvaoSnmpScanner.msi application on a Windows Server machine, which is in a local network with the devices you want to regularly scan.
  2. In the appsettings.json file, set:
    • BaseUrl - url of the Alvao WebApp, e.g, https://contoso.onalvao.com/Alvao.
    • UserName and Password of an application account for basic authentication, or ClientId of the ME-ID application and application credentials. The used user (account) needs to have Asset Management Administrator permission.
    • IP address ranges (from/to) - the number of IP ranges is unlimited.
    • Enter all SNMP authentication methods for devices that may appear on the network.
  3. Start the service.
  4. On the Objects page, check the found devices in the Found network devices folder.
tip

You can turn off device pinging in the configuration file. (If PING is not allowed by your firewall, the scanner will not find anything. You need to turn off PING in the service settings.)

Operation

See the map for determining the type of object based on device description.

Existing devices are identified in Asset Management based on:

  • Device MAC address
  • Network name
  • IP address

The SNMP last scan object property contains a timestamp indicating when the SNMP scanner last found the device in the network.

Some property values of the objects created by the scanner are locked and cannot be manually changed. If you want to turn an object to manual tracking unlock its properties by clearing the SNMP scan property value. The scanner will no longer update such objects.

note

When scanning printers, you will get toner values (percentages) separated by commas, order of these values is determined by SNMP Object Identifiers (OIDs). While these values typically represent toner status, they may also indicate other factors such as drum wear, transfer kit usage, etc.

ALVAO object property mapping

Computer

AM PropertySNMP OIDExample ValueLogic
Hostname1.3.6.1.2.1.1.5.0 (sysName)NTB74 / NTB74.alc.localSet only during object creation. FQDN based on settings (WA-Administration -> State the domain name).
IP address192.168.0.38Value of the currently scanned live IP address.
Description1.3.6.1.2.1.1.1.0 (sysDescr)Hardware: Intel64... Software: Windows...
Total storage capacity (GB)474Calculated from 1.3.6.1.2.1.25.2.3 (hrStorageTable) - SUM(hrStorageSize x hrStorageAllocationUnits) WHERE hrStorageType=1.3.6.1.2.1.25.2.1.4.
Number of logical cores8COUNT(hrProcessorTable).
RAM size (GB)1.3.6.1.2.1.25.2.2.0 (hrMemorySize)32Value read from SNMP converted to GB.
Operating systemWindowsDetermined from sysDescr. Windows
SNMP scanYesProperty locks values read from SNMP for synchronization.
SNMP last scan2024-01-08 19:23:31+01:00Date and time of the last scan in the time zone where the scanner is running (yyyy-MM-dd-HH:mm:ss%K).

Printer

AM PropertySNMP OIDExample ValueLogic
Hostname1.3.6.1.2.1.1.5.0HPLaserJet475Only during object creation.
IP address192.168.0.154Value of the currently scanned live IP address.
Description1.3.6.1.2.1.1.1.0HP ETHERNET MULTI-ENVIRONMENT...
Model1.3.6.1.2.1.25.3.2HP LaserJet 400 color MFP M475dnUsed if hrDeviceTable contains exactly one record.
Toner level1.3.6.1.2.1.43.11.164, 17, 92, 8prtMarkerSuppliesLevel of all toners separated by commas.
Device status1.3.6.1.2.1.25.3.2.1.5.1runningDevice state: Up, Down, Warning, Running.
Printer status1.3.6.1.2.1.25.3.5.1.1.1idlePrinter state: idle, printing, warmup.
Error status1.3.6.1.2.1.25.3.5.1.2.1lowPaperError status: low Paper, noPaper, noToner, door Open, jammed, offline.
SNMP scanYesProperty locks values read from SNMP.
SNMP last scan2024-01-08 19:23:31+01:00Date and time of the last scan.

Active Network Element

AM PropertySNMP OIDExample ValueLogic
Hostname1.3.6.1.2.1.1.5.0MikrotikOnly during object creation.
IP address192.168.0.27Value of the currently scanned live IP address.
Description1.3.6.1.2.1.1.1.0RouterOS RB951Ui-2HnD
RAM size (GB)1.3.6.1.2.1.25.2.2.00.131Value read from SNMP converted to GB.
SNMP scanYesProperty locks values read from SNMP.
SNMP last scan2024-01-08 19:23:31+01:00Date and time of the last scan.

Unknown Device

AM PropertySNMP OIDExample ValueLogic
Hostname1.3.6.1.2.1.1.5.0DRTX485Only during object creation.
IP address192.168.0.58Value of the currently scanned live IP address.
Description1.3.6.1.2.1.1.1.0Cisco IOS Software...
SNMP scanYesProperty locks values read from SNMP.
SNMP last scan2024-01-08 19:23:31+01:00Date and time of the last scan.