I am trying to get Nedi writting aliases in our extreme switches.
I have write and read snmp access working via snmpv3
I got the cfgwrt and cfgchg setup in the definition file, but they are strings with Dates.
Extreme times are in STRINGS:
https://extremeportal.force.com/ExtrArticleDetail?an=000084327My String are looking like this:
STRING: "Fri Oct 7 10:24:55 2022
"
STRING: "Sat Oct 1 10:39:10 2022
"
I found the libmisc.pm:
elsif($v[0] eq "CfgChg") {$sysobj{$so}{cc} = $v[1]}
v[0] is the setting in the def file = "CfgChg"
so v[1] is the "1.3.6.1.4.1.1916.1.42.1.2.1.2.1"
then {$sysobj{$so}{cc} will be:
something like:'
iso.3.6.1.4.1.1916.1.42.1.2.1.2.1 = STRING: "Tue Oct 11 13:50:09 2022
"
'
So my problem is more in libsnmp....
if( defined $r->{$misc::sysobj{$so}{cc}} ){
if( $r->{$misc::sysobj{$so}{cc}} !~ /^\d+$/ ){ misc::Prt("ERR :Config change1, $err\n","Sc");
Here my value is filtered out, as the String Date field is not compliant with what remo is doing...
Does someone has a hint for how i can add it into libsnmp?
Perhaps someone already did that?