in reply to how I can get date in string form using SNMP::Simple
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how I can get date in string form using SNMP::Simple
by cub.uanic (Acolyte) on Mar 07, 2006 at 07:33 UTC |