Asset discovery: prerequisites to get remote inventories from network equipment

Version 2
    Share This:

    SNMP will be used to scan network equipment by the asset discovery scanners. If you want to get inventories from these devices you will need to:

     

    1- Set a community for SNMP into your Scan Configuration:

    In the console go to Asset Discovery > Configuration > Scan Configuration > _YOUR_SCAN_CONFIGURATION_ > Active Protocols then select "Network Devices (SNMP)" and click on "Add Credentials":

    - for SNMP v1 or v2: only the fields "Community" and "Confirm Community" should be set

    - for SNMP v3: all fields can be edited

     

     

    2- Check that all the OIDs we scan are available:

    If you do not get information from some of your devices although you get it from others, then make sure that all these OIDs are available on the network equipments that the asset discovery scanner will scan:

     

    .1.3.6.1.2.1.1.1.0    sysDescr (RFC1213-MIB)

    .1.3.6.1.2.1.17.1.4.1.2    dot1dBasePortIfIndex (BRIDGE-MIB)

    .1.3.6.1.2.1.17.1.4.1.2.*    dot1dBasePortIfIndex subtree (BRIDGE-MIB)

    .1.3.6.1.2.1.17.4.3.1.1    dot1dTpFdbAddress (BRIDGE-MIB)

    .1.3.6.1.2.1.17.4.3.1.2.*    dot1dTpFdbPort subtree (BRIDGE-MIB)

    .1.3.6.1.2.1.17.7.1.2.2.1.2    dot1qTpFdbPort (Q-BRIDGE-MIB)

    .1.3.6.1.2.1.17.7.1.2.2.1.3.*    dot1qTpFdbStatus subtree (Q-BRIDGE-MIB)

    .1.3.6.1.2.1.2.2.1.1    ifIndex (IF-MIB)

    .1.3.6.1.2.1.2.2.1.2.*    ifDescr subtree (IF-MIB)

    .1.3.6.1.2.1.2.2.1.3.*    ifType subtree (IF-MIB)

    .1.3.6.1.2.1.2.2.1.6.*    ifPhysAddress subtree (IF-MIB)

    .1.3.6.1.2.1.2.2.1.7.*    ifAdminStatus subtree (IF-MIB)

    .1.3.6.1.2.1.2.2.1.8.*    ifOperStatus subtree (IF-MIB)

    .1.3.6.1.2.1.47.1.2.1.1.2.*    entLogicalDescr subtree (ENTITY-MIB)

     

    These OIDs must be accessible/enabled on your network equipment else we will not be able to gather some information.

     

    "*" mean we'll scan the rest of the branch as well.

     

     

    Find an accurate list of the OIDs we scan:

    You should find a list of these OIDs when you'll set the community but it's not up to date at the moment (I requested this to be updated):

    snmp_preq.jpg

     

    If you want the most accurate list of OIDs we scan, simply go to the agent install folder on your scanner then edit the file ..\data\RemoteInventory\chl\ then edit the file snmp_connectivity.chl and search for the keyword "szOid".

     

    e.g: "szOid = ".1.3.6.1.2.1.17.1.4.1.2." + vecConnectivityTmp[j].PortNumber"

     

     

    Note: if you are not familiar with MIB you can install e.g. MIB Browser and connect to your network equipment to check if the prerequisites are met.