Limiting the results in snmptable Reg:

2021-09-23 Thread murali v
Hi There, I'm trying to fetch a routing table from a Cisco router using IP-FORWARDING-MIB => ipCidrRouteTable, which has got tens of lakhs of records. using the snmptable command. using the below command, snmptable -m +IP-FORWARD-MIB -v2c -c public 192.168.0.1 1.3.6.1.2.1.4.24.4 -Cf , >

Re: Limiting the results in snmptable Reg:

2021-09-23 Thread Paul Herring
Using the net-snmp provided tools: For snmptable itself: the following may be of interest (but probably not,) however you're still going to get every single line: http://www.net-snmp.org/docs/man/snmptable.html *-CB* Do not use GETBULK requests to retrieve data, only GETNEXT. [...] > *-Cr**