Backup NVRAM from a remote device to a local computer
I tried backup(copy) NVRAM from remote embedded device using telnet and console access(over a WAN), and save it to a file on local computer.
The MTD partition map for NVRAM: Code:
MTDs: Code:
nc -l -p 5555 > nvram.bak Code:
dd if=/dev/mtdblock7 bs=00010000 count=5 | nc 192.168.1.20 5555 Code:
BusyBox v1.4.2 (2010-04-30 17:58:45 CST) Built-in shell (ash) Code:
admin@debian:~/Downloads$ nc -l -p 5555 > nvram.bak |
There are a few hundred great examples on the web on netcat. Funny part is that they seem to be all different. To add to the confusion no all netcat is compiled the say.
I might suggest you try this web page for an example. Kind of the opposite of they way you have it set up. http://www.cyberciti.biz/tips/howto-...r-network.html Be sure the ports are open too. Other page " On the VM: nc -l -p 9001 | dd of=/dev/sda On your source machine: dd if=/dev/sda | nc 9001 " |
Thanks for tips. I tried different versions of command, but no one of them is working. I always get error "Cannot connect to remote host (x.x.x.x): Connection timed out." Perhaps netcat implementation on Busybox is somehow limited.
Also,I find that the same BusyBox v1.4.2 version installed on two similar devices, have difference in defined functions: Busybox on one device have no 'nc' option defined. I tried use TFTP and it works fine. |
All times are GMT -5. The time now is 01:56 AM. |