For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

SL's avatar
SL
Icon for Cirrus rankCirrus
Jul 24, 2018

iRule Error

Hi All

I am busy implementing Cisco Tetration and required to deploy configuration on the F5.

I am following the GitHub article, https://github.com/f5devcentral/f5-tetration. I do however get a few errors when I run the scripts, thus not able to complete.

I then tried to deploy the settings manually and here I get an error when configuring the iRule. Can someone assist with what the following error refers to when deploying the iRule,

    01070151:3: Rule [/Common/irule_ipfix_tcp] error: /Common/irule_ipfix_tcp:11: error: [undefined procedure: IPFIX::destination][IPFIX::destination open -publisher /Common/ipfix-pub-1]
/Common/irule_ipfix_tcp:15: error: [undefined procedure: IPFIX::template][IPFIX::template create "flowStartMilliseconds \
sourceIPv4Address \
sourceIPv6Address \
destinationIPv4Address \
destinationIPv6Address \
sourceTransportPort \
destinationTransportPort \
protocolIdentifier \
octetTotalCount \
packetTotalCount

This is a portion of the iRule where the error appears to be when RULE_INIT { set static::http_rule1_dest "" set static::http_rule1_tmplt "" }

 CLIENT_ACCEPTED event to initiate IPFIX destination and template
when CLIENT_ACCEPTED {
  set start [clock clicks -milliseconds]
  if { $static::http_rule1_dest == ""} {
     open the logging destination if it has not been opened yet
    set static::http_rule1_dest [IPFIX::destination open -publisher /Common/ipfix-pub-1]
  }
  if { $static::http_rule1_tmplt == ""} {
     if the template has not been created yet, create the template
    set static::http_rule1_tmplt [IPFIX::template create "flowStartMilliseconds \
                                                          sourceIPv4Address \
                                                          sourceIPv6Address  \
                                                          destinationIPv4Address \
                                                          destinationIPv6Address  \
                                                          sourceTransportPort \
                                                          destinationTransportPort \
                                                          protocolIdentifier \
                                                          octetTotalCount \
                                                          packetTotalCount \
                                                          octetDeltaCount \
                                                          packetDeltaCount \
                                                          postNATSourceIPv4Address \
                                                          postNATSourceIPv6Address  \
                                                          postNATDestinationIPv4Address \
                                                          postNATDestinationIPv6Address  \
                                                          postNAPTSourceTransportPort \
                                                          postNAPTDestinationTransportPort \
                                                          postOctetTotalCount \
                                                          postPacketTotalCount \
                                                          postOctetDeltaCount \
                                                          postPacketDeltaCount \
                                                          flowEndMilliseconds"]
  }
}

Can someone assist with guiding as to where the issue might be.

Thanx

3 Replies