Bradford Ritchie wrote:
Hi,

Once an SNMP::Session object has been created, is there any way to find out
what the current parameter values are (Community, Timeout, Retries, etc.)?
Some of them have defaults (like Timeout and Retries) which are only
available in the documentation, so a program must set them explicitly to be
sure of them. I want my program to be able to report the defalut values to
the user without having them be hard-coded.

Thanks.
-- Brad


the session is just a blessed hash with keys corrsponding to data fields...

my $sess = new SNMP::Session;

print "$sess->{Community} $sess->{Timeout} $sess->{Retries}\n";

regards, GSM


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to