nbsUserSessionVia
NBS-USER-SESSION-MIB ·
.1.3.6.1.4.1.629.218.1.2.1.9
Object
column Enumeration
This object indicates the type of session. Note that this field is decided by the system, and is not stored in the utmp file.
Context
- MIB
- NBS-USER-SESSION-MIB
- OID
.1.3.6.1.4.1.629.218.1.2.1.9- Type
- column
- Access
- readonly
- Status
- current
- Parent
- nbsUserSessionEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'NBS-USER-SESSION-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NBS-USER-SESSION-MIB::nbsUserSessionVia'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'NBS-USER-SESSION-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NBS-USER-SESSION-MIB::nbsUserSessionVia.<nbsUserSessionPID>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'NBS-USER-SESSION-MIB' -M '/opt/observium/mibs/mrv:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'NBS-USER-SESSION-MIB::nbsUserSessionVia'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | notSupported |
1 | console |
2 | ssh |
3 | telnet |
4 | api |
5 | snmp |
6 | gui |