2

I have an SNMP issue with the community name.

The default name is "public". When I tried to change it to anther one, I find that I can walk the SNMP with two name "public" and "loreal" (giving the command snmpwalk) without apparent errors, like in lines below :

C:\>snmpwalk -v1 -c LOREAL 128.86.201.207 enterprises.683.3.3.0
SNMPv2-SMI::enterprises.683.3.3.0 = STRING: "LOREAL"

C:\>snmpwalk -v1 -c public 128.86.201.207 enterprises.683.3.3.0
SNMPv2-SMI::enterprises.683.3.3.0 = STRING: "LOREAL"

But when I use the command snmpSET, I can't use the new name ("LOREAL") to change value

C:\>snmpset -v1 -c LOREAL 128.86.201.207 enterprises.683.3.3.0 s SWAT
Timeout: No Response from 128.86.201.207

C:\>snmpset -v1 -c public 128.86.201.207 enterprises.683.3.3.0 s SWAT
SNMPv2-SMI::enterprises.683.3.3.0 = STRING: "SWAT"

Why this happens, how can I definitively change or delete the "public" and use only "LOREAL" for the snmpset/get commands?

Notes:

yazan
  • 367
  • 1
  • 5
  • 20
  • Add the version of the OS and of the SNMP. You can always [edit](https://superuser.com/posts/1252767/edit) your own post. What do you mean _"I figer that I can walk"_? – Hastur Sep 25 '17 at 13:52
  • Check if the edit make it more clear and [edit] it again adding the operations you have done to set/change the new name, making more clear the Note... good luck. – Hastur Sep 25 '17 at 14:02
  • I always have the same problem with language i need improve my English before posting here, thanks – yazan Sep 25 '17 at 14:08
  • Add some tags as the windows version for the OS... some one may filter the question through the tags. BTW the bigger part of the users here has to translate in English question and answers. `:-)` Try. Continue to try. Use wordreference, collins google or whatever... and good luck. – Hastur Sep 25 '17 at 14:14
  • You are welcome. Add your OS version... NOW ! :-) If it was Linux you should had found interesting the page ["How to change the default value for the SNMP community string "](https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-the-default-value-for-the-snmp-community-string-4175545429/). They suggested to change the value by hands in the `snmpd.conf` file and restarting the daemon... So you can start to see the configuration file under your OS. [Here](https://support.managed.com/kb/a764/how-to-install-snmp-and-configure-the-community-string-for-windows.aspx) for windows. – Hastur Sep 25 '17 at 14:23
  • What is the significance of the word `LOREAL`? – Ramhound Sep 25 '17 at 16:10
  • @Ramhound `LOREAL` is just example what I'm try to do is changing the pincode for this printer by set value from 4 number , but when I changed the community name ,I had this problem – yazan Sep 26 '17 at 07:34
  • @yazan What do you mean with the 1st note? Exactly which command did you used to change the name? I added the tag windows 10...Give it a check to the 2 links on the previous comment. The second is for windows... search for the configuration file under windows and see inside the file (it should be a text file that you can open with notepad - do not modify it until you know what you are doing and how to restore the original one) – Hastur Sep 26 '17 at 10:45
  • @Hastur I have 100 zebra printer , I changed the community name correctly on all of them, just three printer gave me this error and if you want see the commande just see to this [link](https://superuser.com/questions/1248252/snmp-get-timeout-no-response) – yazan Sep 26 '17 at 13:23
  • If they are the same model of the other 97 ones, why don't you try to reset them, restoring the original settings, and try again to change the name... – Hastur Sep 26 '17 at 15:12
  • @Hastur I tried that but it didn't work – yazan Sep 26 '17 at 15:15
  • Hi all , I found solution, my problem was with the version firmware for this printers. the model of printers is `ZT230-200dpi ZPL` and the version of firmware was `V72.19.1Z`, so when I try to change community Name with `zpl commands` , the commands were execute incorrectly. I did upgrade the firmware to `V72.20.1Z` and I tried to send `zpl commands`, now I have response from `SNMP get/set` and I can change the values with the chosen community Name – yazan Oct 02 '17 at 13:29
  • @yazan Post it as answer of your own question... and let me know. I will be ready to upvote it. (if not after some time those informations will be deleted...) – Hastur Oct 03 '17 at 10:53
  • @Hastur I can't write answer , I'm banned :( – yazan Oct 03 '17 at 13:28
  • Banned?? Why? What have you done to be banned? `:-)`. If you want I can add the answer for you... but I think it is better if you wait the end of the ban and you do it yourself. BTW it doesn't seem to me that, _at present_, you are banned... – Hastur Oct 03 '17 at 13:40

1 Answers1

1

I found solution, my problem was with the version firmware for this printers.

the model of printers is ZT230-200dpi ZPL and the version of firmware was V72.19.1Z, so when I try to change community Name with zpl commands , the commands were execute incorrectly.

I did upgrade the firmware to V72.20.1Z and I tried to send zpl commands, now I have response from SNMP get/set and I can change the values with the chosen community Name

ARMANAZI
  • 48
  • 1
  • 1
  • 11