Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: ZyXEL and other Broadcom-type CLI routers: dumpmdm output format  (Read 2159 times)

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick

When I log in and run the dumpmdm command on my ZyXEL VMG 1312-B10A (with our own Kitz member Johnson-supplied custom firmware) I get a huge ton of XML config file output. I can’t see it all and I want to grep it.

I have been using various versions of grep for over thirty years, so I’m familiar with the concept and with regexes. Just a bit.::)

The problem I have is that dumpmdm is a command belonging to the Broadcom dedicated custom CLI only - is that correct ?

And I wanted to use the ‘proper’ bash shell so that I can run grep or umpteen other good things. But I can’t see how to mix the two. If I could, then I could pipe things or redirect the output to a file eg "/tmp/my.txt" say
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ZyXEL and other Broadcom-type CLI routers: dumpmdm output format
« Reply #1 on: March 21, 2019, 09:23:19 PM »

This is what I do --

[bcat tmp]$ screen -L -U ssh supervisor@AP
supervisor@ap's password:
 > dumpmdm
Dump of Entire MDM, this is NOT the config file
  <InternetGatewayDevice>
 
<Snip>

  </InternetGatewayDevice>
dump bytes allocated=805260 used=318157 >
 > exit

Bye bye. Have a nice day!!!
Connection to AP closed.
[bcat tmp]$

That gives me a local copy of the information in the screenlog.0 file. I can then manipulate it or search within it whichever way I choose.
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Hitman

  • Member
  • **
  • Posts: 88
Re: ZyXEL and other Broadcom-type CLI routers: dumpmdm output format
« Reply #2 on: March 24, 2019, 02:36:16 PM »

Easiest way I have found is to dump to a txt/log file is by using windows telnet...

Create a folder called 'temp' on windows c:\ drive and open command prompt (CMD), change to the temp directory you created with command - cd \temp

Then run the following command...

telnet -f c:\temp\modem.log 192.168.x.x   

(change 192.168.x.x above to your modems IP) this will generate logging for the modem telnet commands to a modem.log file located in the temp folder and you will be asked to login to the modem via telnet.

Log in as supervisor, now run 'dumpmdm' and the output will be put in the modem.log file.  :)
Logged

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: ZyXEL and other Broadcom-type CLI routers: dumpmdm output format
« Reply #3 on: March 25, 2019, 09:53:17 AM »

Doh. I wasn’t thinking straight. ??? :-[

Being restricted to iPad only, as the only machines I have access to (locally), I just did a select-all/copy/paste from my iPad’s Telnet client ‘Prompt2’.
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ZyXEL and other Broadcom-type CLI routers: dumpmdm output format
« Reply #4 on: March 25, 2019, 02:33:16 PM »

Doh. I wasn’t thinking straight. ??? :-[

Have done likewise, many a time.  ;)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.