in reply to Re: Re: multiple set_requests snmp/perl
in thread multiple set_requests snmp/perl

tommycahir,
Well that's sort of a good sign. It means that there was nothing wrong with your original code and the problem must be elsewhere. I am not sure if $result has any meaningful information but it may be worthwhile to print $result each time through the loop. Additionally, have you checked out the snmpset script that came with Net::SNMP? The only other thing I can suggest is turn the SNMP logging for the server you are setting on way up and tail the log.

Cheers - L~R

  • Comment on Re: Re: Re: multiple set_requests snmp/perl

Replies are listed 'Best First'.
Re: Re: Re: Re: multiple set_requests snmp/perl
by tommycahir (Acolyte) on Mar 03, 2004 at 18:20 UTC
    this is the error i get in the snmpset script when i try run snmpset -c***** -v2c ***.***.***.* sysContact.0 s "Me"
    Error in packet. Reason: notWritable (that object does not support modification)
    Failed object: SNMPv2-MIB::sysContact.0
      tommycahir,
      Did you verify that the community string you are trying to write to is not read-only? I am not sure what else to tell you since it does not appear to be a code issue but a SNMP configuration problem.

      Cheers - L~R

        tanx for all the help L~R it greatly appreciated i just now got to try sort out this configuration mistake. thanking you tommy
Re: Re: Re: Re: multiple set_requests snmp/perl
by tommycahir (Acolyte) on Mar 03, 2004 at 18:46 UTC
    L~R tried the snmpset commandline tool and it wont allow me set anything but the sysName so it def not the code. i just wondering what would stop you from setting more than one value in the mib???