Help!Can I parse oid_index from vary length OID?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
lyking
Posts: 2
Joined: Fri Mar 02, 2018 12:58 pm

Help!Can I parse oid_index from vary length OID?

Post by lyking »

Hello everyone, I got truble on parsing oid_index from vary length OID.
Example as follow:
[CACTI ~]$ snmpwalk -v 2c -Ob -Cc -c [community] x.x.x.x 1.3.6.1.4.1.3902.3.6000.600.2.3.1.1
SNMPv2-SMI::enterprises.3902.3.6000.600.2.3.1.1.1.12.99.103.110.45.111.117.116.45.49.48.48.48 = STRING: "cgn-out-1000"
SNMPv2-SMI::enterprises.3902.3.6000.600.2.3.1.1.1.11.99.103.110.45.111.117.116.45.49.49.48 = STRING: "cgn-out-110"

How can I construct the OID/REGEXP for Data query?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Help!Can I parse oid_index from vary length OID?

Post by netniV »

Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
lyking
Posts: 2
Joined: Fri Mar 02, 2018 12:58 pm

Re: Help!Can I parse oid_index from vary length OID?

Post by lyking »

Great! It works! Thanks a lot!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests