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

i tried that code L~R but as before it only sets the first value.. anybody help me before i crack up ere.
  • Comment on Re: Re: multiple set_requests snmp/perl

Replies are listed 'Best First'.
Re: Re: Re: multiple set_requests snmp/perl
by Limbic~Region (Chancellor) on Mar 03, 2004 at 18:07 UTC
    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

      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

      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???