Menu

#1 snmptranslate: print SYNTAX directive from MIB

open
nobody
5
2009-02-17
2009-02-17
Amit Dor
No

Hi all.

When using snmptranslate 5.4.1 to dump the definition of a table, seems like its ignoring the SYNTAX line:

amit0 mibs # snmptranslate -Td -IR tcpConnTable
TCP-MIB::tcpConnTable
tcpConnTable OBJECT-TYPE
-- FROM TCP-MIB, RFC1213-MIB
MAX-ACCESS not-accessible
STATUS deprecated
DESCRIPTION "A table containing information about existing IPv4-
specific
TCP connections or listeners. This table has been
deprecated in favor of the version neutral
tcpConnectionTable."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) tcp(6) 13 }

amit0 mibs # grep -A 10 ^tcpConnTable /usr/share/snmp/mibs/TCP-MIB.txt
tcpConnTable OBJECT-TYPE
SYNTAX SEQUENCE OF TcpConnEntry
MAX-ACCESS not-accessible
STATUS deprecated
DESCRIPTION
"A table containing information about existing IPv4-
specific
TCP connections or listeners. This table has been
deprecated in favor of the version neutral
tcpConnectionTable."
::= { tcp 13 }

amit0 mibs # snmptranslate -V
NET-SNMP version: 5.4.1

Would be helpful if it would print it.
Thanks,
Amit

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.