Hi,
Sheng> I am a beginner of scotty.
Sheng> the program is very sample ( only 3 lines) :
Sheng> #!/home/wangs/scotty/bin/scotty2.1.10
Sheng> set sh [snmp session -address 138.203.192.27]
Sheng> $sh set [list [list sysContact.0 "Bert Nase"] ]
Sheng> the error message is :
Sheng> noSuchName 1 {1.3.6.1.2.1.1.4.0 {OCTET STRING} {Bert Nase}}
Sheng> while executing
Sheng> "$sh set [list [list sysContact.0 "Bert Nase"] ]
Sheng> "
Sheng> who can tell me what is the problem?
it seems the agent rejects the set request du to a wrong community
string.
because you try to set the sysContact to `Bert Nase' (which i really
appreciate ;-), i assume you are running the cmu snmpd for linux.
check if and what community you use for set requests in
/etc/snmpd.conf:
> #
> # community configuration
> #
> # commName readV writeV
> #
> community public xmini -
> ## uncomment for private entry:
> community secret42 mini mini
this example should allow set requests with the community string
secret42 .
please check which community string is needed and use this community
string within your scotty command; eg:
> % set sh [snmp session -address 138.203.192.27 -community secret42]
i hope this helps,
Erik
-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.
This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:43 MET