Can you show the contents of NVRAM on a Catalyst switch?

If a CATOS switch is running in binary mode can you see the content of NVRAM (the config file)?

What is confusing me is the output of these commands  "sh boot2" and "sh boot" they list the config_file variable as slot0:switch.cfg which is not possible because there is no pcmcia card in slot0:

I also know it is not in text config mode because when I attempt a "wr mem" the switch tells me "This command is available only in text configuration mode."

I can not find a command such as "sh nvram" or "dir nvram"

> (enable) sh boot 2
BOOT variable = bootflash:cat6000-sup2k8.8-5-3.bin,1;
CONFIG_FILE variable = slot0:switch.cfg

Configuration register is 0xf
ignore-config: disabled
auto-config: non-recurring, overwrite, sync disabled
ROMMON console baud: 9600
boot: image specified by the boot system commands

Image auto sync is enabled
Image auto sync timer is 2 seconds
SRBN192056-4> (enable) dir slot0:
Open device slot0 failed (no device)
> (enable) pwd
bootflash
> (enable) wr mem
This command is available only in text configuration mode.

> (enable) sh boot
BOOT variable = bootflash:cat6000-sup2k8.8-5-3.bin,1;
CONFIG_FILE variable = slot0:switch.cfg

Configuration register is 0xf
ignore-config: disabled
auto-config: non-recurring, overwrite, sync disabled
ROMMON console baud: 9600
boot: image specified by the boot system commands

Image auto sync is enabled
Image auto sync timer is 2 seconds
Dragon0x40Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chad_rCommented:
the CONFIG_FILE variable pointing to slot0:switch.cfg is default, and can be changed to point to a file, or set of files depending on the action you want it to take.  In your instance though it isn't being used so don't worry about it pointing to something that isn't there.  You can change the action it takes using the "set boot config-register" command, but I wouldn't recommend it without reading up on it, and deciding if it is something you really want to do.  

As far as displaying the NVRAM, have you tried "show flash",  "show flash filesys", "dir const_nvram:"
0
Dragon0x40Author Commented:
thanks char r,

I am curious where the config for a CATOS switch is stored if it is in binary mode. If it is in text mode then it can be in a location such as bootflash:config.txt

> (enable) dir const_nvram

No such file

> (enable) sh flash filesys


-------- F I L E   S Y S T E M   S T A T U S --------
  Device Number = 2
DEVICE INFO BLOCK:
  Magic Number          =  6887635  File System Vers =    10000 (1.0)
  Length                =  2000000  Sector Size      =    80000
  Programming Algorithm =        7  Erased State     = ffffffff
  File System Offset    =    80000  Length =  1e80000
  MONLIB Offset         =      100  Length =    10028
  Bad Sector Map Offset =    7fff8  Length =        8
  Squeeze Log Offset    =  1f00000  Length =    80000
  Squeeze Buffer Offset =  1f80000  Length =    80000

STATUS INFO:
  Writable
  NO File Open for Write
  Complete Stats
  No Unrecovered Errors
  No Squeeze in progress
USAGE INFO:
  Bytes Used     = 1ad6bcc  Bytes Available = 3a9434
  Bad Sectors    =   0     Spared Sectors  = 0
  OK Files       =   1     Bytes = 9bf920
  Deleted Files  =   2     Bytes = 111712c
  Files w/Errors =   0     Bytes =      0

> (enable) sh flash
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
  1 .D ffffffff 17b00d7f  a59e0c   32 10329484 Jul 15 2004 06:46:40 BTSYNC_cat6000-sup2cv.6-4-11.bin
  2 .D ffffffff 534c003c 119722c   31  7590816 Jul 17 2004 14:13:46 BTSYNC_cat6000-sup2k8.7-6-3.bin
  3 .. ffffffff 618e9ce4 1b56bcc   31 10221856 Dec 07 2006 21:33:08 BTSYNC_cat6000-sup2k8.8-5-3.bin
0
mikebernhardtCommented:
Try dir nvram: and see if that works.
0
Redefine Your Security with AI & Machine Learning

The implications of AI and machine learning in cyber security are massive and constantly growing, creating both efficiencies and new challenges across the board. Check out our on-demand webinar to learn more about how AI can help your organization!

Dragon0x40Author Commented:
works on ios:

#dir nvram:
Directory of nvram:/

 1918  -rw-       63236                    <no date>  startup-config
 1919  ----        3657                    <no date>  private-config
 1920  -rw-       63236                    <no date>  underlying-config
    1  ----           0                    <no date>  rf_cold_starts
    2  ----         129                    <no date>  persistent-data
    3  -rw-           0                    <no date>  ifIndex-table

1964024 bytes total (1894007 bytes free)

does not work on catos

> (enable) dir nvram:
Open device nvram failed (unknown device)
> (enable) dir ?
  <[m/]device:[filename]>    Device name and filename
  all                        display all files in the current device
  deleted                    display only deleted files
  long
0
mikebernhardtCommented:
Well, there's a reason why Cisco is no longer developing on Cat OS  :-)
0
Dragon0x40Author Commented:
The answer is no? You can't look at NVRAM on a switch running CATOS?
0
mikebernhardtCommented:
The reason may be that when it's in binary mode, the running config IS the saved config- and it's not in ASCII so you wouldn't be able to look at it anyway. There's no reason for you to be able to see that memory location in human-readable format. When it's in text mode the running and startup configs might be different so you have to have places to store both.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dragon0x40Author Commented:
Agreed that on a CATOS switch showing what is in NVRAM is binary and probably not readable.

I am suprised that it is hard to find any information on NVRAM such as a picture or description.

I have searched and found a picture of a chip that looks a lot like the rommon chip that is nvram for one model of Router.

Another web page talks about rommon nvram getting errors which makes me think that NVRAM may sometimes be combined with the ROMMON chip.

Also found a picture of a supervisor that points out the locations of ROMMON, DRAM and Flash but not NVRAM.

I like to see things physically because virtualization of systems makes me less confident that I understand how a system works.
0
mikebernhardtCommented:
CAT OS has always been frustrating that way- inf fact the old Sup3G, which was the last one to go with the 5500s, was even more useless- "show flash" gave tons of information about God knows what, but none of it made any sense or was of any value. It wouldn't even tell you what images were in flash...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Hardware-Other

From novice to tech pro — start learning today.