21-05-2018, 03:31 AM
(21-12-2017, 03:41 AM)turtleq Wrote: if I do run linux then just apply the same commands above ?hi all ived downloaded net-snmp and downloaded it a number of times with the same result the problem im having is snmpget and snmpwalk seems to work perfect but when i get to snmpset to program everything its not working im getting errors when programming snmpset my computer is windows xp ive erased net-snmp several times and reinstalled to my surprised it still doesn't program it seems if anyone can direct to a better site or advise me on how to fix net-snmp it would be appreciated thank you
Thanks!
(20-12-2017, 05:51 PM)ricktendo Wrote: You need snmp on linux or download net-snmp for windows
Open command prompt and run the following for backing up your current modem
Code:# Enables Factory Mode
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.1.2.1.2.1 s password
# Checks if Factory Mode is enabled
snmpget -v2c -c public 192.168.100.1 1.3.6.1.2.1.1.1.0
# Gets the BPI oid
snmpwalk -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.4.1.1.1.3
# Get full bpi.bin, change X on the end of this command with the oid line number with "bpi" from the previous command (example: 5)
snmpget -Ov -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.4.1.1.1.8.X > bpikey.txt
# These are the different certs (Private may be a problem but you can get this from bpikey.txt)
snmpget -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.1.0 > cmBpiPublicKey.txt
snmpget -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.2.0 > CmBpiPrivateKey.txt
snmpget -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.3.0 > cmBpiPlusRootPublicKey.txt
snmpget -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.4.0 > cmBpiPlusCmCertificate.txt
snmpget -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.5.0 > cmBpiPlusCaCertificate.txt
# Does a full snmp walk of modem to yield serial, macs, etc.
snmpwalk -v2c -c public -P d -O n 192.168.100.1 1.3.6.1.4.1.4413.2.99.1 1 > cableDataPrivateMIBGroup.txt
# Disables Factory Mode
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.1.1.0 i 1
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.1.1.0 i 0
# Verifies Factory Mode is disabled
snmpget -v2c -c public 192.168.100.1 1.3.6.1.2.1.1.1.0
# Reboot (optional, not needed)
snmpset -v2c -c public 192.168.100.1 1.3.6.1.2.1.69.1.1.3.0 i 1
Code:# Whatever values you get from the previous command, replace the values in the ones bellow (without spaces with factory mode enabled)
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.1.4.1.2.1 x 001122334455
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.1.4.1.2.2 x 001122334455
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.1.4.1.2.3 x 001122334455
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.1.4.1.2.4 x 001122334455
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.1.4.1.2.5 x 001122334455
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.1.3.1.2.5 s SERIAL
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.1.0 x 308100000000000000
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.2.0 x 00000000000000000000
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.3.0 x 308200000000000000000
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.4.0 x 308200000000000000000
snmpset -v2c -c public 192.168.100.1 1.3.6.1.4.1.4413.2.99.1.1.2.2.2.5.0 x 308200000000000000000