logo

NJP

Retrieve Firmware version of F5 using pattern

Import · Apr 20, 2022 · article

Firmware version is not available out of the box. In case you want to populate using discovery then you need to do the following.

  • Discover F5 using SNMP V3 credentials. Open port 161 on F5 and create SNMP v3 user on F5
  • After discovering the F5, you need to create Firmware Version field. You can do it from CI class manager. Create attribute under load balancer class.
  • Now open pattern designer and look for "F5 load Balancer " pattern.
  • Under extension section click on New. (One should not do modification in base pattern)
  • Name it as Firmware version
  • Create the first step and name it as Get Firmware Version .
  • Operation : SNMP query, Variable Scalar, SNMP OID : this you will get from the discovery. In ECC queue look for SNMP - Classify: OIDs (this will have some number like 50 OID).
  • Open the record in ECC queue and explore the payload. You will find "sysDescr" with OID like 1.3.6.1.2.1.1.1.1. The OID will depends on the device.
  • Click on TEST. After the step debug successfully you need to store the value in the field.
  • Click on add step, name it update firmware version.
  • Operation: Set Parameter Value , Value $sysDescr and Name to $cmdb_ci_lb_bigip[*].u_firmware_version. You can drag these from the right column as well.
  • You can furter parse it to get specific value.
  • You can use the same to generate any info which is not present out of the box.
  • Once you update and move it production. Go to mid server and click on "Pattern Sync to Mid"

This is my first article. Suggestions/corrections will be very helpful.

image

View original source

https://www.servicenow.com/community/itom-articles/retrieve-firmware-version-of-f5-using-pattern/ta-p/2318559