Errors compiling Palo Alto mibs for panHostId and panSerialNo in Spectrum OneClick

book

Article ID: 144612

calendar_today

Updated On:

Products

CA eHealth CA Spectrum

Issue/Introduction

When compiling the palo alto PAN-TRAPS.my mib in OneClick the compiler errors with the following:

Could not resolve 'panHostId' within the trap 'panGlobalprotectTrap'. Check for a misspelling or a missing IMPORT statement.
Could not resolve 'panSerialNo' within the trap 'panGlobalprotectTrap'. Check for a misspelling or a missing IMPORT statement.

Cause

No definition for panHostID or panSerialNo in the mibs.

Environment

Release : 10.3

Component : Spectrum Core / SpectroSERVER

Resolution

Remove the panHostId and panSerialNo objects from the panGlobalProtectTrap:

 panGlobalprotectTrap NOTIFICATION-TYPE
    OBJECTS {
   panReceiveTime, panSerial, panEventType, panEventSubType, panVsys, panSeqno, panActionflags, panHostname, panSystemEventId, panGlobalProtectStatus, panGlobalProtectStage, panGlobalProtectAuthMethod, panGlobalProtectTunnelType, panGlobalProtectPortal, panSrcUser, panGlobalProtectSrcRegion, panHipMachineName, panGlobalProtectPublicIP, panGlobalProtectPublicIPv6, panGlobalProtectPrivateIP, panGlobalProtectPrivateIPv6, panHostId, panSerialNo, panGlobalProtectClientVersion, panGlobalProtectClientOSVersion, panLogForwardingProfile, panRepeatCount, panGlobalProtectLoginDuration, panGlobalProtectConnectMethod, panGlobalProtectReason, panGlobalProtectLocation, panGlobalProtectErrorCode, panGlobalProtectError, panSystemDescription
   }
  STATUS   current
  DESCRIPTION
    "A Globalprotect event trap."
  ::={panCommonEventEventsV2 12}

Once they are removed, you can then successfully compile and import the mib in mibtools.

Additional Information

The Palo Alto traps are available here:

https://docs.paloaltonetworks.com/resources/snmp-mib-files