in reply to how I can get date in string form using SNMP::Simple

When creating the SNMP Session variable, add the option UseSprintValue =>1.
my %opt = ( DestHost => 'localhost', Community => 'public', Version => 1, Timeout => 1_000_000, UseSprintValue =>1, ## Added to print DATES );
From the doc for SNMP::Session,

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
    "There are more things in heaven and earth, Horatio,
    Than are dreamt of in your philosophy."
         -- William Shakespeare, Hamlet"


    Thanks for your useful answer.

    --
    cub.uanic