Hidden Commands
All Fastiron platforms have hidden CLI commands, with the biggest one being "dm". The "dm" command is available (but hidden) for diagnostic use. Type dm (at the enable or config t level) and hit tab a couple times to see available options, like the below for example:
Code:
FCX3(config)#dm
HEX Number
802-1w show 802-1w internal information
aaa-acct-session
acl_tcam command for tcam manager
aging-loop Turn off/on system aging loop
allled Toggle -On/Off All LED
alt-diag Test only, off/on
app_vlan_debug App VLAN table (shadow)
auq-resync Sync Auq for a device
auq-status show auq status
badaddr Test only, will reboot
blink Show gig link changes due to PHY blink
buffer DMA CPU buffer related
cancel-flash-timeout set flash timeout to default
clear_boot_count Clear crash dump
cpld-reg-dump Dump the CPLD register
There's hundreds of other options. These are low level debug commands, so if you don't know what they do you can break your switch (although usually fixed with a reboot). One useful command for example (that I don't understand why it's hidden) is "dm fan-speed" which shows you the current RPM/speed setting of each fan.
Hidden OS/Boot Monitor Console
This only works over a serial connection. It will not work over telnet/ssh/etc. Connect to a FastIron device over serial, and once it's fully booted and running, press ctrl+y, let go, then press m. Then hit enter. It should drop you down to the OS console:
Press the question mark on your keyboard for a list of all available options:
Code:
OS>
clear Clear internal table
console Attach console to a process
copy Copy file
daw Set data address watchpoint
dbg Toggle debug mode
dq Display memory in 64-bit quad word
dd Display memory in 32-bit double word
del Delete flash file
dir List flash files
type List file
erasesector Erase Sector 1-512
dmsg Display logged messages
etc etc .....
On the PowerPC platforms (ICX6610, FCX) there are many options here, you might recognize them as the same options available in the bootloader, but while the switch is booted - which can be very handy.
on the ARM models (ICX6450, ICX7xxx series), there are only a couple commands available in OS mode, compared to the hundred or so in PowerPC models:
Code:
ICX6450-24 Router>Switch to OS console...
OS>
show Show information
set Set config parameters
fill Fill memory
dump Dump register and memory
rdspr Read SPR Register
wrspr Write to a SPR Register
exit Exit
reset Reset
fastreset GOS Reset
pci Pci Conf/Mem Read/Write
pcie-ctrl Pcie Controller Reg Read/Write
ppdev Packet Processor Instance Mem Read/Write
cpld CPLD Reg Read/Write
log_clear Clear Core files
gpio GPIO Reg Read/Write
test Test command
OS>
There are fewer commands because ARM models are running on linux and u-boot, there's no custom boot monitor shell to drop down to. If you want to "drop down" to a lower level shell on ARM platforms, use the Accessing Linux guide