Re: Problem with SNMP set command

2022-08-24 Thread murali sarali
Hi,

This snmp set issue is seen only after upgrading the net-snmp library to
latest version 5.9.1( although SNMP get is working fine ).
snmpset -v 3  -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-SMI::enterprises.1751.2.117.20.1.1.3.1
However  no issue is seen with the SNMP get command with the net-snmp
library 5.9.1 version.
With the previous version of net-snmp 5.7.2 we haven't seen an issue with
the snmp set command. The snmpd.conf file remains the same for both the
versions of net-snmp 5.9.1 and 5.7.2.

Thanks

On Mon, Aug 15, 2022 at 1:38 PM murali sarali 
wrote:

> Hi,
>
> SNMP set command:
>
> snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1
>
> snmpd.conf file :
> 
>
> rwuser FMS noauth
> syslocation localhost
> syscontact Root root@localhost
> master  agentx
> sysobjectid  1.3.6.1.4.1.1751.2.117
> AgentXTimeout 60
> oldEngineID 0x06D70A0D4704
> createUser FMS  MD5 "mypassword" DES
> #createUser FMS  MD5 "mypassword" DES
> #iquerySecName FMS
> #agentSecName FMS
> defaultMonitors yes
> #linkUpDownNotifications yes
> #notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
> ifOperStatus
> #notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
> ifOperStatus
>
> #monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
> #monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>
> #trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
> trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16
>
> Thanks,
>
> On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:
>
>> Make sur the user/community has read-write access in snmpd.conf file.
>>
>> On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
>> wrote:
>>
>>> Hi,
>>>
>>> SNMP set command is failing with this error :
>>> Error in packet.
>>>
>>> Reason: notWritable (That object does not support modification)
>>>
>>> Failed object:
>>> Can you please help.
>>>
>>> Thanks,
>>>
>>> ___
>>> Net-snmp-users mailing list
>>> Net-snmp-users@lists.sourceforge.net
>>> Please see the following page to unsubscribe or change other options:
>>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>>
>>
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-16 Thread Feroz
Looks like the OID itself is not writable. Can you try with other OID's.

SNMPv2-SMI::enterprises.1751.2.117.20.1.1.3.1

-Feroz

On Tue, Aug 16, 2022 at 9:23 AM murali sarali 
wrote:

> Hi,
>
> I have modified snmpd.conf by replacing oldEngineID with :
>
> *engineID  8000b85c03d0672649a01e*
>
> Or
>
> exactEngineID 0xf5717f06fdc6db4a4600
>
> But still I am getting the same error.
>
> Error in packet.
> Reason: notWritable (That object does not support modification)
> Failed object: SNMPv2-SMI::enterprises.1751.2.117.20.1.1.3.1
>
>
> On Mon, Aug 15, 2022 at 7:49 PM Feroz  wrote:
>
>> This is wrong.
>>
>> oldEngineID 0x06D70A0D4704
>>
>> Should be
>>
>> *engineID  8000b85c03d0672649a01e*
>>
>> Or
>>
>> exactEngineID 0xf5717f06fdc6db4a4600
>>
>>
>> On Mon, 15 Aug, 2022, 1:38 pm murali sarali, 
>> wrote:
>>
>>> Hi,
>>>
>>> SNMP set command:
>>>
>>> snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i
>>> 1
>>>
>>> snmpd.conf file :
>>> 
>>>
>>> rwuser FMS noauth
>>> syslocation localhost
>>> syscontact Root root@localhost
>>> master  agentx
>>> sysobjectid  1.3.6.1.4.1.1751.2.117
>>> AgentXTimeout 60
>>> oldEngineID 0x06D70A0D4704
>>> createUser FMS  MD5 "mypassword" DES
>>> #createUser FMS  MD5 "mypassword" DES
>>> #iquerySecName FMS
>>> #agentSecName FMS
>>> defaultMonitors yes
>>> #linkUpDownNotifications yes
>>> #notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
>>> ifOperStatus
>>> #notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
>>> ifOperStatus
>>>
>>> #monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
>>> #monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>>>
>>> #trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
>>> trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16
>>>
>>> Thanks,
>>>
>>> On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:
>>>
 Make sur the user/community has read-write access in snmpd.conf file.

 On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
 wrote:

> Hi,
>
> SNMP set command is failing with this error :
> Error in packet.
>
> Reason: notWritable (That object does not support modification)
>
> Failed object:
> Can you please help.
>
> Thanks,
>
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>


-- 
Regards,
Feroz Ahmed
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-15 Thread murali sarali
Hi,

I have modified snmpd.conf by replacing oldEngineID with :

*engineID  8000b85c03d0672649a01e*

Or

exactEngineID 0xf5717f06fdc6db4a4600

But still I am getting the same error.

Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-SMI::enterprises.1751.2.117.20.1.1.3.1


On Mon, Aug 15, 2022 at 7:49 PM Feroz  wrote:

> This is wrong.
>
> oldEngineID 0x06D70A0D4704
>
> Should be
>
> *engineID  8000b85c03d0672649a01e*
>
> Or
>
> exactEngineID 0xf5717f06fdc6db4a4600
>
>
> On Mon, 15 Aug, 2022, 1:38 pm murali sarali, 
> wrote:
>
>> Hi,
>>
>> SNMP set command:
>>
>> snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1
>>
>> snmpd.conf file :
>> 
>>
>> rwuser FMS noauth
>> syslocation localhost
>> syscontact Root root@localhost
>> master  agentx
>> sysobjectid  1.3.6.1.4.1.1751.2.117
>> AgentXTimeout 60
>> oldEngineID 0x06D70A0D4704
>> createUser FMS  MD5 "mypassword" DES
>> #createUser FMS  MD5 "mypassword" DES
>> #iquerySecName FMS
>> #agentSecName FMS
>> defaultMonitors yes
>> #linkUpDownNotifications yes
>> #notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
>> ifOperStatus
>> #notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
>> ifOperStatus
>>
>> #monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
>> #monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>>
>> #trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
>> trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16
>>
>> Thanks,
>>
>> On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:
>>
>>> Make sur the user/community has read-write access in snmpd.conf file.
>>>
>>> On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
>>> wrote:
>>>
 Hi,

 SNMP set command is failing with this error :
 Error in packet.

 Reason: notWritable (That object does not support modification)

 Failed object:
 Can you please help.

 Thanks,

 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users

>>>
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-15 Thread Feroz
This is wrong.

oldEngineID 0x06D70A0D4704

Should be

*engineID  8000b85c03d0672649a01e*

Or

exactEngineID 0xf5717f06fdc6db4a4600


On Mon, 15 Aug, 2022, 1:38 pm murali sarali,  wrote:

> Hi,
>
> SNMP set command:
>
> snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1
>
> snmpd.conf file :
> 
>
> rwuser FMS noauth
> syslocation localhost
> syscontact Root root@localhost
> master  agentx
> sysobjectid  1.3.6.1.4.1.1751.2.117
> AgentXTimeout 60
> oldEngineID 0x06D70A0D4704
> createUser FMS  MD5 "mypassword" DES
> #createUser FMS  MD5 "mypassword" DES
> #iquerySecName FMS
> #agentSecName FMS
> defaultMonitors yes
> #linkUpDownNotifications yes
> #notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
> ifOperStatus
> #notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
> ifOperStatus
>
> #monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
> #monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>
> #trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
> trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16
>
> Thanks,
>
> On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:
>
>> Make sur the user/community has read-write access in snmpd.conf file.
>>
>> On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
>> wrote:
>>
>>> Hi,
>>>
>>> SNMP set command is failing with this error :
>>> Error in packet.
>>>
>>> Reason: notWritable (That object does not support modification)
>>>
>>> Failed object:
>>> Can you please help.
>>>
>>> Thanks,
>>>
>>> ___
>>> Net-snmp-users mailing list
>>> Net-snmp-users@lists.sourceforge.net
>>> Please see the following page to unsubscribe or change other options:
>>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>>
>>
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-15 Thread Feroz
For auth-priv the setcmd would be as follows:
Check the man pages, for *auth-no-priv *and *no-auth-no-priv *options.

snmpset -v3 -u FSM -a MD5 -A user123 -x AES -X user123 -l *authPriv *127.0.0.1
IF-MIB::ifAdminStatus.3 i 1

On Mon, Aug 15, 2022 at 1:38 PM murali sarali 
wrote:

> Hi,
>
> SNMP set command:
>
> snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1
>
> snmpd.conf file :
> 
>
> rwuser FMS noauth
> syslocation localhost
> syscontact Root root@localhost
> master  agentx
> sysobjectid  1.3.6.1.4.1.1751.2.117
> AgentXTimeout 60
> oldEngineID 0x06D70A0D4704
> createUser FMS  MD5 "mypassword" DES
> #createUser FMS  MD5 "mypassword" DES
> #iquerySecName FMS
> #agentSecName FMS
> defaultMonitors yes
> #linkUpDownNotifications yes
> #notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
> ifOperStatus
> #notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
> ifOperStatus
>
> #monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
> #monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>
> #trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
> trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16
>
> Thanks,
>
> On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:
>
>> Make sur the user/community has read-write access in snmpd.conf file.
>>
>> On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
>> wrote:
>>
>>> Hi,
>>>
>>> SNMP set command is failing with this error :
>>> Error in packet.
>>>
>>> Reason: notWritable (That object does not support modification)
>>>
>>> Failed object:
>>> Can you please help.
>>>
>>> Thanks,
>>>
>>> ___
>>> Net-snmp-users mailing list
>>> Net-snmp-users@lists.sourceforge.net
>>> Please see the following page to unsubscribe or change other options:
>>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>>
>>

-- 
Regards,
Feroz Ahmed
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-15 Thread Feroz
looks like createUser is causing a problem.

Try this

*For auth-priv:*
createUser testuser MD5 user@123 AES user@123
rwuser testuser priv

or

*For no-auth-no-priv:*
createuser user123
rwuser user123 noauth

or

*For auth-no-priv:*
createUser FSM SHA passwd123
rwuser FSM auth


On Mon, Aug 15, 2022 at 1:38 PM murali sarali 
wrote:

> Hi,
>
> SNMP set command:
>
> snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1
>
> snmpd.conf file :
> 
>
> rwuser FMS noauth
> syslocation localhost
> syscontact Root root@localhost
> master  agentx
> sysobjectid  1.3.6.1.4.1.1751.2.117
> AgentXTimeout 60
> oldEngineID 0x06D70A0D4704
> createUser FMS  MD5 "mypassword" DES
> #createUser FMS  MD5 "mypassword" DES
> #iquerySecName FMS
> #agentSecName FMS
> defaultMonitors yes
> #linkUpDownNotifications yes
> #notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
> ifOperStatus
> #notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
> ifOperStatus
>
> #monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
> #monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>
> #trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
> trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16
>
> Thanks,
>
> On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:
>
>> Make sur the user/community has read-write access in snmpd.conf file.
>>
>> On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
>> wrote:
>>
>>> Hi,
>>>
>>> SNMP set command is failing with this error :
>>> Error in packet.
>>>
>>> Reason: notWritable (That object does not support modification)
>>>
>>> Failed object:
>>> Can you please help.
>>>
>>> Thanks,
>>>
>>> ___
>>> Net-snmp-users mailing list
>>> Net-snmp-users@lists.sourceforge.net
>>> Please see the following page to unsubscribe or change other options:
>>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>>
>>

-- 
Regards,
Feroz Ahmed
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-15 Thread Paul Herring
> 1.3.6.1.4.1.1751.2.117.20.1.1.3.1

How does the MIB describe that point? (Google isn't showing anything past
1.3.6.1.4.1.1751.2.X , with 117 not
being an X, and I don't recognise what they are.)

I suspect it's not writable (at the moment) - at least that's certainly
what the error message indicates.

On Mon, Aug 15, 2022 at 9:10 AM murali sarali 
wrote:

> Hi,
>
> SNMP set command:
>
> snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1
>
> snmpd.conf file :
> 
>
> rwuser FMS noauth
> syslocation localhost
> syscontact Root root@localhost
> master  agentx
> sysobjectid  1.3.6.1.4.1.1751.2.117
> AgentXTimeout 60
> oldEngineID 0x06D70A0D4704
> createUser FMS  MD5 "mypassword" DES
> #createUser FMS  MD5 "mypassword" DES
> #iquerySecName FMS
> #agentSecName FMS
> defaultMonitors yes
> #linkUpDownNotifications yes
> #notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
> ifOperStatus
> #notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
> ifOperStatus
>
> #monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
> #monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>
> #trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
> trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16
>
> Thanks,
>
> On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:
>
>> Make sur the user/community has read-write access in snmpd.conf file.
>>
>> On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
>> wrote:
>>
>>> Hi,
>>>
>>> SNMP set command is failing with this error :
>>> Error in packet.
>>>
>>> Reason: notWritable (That object does not support modification)
>>>
>>> Failed object:
>>> Can you please help.
>>>
>>> Thanks,
>>>
>>> ___
>>> Net-snmp-users mailing list
>>> Net-snmp-users@lists.sourceforge.net
>>> Please see the following page to unsubscribe or change other options:
>>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>>
>> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>


-- 
PJH
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-15 Thread murali sarali
Hi,

SNMP set command:

snmpset -v 3 -u FMS -n FMS 127.0.0.1 1.3.6.1.4.1.1751.2.117.20.1.1.3.1 i 1

snmpd.conf file :


rwuser FMS noauth
syslocation localhost
syscontact Root root@localhost
master  agentx
sysobjectid  1.3.6.1.4.1.1751.2.117
AgentXTimeout 60
oldEngineID 0x06D70A0D4704
createUser FMS  MD5 "mypassword" DES
#createUser FMS  MD5 "mypassword" DES
#iquerySecName FMS
#agentSecName FMS
defaultMonitors yes
#linkUpDownNotifications yes
#notificationEvent  linkUpTraplinkUp   ifIndex ifAdminStatus
ifOperStatus
#notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus
ifOperStatus

#monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
#monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2

#trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:162
trapsess -Ci -v3 -u FMS -n FMS 100.74.128.84:16

Thanks,

On Mon, Aug 15, 2022 at 11:09 AM Feroz  wrote:

> Make sur the user/community has read-write access in snmpd.conf file.
>
> On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
> wrote:
>
>> Hi,
>>
>> SNMP set command is failing with this error :
>> Error in packet.
>>
>> Reason: notWritable (That object does not support modification)
>>
>> Failed object:
>> Can you please help.
>>
>> Thanks,
>>
>> ___
>> Net-snmp-users mailing list
>> Net-snmp-users@lists.sourceforge.net
>> Please see the following page to unsubscribe or change other options:
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>
>
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with SNMP set command

2022-08-14 Thread Feroz
Make sur the user/community has read-write access in snmpd.conf file.

On Sun, 14 Aug, 2022, 10:03 pm murali sarali, 
wrote:

> Hi,
>
> SNMP set command is failing with this error :
> Error in packet.
>
> Reason: notWritable (That object does not support modification)
>
> Failed object:
> Can you please help.
>
> Thanks,
>
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users