Published on

ServiceNow

Authors
  • Name
    Jackson Chen
How to discover F5 Load Balancer using SSH

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0781036

  1. Description F5 Load Balancer is classified using SNMP classification: "F5 BIG-IP Load Balancer", even if you would like to discover F5 using SSH.

  2. F5 Load Balancer SSH To use the "F5 Load Balancer SSH" pattern

a. please firstly open Discovery Definition 
    > CI Classification 
    > SNMP 
    > F5 BIG-IP Load Balancer 
    > Triggers probes tab 
    > change Pattern from
        F5 Load Balancer
            to
        F5 Load Balancer SSH
  1. Create SSH credential on ServiceNow instance Then, please make sure TMSH is enabled on the F5 device, and create a SSH credential on ServiceNow instance. The SSH credential should have an user that has permission to run "list" and "show" command in TMSH on the F5 device.

In out of the box configuration, "Unix Classify" is launched before SNMP classification, and pops warning messages. The warning message can be ignored. In case you would like to remove these warning messages, we recommend you to create a discovery schedule, and use discovery behavior so that the Unix Classify probe won't be launched.

To do this, you may refer to doc below:

https://docs.servicenow.com/csh?topicname=create-disco-behavior.html&version=latest

Create a Discovery behavior

In case the VIPs (Load Balancer Virtual Services) did not return as part of the SNMP Probe payload, fire the SHH Probe.

F5 BIG-IP load balancer discovery

https://docs.servicenow.com/bundle/sandiego-it-operations-management/page/product/discovery/concept/c_LoadBalancerF5BIGIP.html

Discovery and Service Mapping can find F5 BIG-IP load balancers via SNMP, SSH, and through the REST API.

For F5 Global Traffic Manager (GTM) GIB-IP load balancers, Discovery can resolve the DNS name of the F5 GTM hardware as well as the DNS names of all the servers associated with the load balancer that receive distributed traffic.

# To view this data, navigate to All > Configuration > Load Balancers > LB Hardware
    and open the F5 load balancer record. 
    Then select the DNS Names for CIs related list. 
    Service Mapping uses this information to map F5 relationships.

SSH credentials

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/product/credentials/reference/r_SSHCredentialsForm.html