How to solve Status = 17, Index = 1, Status Text = Not writable? - snmp

I am using SNMP4J client to access the SNMP SET method https://wiki.opendaylight.org/view/SNMP_Plugin:Getting_Started#SNMP_SET
which use to update the OIDs.
As mention in http://www.it-slav.net/blogs/2009/02/05/install-and-configure-snmp-on-ubuntu/, I installed snmp.
I set the community as "rwcommunity private" in /etc/snmp/snmpd.conf
Eventhough I am getting the below error
Status = 17, Index = 1, Status Text = Not writable
How to resolve this?

SNMP error status 17, means that the object you are trying to set exists, but it is not writable.
It all depends on what object you are trying to set and whether it is actually writable.

Related

Why is Launch Darkly giving this error [LDClient] Client has not finished initializing; feature store unavailable?

I'm using Launch Darkly's ruby sdk as follows:
#client = LaunchDarkly::LDClient.new(<sdk_key>)
hash = Hash.new
#client.variation('flag_name', hash, false)
However, I keep getting an error stating
[LDClient] Client has not finished initializing; feature store unavailable, returning default value
Does anyone know why this is the case? Thank you!

Access Based Share Enum in samba on Macos

I'm trying to set up a samba server on an M1 Mac. Have installed samba via homebrew.
Users and groups have been added to the OS, and then users added to samba via smbpasswd.
Everything works as expected. Users are allowed into shares to which their groups have permissions (using groups on the directory) and denied when they don't. So far, so good.
Everything breaks when I try to hide shares the user doesn't have access to, by adding 'access based share enum = yes' to the global section in smb.conf.
Then client returns an error saying "There are no shares available or you are not allowed to access them on the server."
The frustrating bit is that I have had it working, but I'm starting to lose the will!
Any suggestions?
smb.conf below
[global]
workgroup = WORKGROUP
security = user
passdb backend = tdbsam
inherit permissions = yes
inherit owner = yes
ea support = yes
min protocol = SMB2
vfs objects = fruit streams_xattr
#fruit:metadata = stream
#fruit:model = MacSamba
#fruit:posix_rename = yes
#fruit:wipe_intentionally_left_blank_rfork = yes
#fruit:veto_appledouble = no
#fruit:delete_empty_adfiles = yes
access based share enum = yes
max log size = 100000
[IT_application]
path = /Volumes/WORKFLOW/data/shares/IT
valid users = #workflow_it
force group = workflow_it
read only = no
browseable = yes
public = no
writeable = yes
what happens when you remove the valid users = #workflow_it & force group = workflow_it option?
There was a regression related to reading the share_info.tdb file. It was fixed a few weeks ago so it should show up in the 4.16.9 and 4.17.5 releases.
https://bugzilla.samba.org/show_bug.cgi?id=15265
While I wouldn't recommend it in a production system I can confirm that chmod 666 on share_info.tdb does in fact restore the expected behavior.

The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted

I'm trying to send a message to a queue using a Message object and am getting the error
The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted.
Here is the code.
Order ord = new Order(new Guid(), "Smith & Smith");
Message orderMessage = new Message(ord);
orderMessage.UseEncryption = true;
orderMessage.EncryptionAlgorithm = EncryptionAlgorithm.Rc2;
orderMessage.Recoverable = true;
orderMessage.Priority = MessagePriority.VeryHigh;
orderMessage.TimeToBeReceived = TimeSpan.FromHours(1);
orderMessage.UseJournalQueue = true;
orderMessage.Body = "Test Encryption";
queue.Send(orderMessage, "Encrypted Order");
Any help with this is appreciated.
Tom
Did you ever solve this? I came across this problem myself and found out I needed to use (just like the error says) a different format name.
The strange thing was that if I set UseAuthentication property using the MQ certificate, then it worked. But if I also wanted to set UseEncryption, then it did not work.
You do not specify your queue/server setup/formats, but I suspect you're trying to send from one machine to another machine's public queue within the same domain, using DIRECT formatname? As the MQ Manager will use the domain AD to lookup the certificate and queue details, it raises an exception as the format name is invalid (not the same as specified in the AD). So instead of using the direct format, use the queue ID to define the formatname. I switched this:
"FormatName:Direct=TCP:111.222.1.22\your_public_queue"
with this:
"FormatName:PUBLIC=7EB2A53C-7593-462C-A568-5A0EFA26D91D"
Now it worked. You can find your queue ID by right-clicking your queue on the receiver machine and then go to Properties->General and see the value specified in field "ID".
I have found that getting the FormatName correct whether public or private in nature will save hours of work. It's incredibly important to understand the setup of each (Public requiring AD and private does not when access remotely). This is a great summary of FormatName.
https://blogs.msdn.microsoft.com/johnbreakwell/2009/02/26/difference-between-path-name-and-format-name-when-accessing-msmq-queues/
One note on this issue, if your queue format name starts this way: "FormatName:Direct=" then you will receive the error "The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted" if you try to access the queue's QueueName property. Use the queue's FormatName property instead.

net-snmp security name too long: what is the max length of security name

I am configuring net-snmp.
Below is my snmpd.conf:
#com2sec NAME SOURCE COMMUNITY
com2sec sec_localuser_localhost 127.0.0.1 localuser
com2sec sec_testuser_tests.sse.hin.hellomi.com 127.0.0.1 testuser
#group NAME MODEL SECURITY
group grp1 v2c sec_localuser_localhost
group testgroup v2c sec_testuser_tests.sse.hin.hellomi.com
#view NAME TYPE SUBTREE [MASK]
view all included .iso
view iso included .all
#access NAME CONTEXT MODEL LEVEL PREFX READ WRITE NOTIFY
access grp1 "" any noauth exact all - all
access testgroup "" any noauth exact all all all
in the log of messages, I could find the following error:
snmpd.conf: line 6: Error: security name too long
So it means the hostname: tests.sse.hin.hellomi.com is too long
My question is: What is the maximum length for the security name? I tried from google, but I found nothing about the maximum length.
Anyway, I know I can test to find the maximum length, but I just wonder if there is any formal limit on the maximum length.
Thanks!
SECNAME is an internal security identifier it identify a SNMP communauty (you are using localuser it's generaly public or private) comming from a computer (127.0.0.1) so why do you want to map it to a computername.
If you absolutly want to know the limit length, Net-SNMP is open source, so you can grep the error message into the sources.
The limit is the same as an SnmpAdmingString, 32 characters.

CustomActionData does not seem to be populated or accessable by my vbscript

Ok, this is driving me crazy.
I have a CA that needs to know the path of the INSTALLDIR to edit an XML file.
So, I set up a set property custom action that sets a property named RemoveAuthTypesNode to [INSTALLDIR]. Then I have a RemoveAuthTypesNode CA that is sequenced after SetConfigFolder (a set property that sets installdir to a system searched path) in the Install Execute Sequence, Deferred in System Context (doesn't work when just Deferred Exec either).
In the log I see that RemoveAuthTypesNode is set:
MSI (c) (D4:EC) [16:12:05:314]:
PROPERTY CHANGE: Adding
RemoveAuthTypesNode property. Its
value is 'C:\Program Files\Microsoft
SQL
Server\MSRS10.MSSQLSERVER\Reporting
Services\ReportServer\'.
The custom action errors:
Error 1720.There is a problem with
this Windows Installer package. A
script required for this install to
complete could not be run. Contact
your support personnel or package
vendor. Custom action
RemoveAuthTypesNode script error
-2146827864, Microsoft VBScript runtime error: Object required:
'objXMLDOMNode' Line 9, Column 1, MSI
(s) (78:EC) [16:12:23:916]: Product:
ASMI User Defined Reports -- Error
1720.There is a problem with this Windows Installer package. A script
required for this install to complete
could not be run. Contact your support
personnel or package vendor. Custom
action RemoveAuthTypesNode script
error -2146827864, Microsoft VBScript
runtime error: Object required:
'objXMLDOMNode' Line 9, Column 1,
This is failing because the path isn't correct so the XMLDom object never loads. I know this because if I hardcode the path everything works fine.
Also, when I search the log for CustomActionData I expected that it would be in there as being set.
Here is the code from the custom action. The msgbox is just for debugging. It is always displaying nothing.
strConfigFile = session.Property("CustomActionData") & "rsreportserver.config"
MsgBox session.Property("CustomActionData")
Set xDoc = CreateObject("Microsoft.XMLDOM")
xDoc.async = False
xDoc.Load(strConfigFile)
set objXMLDOMNode = xDoc.selectSingleNode("//Configuration/Authentication/AuthenticationTypes")
set objParentNode = objXMLDOMNode.parentNode
objParentNode.removeChild(objXMLDOMNode)
xDoc.save(strConfigFile)
Set xDoc = Nothing
What am I doing wrong? I'm sure it's something simple stupid. Help greatly appreciated.
The custom action that sets the property named for the vbscript custom action was setting a private property (not all upper case). So, the set property custom action had to be sequenced in the Execute sequence rather than the UI sequence. Once I made this change the correct data was being retrieved in the script.
It is expected if I have made a public property (all UPPER case) it would have work being in the UI sequence, however, I didn't test that theory.

Resources