Network switch discovery using patterns

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:14分
  • The Discovery and Service Mapping Patterns application uses the Network Switch pattern to find network switches in your environment. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.

    Request apps on the Store

    Visit the ServiceNow Store to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.

    To learn about network switches and their versions that you can discover, refer to Detailed information on products discovered by ITOM Visibility.

    For information on probe-based network switch and router discovery, see Network switch and router discovery.

    Prerequisites

    Verify that the applications are up to date
    • Discovery and Service Mapping Patterns
    • Visibility Content
    Verify IP address information
    The switch must contain IP address information for successful discovery.
    Verify that exit interface routing rules are configured and reachable
    The switch that provides the IP address must have exit interface routing rules configured and be reachable for successful discovery.
    Create SNMP credentials
    Create SNMP Community Credentials or SNMPv3 credentials. For more information, see SNMP credentials.
    Configure properties for switch discovery
    Navigate to sys_properties.list and verify that the glide.discovery.L3_mapping system property is set to true.

    You can configure these additional properties for network switch discovery.

    Property Description
    glide.discovery.max_concurrent_invocations_per_schedule Sets a maximum number of scheduled invocations for the same Discovery schedule. It prevents a backlog of scheduled runs if Discovery does not finish before the next one starts.

    The value is an integer that represents the max number of automated invocations that can run concurrently for the same schedule. If the limit is reached, subsequent scheduled invocations are canceled. A value of 0 or any negative number disables this property.

    • Type: integer
    • Default value: 3
    • Location: Discovery Definition > Properties
    注:
    This property does not apply to schedules that have a 'Run after' configuration set to 'Even if canceled'.
    glide.discovery.bgp_router_disable Disables running the SNMP – Routing pattern when discovering a router running the BGP protocol.

    If you must populate the Device Neighbors [discovery_device_neighbors] table during horizontal layer 2 discovery of the BGP-enabled devices, set the BGP router exploration disable property to No. Notice that enabling this property can cause performance issues including out-of-memory issues on the MID Server.

    • Type: true | false
    • Default value: true
    • Location: Discovery Definition > Properties

    Discovering stacked switches

    Network switch discovery supports Cisco stacked switches. Multiple switches in the stack are identified by the primary IP address. Discovery identifies each member of the stack by elements such as the primary IP address, a name associated with the switch, and the stack mode. The relationship is created between a primary switch and the secondary switches.

    The primary switch has all the fields listed in the IP Switch [cmdb_ci_ip_switch] table. The secondary switch has name, serial_number, model_id, manufacturer, stack, and stack_mode.
    注:
    If all ports on a switch are open for port 161, the switch has an IP per port, but the same serial number is used across all ports. The configuration item (CI) identification is based on the serial number, therefore, discovery updates the existing record every time instead of creating a new one.

    Data collected by Discovery during horizontal discovery

    Discovery populates the data in the CMDB when running the Network Switch pattern.

    表 : 1. IP Switch [cmdb_ci_ip_switch]
    Field Description
    Name [name] Name of the switch.
    Model ID [model_id] Hardware model ID of the switch.
    Manufacturer [manufacturer] Switch manufacturer.
    Install Status [install_status] Install status of the device. Default value is Installed.
    Serial number [serial_number] Unique hardware serial number of the router.
    IP Address [ip_address] IP addresses assigned to interfaces.
    Description [short_description] Device description.
    Can route IP [can_route] Indicates whether the IP pockets can be routed between networks. Possible values are true or false.
    Can partition VLANs [can_partitionvlans] Indicates whether the local area network (LAN) can be partitioned. Possible values are true or false.
    Can switch IP [can_switch] Indicates whether a network device has Layer 2 switching capabilities. Possible values are true or false.
    Physical interface count [physical_interface_count] Number of physical interfaces.
    Ports [ports] Individual network interface (physical or logical) used to connect devices such as computers, servers, access points, or uplinks to switches or routers.
    Discovery Protocol ID [discovery_proto_id] Unique identifier of the device participating in the Cisco Discovery Protocol (CDP) or Link Layer Discovery Protocol (LLDP) protocol.
    Discovery Protocol Type [discovery_proto_type] Protocol type. Possible values are CDP or LLDP.
    Stack [stack] Indicates whether a network device is part of a stacked group of switches operating as one unit. Possible values are true or false.
    Stack Mode [stack_mode] Stacking architecture or role of a network device within a stack. For example: standalone, stack_master, or stack_member.
    Location [location] Location where the switch is installed.
    表 : 2. IP Address [cmdb_ci_ip_address]
    Field Description
    IP Address [ip_address] IP address of the network switch.
    Netmask [netmask] Netmask of the network switch.
    Nic [nic] References the Network Adapter [cmdb_ci_network_adapter] table.
    表 : 3. Network Adapter [cmdb_ci_network_adapter]
    Field Description
    Name [name] Name of the network adapter.
    IP Address [ip_address] IP address of the network adapter.
    Netmask [netmask] Netmask of the network adapter.
    MAC Address [mac_address] MAC address of the network adapter.
    Alias [alias] User-assigned name for the network adapter.
    Configuration Item [cmdb_ci] References the IP Switch [cmdb_ci_ip_switch] table.
    表 : 4. DNS Name [cmdb_ci_dns_name]
    Field Description
    Name [name] Name of the Domain Name System (DNS).
    IP Address [ip_address] IP address of the DNS.

    CI relationships

    Discovery creates these relationships to support the network switch discovery.

    CI Relationship CI
    Exit Interface Routing Rule [dscy_route_interface] References IP Switch [cmdb_ci_ip_switch]
    IP Address [cmdb_ci_ip_address] References Network Adapter [cmdb_ci_network_adapter]
    IP Switch [cmdb_ci_ip_switch] Contains::Contained by Switch Forwarding Rule [dscy_swtch_fwd_rule]
    IP Switch [cmdb_ci_ip_switch] Contains::Contained by Switch Partition [dscy_swtch_partition]
    IP Switch [cmdb_ci_ip_switch] Contains::Contained by Switchport [dscy_switchport]
    IP Switch [cmdb_ci_ip_switch] Owns::Owned by IP Address [cmdb_ci_ip_address]
    IP Switch [cmdb_ci_ip_switch] Owns::Owned by Network Adapter [cmdb_ci_network_adapter]
    IP Switch [cmdb_ci_ip_switch] Uses::Used by Exit Interface Routing Rule [dscy_route_interface]
    IP Switch [cmdb_ci_ip_switch] Uses::Used by Next Hop Routing Rule [dscy_route_next_hop]
    IP Switch [cmdb_ci_ip_switch] Uses::Used by Router Interface [dscy_router_interface]
    Network Adapter [cmdb_ci_network_adapter] Owns::Owned by IP Address [cmdb_ci_ip_address]
    Network Adapter [cmdb_ci_network_adapter] References IP Switch [cmdb_ci_ip_switch]
    Network ARP Table [discovery_net_arp_table] References IP Switch [cmdb_ci_ip_switch]
    Next Hop Routing Rule [dscy_route_next_hop] References IP Switch [cmdb_ci_ip_switch]
    Router Interface [dscy_router_interface] References IP Switch [cmdb_ci_ip_switch]
    Serial Number [cmdb_serial_number] References IP Switch [cmdb_ci_ip_switch]
    Switch Bridge Port Table [discovery_switch_bridge_port_table] References IP Switch [cmdb_ci_ip_switch]
    Switch Forwarding Rule [dscy_swtch_fwd_rule] References IP Switch [cmdb_ci_ip_switch]
    Switch Forwarding Table [discovery_switch_fwd_table] References IP Switch [cmdb_ci_ip_switch]
    Switch Partition [sdcy_swtch_partition] References IP Switch [cmdb_ci_ip_switch]
    Switch Spanning Tree Table [discovery_switch_spanning_tree_table] References IP Switch [cmdb_ci_ip_switch]
    Switchport [dscy_switchport] References IP Switch [cmdb_ci_ip_switch]