You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use gosmi to parse/process all traps and their objects. But the node doesn't seem to hold this info.
linkDown NOTIFICATION-TYPE
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
STATUS current
DESCRIPTION
"A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { snmpTraps 3 }
Results in this json:
{
"Access": "Unknown",
"Decl": "NotificationType",
"Description": "A linkDown trap signifies that the SNMP entity, acting in\nan agent role, has detected that the ifOperStatus object for\none of its communication links is about to enter the down\nstate from some other state (but not from the notPresent\nstate). This other state is indicated by the included value\nof ifOperStatus.",
"Kind": "Notification",
"Name": "linkDown",
"Oid": [1,3,6,1,6,3,1,1,5,3],
"OidLen": 10,
"Status": "Current",
"Type": null,
"SmiType": null
}
How would it be possible to get the OBJECTS?
The text was updated successfully, but these errors were encountered:
With a raw SmiNode, you would need to call the AsNotification() function on it, which will return a struct with an Objects field set, or you can call GetNotificationObjects() on the SmiNode directly.
I'm trying to use gosmi to parse/process all traps and their objects. But the node doesn't seem to hold this info.
Results in this json:
How would it be possible to get the OBJECTS?
The text was updated successfully, but these errors were encountered: