Re :Set command with error "noSuchPacket"

"vishal_nitr" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1219684179.S.9250.1433.f4mail-234-226.rediffmail.com.1219727875.16389@webmail.rediffmail.com>
Hi Letha,&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The error you are getting is different from the error you will get if the object is present and is read only but you are trying SET the object. In that case you will get error like "Not writable object".are you able to do "GET" operation on it ?&nbsp;&nbsp;&nbsp;&nbsp; Instaed of using MIB name in "set" command use "-m ALL" option if you still get the same error try using the exact OID of the "bDTDisplayName" object.if this gives you the same error then look into your Makefile whether you have compiled that object or not.On Mon, 25 Aug 2008 22:38:11 +0530 "Letha Jacob"  wrote      Hi All,    I am using Net-SNMP version 5.4.1.2  I tried using the net-snmp "set" command.  I am able to set the values of variables like "system.sysName.0".  But, wh
 en I try to set the values of objects in my MIB file, I get the error :-    Error in packet.  Reason: (noSuchName) There is no such variable name in this MIB.  This name doesn't exist: BDTMI
 B::bDTDisplayName.0    Net-SNMP site specifies the following reasons for this error :-  1. The agent may not be configured to allow write access to this object.  Ans : &nbsp;My 'snmpd.conf' file looks like :-  &nbsp;rocommunity public 127.0.0.1    &nbsp;rwcommunity npublic 127.0.0.1  &nbsp;The command which I gave was :  &nbsp;-&gt; snmpset -v 1 -c npublic localhost BDTMIB::bDTDisplayName.0  &nbsp;Error in packet.  &nbsp;Reason: (noSuchName) There is no such variable name in this MIB.  &nbsp;This name doesn't exist: BDTMIB::bDTDisplayName.0    &nbsp;At the same time, the foll command works successfully:-  &nbsp;-&gt; snmpset -v 1 -c npublic localhost system.sysName.0  &nbsp;  &nbsp;  &nbsp;I tried giving unique community name for the object like :  &nbsp;rwcommunity napublic 127.0.0.1 BDT
 MIB::bDTDisplayName.0    &nbsp;But, this too failed.  2.Many MIB objects are defined as "read-only" and inherently cannot be  &nbsp; changed via SET requests.&nbsp; Attempts to do so will ty
 pically be dropped  &nbsp; by the 'snmpset' command without ever being sent to the agent.    Ans:&nbsp;I ran the command as 'root'.   &nbsp;How can I know if the object is inherently "read-only" ?  &nbsp;If yes, how can I change it?  3.Of those objects that can in principle be changed, the agent may not  &nbsp; include the code necessary to support SET requests.&nbsp; (GET and GETNEXT  &nbsp; are much easier to handle - particularly for objects relating to the    &nbsp; internals of the underlying operating system).  Ans:&nbsp; I am using a straight forward 'set' command.    Since, I am able to set the "system" objects, I dont think that this is an   issue with the code for SET request. It might be a problem with the access   to the required MIB file.  Kindly help.  &nbsp;    


Thanks and Regards,
Vishal Kotalwar,
Software Engineer,
Aricent,
Chennai-35.
09884074047.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.