Forum Discussion
Angel_Lopez_116
Apr 01, 2014Altostratus
Exec of awk to return value of custom snmp oid
Hi,
I've defined a custom oid in /config/snmp/custom_mib.tcl as follows:
register_mib ".1" limitconn GAUGE
proc limitconn {}
{
set status [catch {exec tail -1 /var/log/irule_limitconn ...
chris01_159200
Jun 10, 2014Nimbostratus
Actually in my situation it wasn't a problem with awk, instead the bash interpreter did not like any quotes when used with part of a grep statement. Have you tried not escaping the single quotes to see if the command runs properly?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects