SNMP states

The SNMP state dictionary defines a primary state and several secondary states, which are used to define the graphic representation of predefined business objects through cascading style sheets. See The SNMP state dictionary visuals for more information.

SNMP primary states

The following selector matches all objects that have the SNMP primary state Up defined:
object."ilog.tgo.model.IltObject"["objectState.SNMP.State"=Up] {
...
}
In CSS selectors, primary states are identified by the attribute name (" objectState ") and the primary state information (" SNMP.State ").

SNMP secondary states

You can also use secondary states in the attribute selectors. Secondary states are identified by the attribute name (" objectState ") and the secondary state information. This information is based on the State Dictionary (SNMP) and the group to which the state belongs within this dictionary (Interface, IP, SNMP, EGP, TCP or UDP), as well as on the state name. See The SNMP state dictionary visuals for a complete list of available secondary states.
The following selector matches all objects that contain the secondary state Interface.InErrors :
object."ilog.tgo.model.IltObject"["objectState.SNMP.Interface.InErrors"] {
...
}
The following selector matches all objects that contain the secondary state IP.InDiscards :
object."ilog.tgo.model.IltObject"["objectState.SNMP.IP.InDiscards"] {
...
}

How to change the object representation based on SNMP states

The following CSS extract customizes the graphical representation of all telecom business objects according to the value of the SNMP secondary state InErrors. This example changes the foreground color of the object when the value of the secondary state exceeds the given thresholds.
object."ilog.tgo.model.IltObject" {
  foreground: lightGray;
}
object."ilog.tgo.model.IltObject"["objectState.SNMP.Interface.InErrors"] {
  foreground: green;
}
object."ilog.tgo.model.IltObject"["objectState.SNMP.Interface.InErrors">40] {  
  foreground: yellow;
}
object."ilog.tgo.model.IltObject"["objectState.SNMP.Interface.InErrors">70] {
  foreground: red;
}
The following figure illustrates this configuration on network elements.
snmpStyling.gif
SNMP state styling example