From the doc for SNMP::Session,my %opt = ( DestHost => 'localhost', Community => 'public', Version => 1, Timeout => 1_000_000, UseSprintValue =>1, ## Added to print DATES );
UseSprintValue
defaults to the value of SNMP::use_sprint_value at time of session creation. set to non-zero to have return values for 'get' and 'getnext' methods formatted with the libraries sprint_value function. This will result in certain data types being returned in non-canonical format Note: values returned with this option set may not be appropriate for 'set' operations (see discussion of value formats in <vars> description section)
"For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken
In reply to Re: how I can get date in string form using SNMP::Simple
by NetWallah
in thread how I can get date in string form using SNMP::Simple
by cub.uanic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |