Mitel Forums - The Unofficial Source

Mitel Forums => Mitel MiVoice Business/MCD/3300 => Topic started by: MitelMania on February 18, 2009, 09:24:37 AM

Title: definitive Shell command guide?
Post by: MitelMania on February 18, 2009, 09:24:37 AM
it seems over the years..  mitel support along with other techs and even on this forum give out commands for specific testing / diagnostic purposes...  however most if not all of these are undocumented in the help system / tech handbook...

is there anywhere a definitive guide to all these specialized commands and what they do?

some are entered in VXworks..  others in RTC shell, plus also diagnostics info being printed on say port 2001 etc..

-Christopher
Title: Re: definitive Shell command guide?
Post by: v2win on February 18, 2009, 11:26:49 AM
Not one that is publicly accessible I know Mitel has one but I am positive they wont share.

Now where is the I am taking my ball and going home simley  ;D
Title: Re: definitive Shell command guide?
Post by: MitelMania on February 18, 2009, 12:01:35 PM
I know I have tried to get mitel support to share.... I even said "come on we were one of the top 5 hospitality sales last year" but they still wouldnt.... they are probably worried about guys like me that would try every command just to see what it does.....  hehehe
-Christopher
Title: Re: definitive Shell command guide?
Post by: v2win on February 18, 2009, 12:05:42 PM
I am in the same boat as you.

I remember when the 2k was a big seller I sat in front of a maintenance terminal one day

a
aa
ab
ac
ad

untill i started running into different undocumented commands.
Title: Re: definitive Shell command guide?
Post by: ralph on February 19, 2009, 11:20:21 AM
I know I have tried to get mitel support to share.... I even said "come on we were one of the top 5 hospitality sales last year" but they still wouldnt.... they are probably worried about guys like me that would try every command just to see what it does.....  hehehe
-Christopher

Get this one...   I was trying to come up with the software to communicate via IP to the Shell.  (Didn't know Putty could do it at the time)
I was told that they didn't want me IP'ing into the shell becuase we might enter commands to screw things up.   Huh??  I can plug a console cable in but not IP?  yeah......

Ralph
Title: Re: definitive Shell command guide?
Post by: v2win on February 19, 2009, 05:57:47 PM
Mitel probably didn't know that either. ;D
Title: Re: definitive Shell command guide?
Post by: MitelMania on February 23, 2009, 09:17:13 AM
what mitel probably meant was they dudnt want you IPing into the RTC..  I was told by mitel Never to use the CDE forms in the RTC shell..  and on one of ,my lab systems purposely made programming changes in the RTC shell  (old sx-2000 forms) and sure enough corrupted the database....   at the time I was trying to come up with a faster modem dialup procedure rather than the MAP and using the bandwidth heavy ESM.... (so,me of our customers dont like giving us IP access)
-Christopher
Title: Re: definitive Shell command guide?
Post by: ralph on February 23, 2009, 10:02:58 AM
what mitel probably meant was they dudnt want you IPing into the RTC.. 

Nope.  They meant the command shell.

Ralph
Title: Re: definitive Shell command guide?
Post by: DirtyHarry on March 18, 2009, 02:54:27 AM
Hi, you can get away with programming via the backdoor sx2000 style gui but the only way to ensure that the changes are reflected on the esm gui is to do a data restore. As for the shell commands, no way are Mitel gonna give them out unless it is in their interest like the one they give out to turn off visual vmail following their cockup in 8 ur3, this command is given out in the release notes for 8 ur5  ;)
Title: Re: definitive Shell command guide?
Post by: v2win on March 25, 2009, 11:50:12 AM
Here are some of the commands shamelessly stolen from another site

iPVM_Status - displays status of embedded VM
iPVM_Stop - stops embedded VM
iPVM_Start - starts embedded VM
ShowDspStatus - shows status of DSP's
ps - shows active processes and time running
i - shows all current tasks (warning: output is very large)
arptabShow - shows active ARP table (IP's and MAC's on local network)
ping "<target ip address>" - ping test, use <Ctrl-C> to exit
bootChange - edit bootline parameters
version - displays bootline parameters
relink_version - shows if any relinks (patches) have been applied
revs - displays bootrom versions
Title: Re: definitive Shell command guide?
Post by: ralph on March 25, 2009, 01:14:08 PM
Here's a handful of others.
1. slotallinfo - this command shows what type of card is installed in each slot.
2. DumpDspBootInfo - this commands shows DSP resource allocation.
3. DspSslStatus - this command shows the current and total DSP resource used.
4. DspDebugOutput 2 - this command forces command #3 to output to the RTC shell.

Ralph
Title: Re: definitive Shell command guide?
Post by: Chakara on March 25, 2009, 10:05:38 PM
  Great stuff guys, keep em comin'!

-Chak
Title: Re: definitive Shell command guide?
Post by: v2win on March 25, 2009, 10:39:55 PM
I am waiting for a takedown notice from Mitel.
Title: Re: definitive Shell command guide?
Post by: Chakara on March 30, 2009, 05:12:19 PM
  Aw V2Win, be positive!

leaseShow - Display existing DHCP leases
viperShow - Display devices - with IP, PLID and MAC addresses along with some other info
Title: Re: definitive Shell command guide?
Post by: v2win on April 02, 2009, 03:17:02 PM
I take it you have never gotten a call from the Mitel legal department. ;D
Title: Re: definitive Shell command guide?
Post by: Chakara on April 02, 2009, 09:03:32 PM
  Not yet - I know that some @ Mitel are aware of the site but nothing.  My hope is that as Mitel is a good system this site won't turn into a Mitel bashing site, and thus presents Mitel in a positive way.  As to the stuff above - well, it's useful to techs and is not warranted by Mitel Forums in any way shape or form :)

Chak
Title: Re: definitive Shell command guide?
Post by: ralph on April 09, 2009, 09:42:20 AM
Does anyone know if there is a tracert command avail in the RTC?

~Ralph

Title: Re: definitive Shell command guide?
Post by: ralph on April 09, 2009, 09:50:43 AM
xmirror "2 1"   Mirror Ethernet ports 2 to port 1 on the MXe controller.

Ralph

Title: Re: definitive Shell command guide?
Post by: MitelMania on April 10, 2009, 08:28:02 AM
tracert "xxx.xxx.xxx.xxx" where xxx.xxx.xxx.xxx is the IP address or hostname to traceroute to(you need the quotes)..  that works for me in the port 2002 shell

do a netHelp (case sensitive) and you will get all kinds of network commands you can do. all the RTC shell commands are case sensitive

-Christopher
Title: Re: definitive Shell command guide?
Post by: ralph on April 10, 2009, 10:21:16 AM
I could've swore I tried the tracert command in that format.
But when I got it right I was able to solve a problem with a Teleworker issue I've been having.

Thanks MitelMania!

Ralph
Title: Re: definitive Shell command guide?
Post by: MitelMania on April 10, 2009, 03:39:20 PM
you can also trace route in the ESM as well although it sometimes responds very slow there...

maint commands all
then
TRACERT RTC xxx.xxx.xxx.xxx

will traceroute from the RTC to the IP specified

-Christopher
Title: Re: definitive Shell command guide?
Post by: MitelMania on April 17, 2009, 11:19:01 AM
of course to really find out ALL the commands someone could use the vxworks command "lkup"

this will show you ALL of the symbols in use by the software... including subroutines etc....  real dangerous but getting a full list from that command yields thousands of "symbols" in use...
-Christopher
Title: Re: definitive Shell command guide?
Post by: v2win on April 20, 2009, 10:20:56 AM
tried the lkup command it just tells you how many symbols there are not what they are. Unless I am missing something which is entirely possible.

-> lkup
Number of Symbols   : 160346
Symbol Mutex Id     : 0x1dcc80a8
Symbol Hash Id      : 0x1dcc7880
Symbol memPartId    : 0x353e34c
Name Clash Policy   : Allowed
value = 0 = 0x0           
Title: Re: definitive Shell command guide?
Post by: MitelMania on April 22, 2009, 04:48:11 PM
you would do

lkup"dhcp"

to find any symbols containing dhcp...  all symbols are case sensitive..  most symbols are software routines designed to be called by the system not by the shell.. however if a command exists it will be in there...

I definately would not play with the symbols on a working production system...  arbitrarily calling a routine could throw the software into a Tizzy

-Christopher
Title: Re: definitive Shell command guide?
Post by: Chakara on April 30, 2009, 10:02:43 PM
Thanks to Ralph - Trunk Utilization info:




Telnet into the system.
enter "cat info *.traffic"
system will show you all the files
then you can type "type *.traffic.<file>"
it will print to your screen.
You can also print from there if you enter: "print *.traffic.<file>/port lpr3"
Then enter "en pr"

For traffic you can also enter "Traffic"  and it will prompt you for some more details.   
Traffic files
Traffic print
traffic set

Title: Re: definitive Shell command guide?
Post by: ralph on July 28, 2009, 08:12:07 AM
New command.   VIA the RTC.
dosFsShow "/vmail"

Show how much disk space you have for voice mail.

Ralph
Title: Re: definitive Shell command guide?
Post by: Chakara on October 15, 2009, 10:58:23 PM
  Stolen from this http://www.mitelforums.com/forum/index.php?topic=15.0 (http://www.mitelforums.com/forum/index.php?topic=15.0) thread, here is how to restart the web server on your 3300:

Remotely
Log into the 3300 shell using port 2002
login with your user name and password

To stop the web server type - ts WebServer
To start the web server type - tr WebServer
To view the information on the web server type - i WebServer

Title: Re: definitive Shell command guide?
Post by: boycey9 on February 04, 2010, 06:24:05 AM
Sorry a bit messy but missing the formatting of the word doc although I think the vitals can be gleamed from this



MN3300 Command Summary /Usage/Troubleshooting

Section I General commands ( These commands are entered on RTC console, unless otherwise specified.)
Note: some commands may NOT be used via Secure Telnet ( need to verify first)
Some useful hint: If you want to repeat the previous commands, hit ESC + K
Command syntax   Usage/purpose
arpShow     To show ARP cache
arpFlush()   To delete entire ARP cache
arpDelete(
Title: Re: definitive Shell command guide?
Post by: ralph on February 04, 2010, 08:17:58 AM
Thanks for the input.   
The note refrence other "Sections".   Would you happen to have those sections?

Ralph
Title: Re: definitive Shell command guide?
Post by: arthurtoo on February 11, 2010, 08:49:30 AM
How to identify 3300 platform types:

RTC shell, type sysGetPlatformFamily


Determine the platform types as follows:

For CX = 64
For MX = 200
For Lite = 250
For AX = 300
For LX = 1000
For MXe = 2000

Code: [Select]
-> sysGetPlatformFamily
sysGetPlatformFamily
value = 250 = 0xfa
->

Title: Re: definitive Shell command guide?
Post by: cmac1 on August 07, 2010, 07:54:20 AM
Probably not the definative guide - but I do try and maintain a list of VX Works Commands on my website........

http://www.chris-mcandrew.co.uk (http://www.chris-mcandrew.co.uk)

Look under Mitel and then VX Works (you will have to register to see the doc).

I appologise for the current lack of info on the site but I am just in the processs of rebuilding it.

hope that helps   :-)

Title: Re: definitive Shell command guide?
Post by: wobbly_head_bob on November 13, 2010, 11:40:11 AM
-> vlan_off

This will reset the system IP VLAN setting back to default of 1.  For those times you fat finger something, then proceed to reboot....  then have to come in on a Saturday morning not being able to connect to the system.
Title: Re: definitive Shell command guide?
Post by: Chakara on November 13, 2010, 07:29:10 PM
  Sweet - keep em coming!

-chak
Title: Re: definitive Shell command guide?
Post by: v2win on November 19, 2010, 09:18:04 AM
you can also do a vlan_on to turn it back on
Title: Re: definitive Shell command guide?
Post by: limamikeseven on November 23, 2010, 03:03:29 PM
HI all,
The best way of getting commands is by staying logged in to the console while you execute a maintenance command or issue a reset system or even doing an upgrade, all the commands or most of them are printed through the console.

Rgds
Title: Re: definitive Shell command guide?
Post by: ianbt001 on January 05, 2011, 03:06:35 PM

Gents with ref to the shell, I can ftp to the system and login but cannot remember how to then access the desktop etc, I am 2000 (including the SG, now that was a beast) trained and have been shown before but cannot remember, can someone pint me in right direction.
Title: Re: definitive Shell command guide?
Post by: Aelarth on May 16, 2011, 05:49:53 PM
hey guys, thanks for all the commands so far, you've made my life much easier.

To access the desktop, connect the server lan port to your network card and make sure the network card is on the same subnet as the server. Open internet explorer and go to https://[IP address of Server]/main.htm (without [ ]). Download and install the certificate and you should be able to access the tools once you log in. If you still can't access the desktop tool, then your account is not configured for it. To configure it, go to the system administration tool, then users and devices -> user and device configuration, double-click on your directory name or number then go to Access and Authentication and check the desktop admin box.

I now have a question of my own. Does anyone know if it's possible to configure the layer 2 switch ip address through the RTC shell? I'm using the Mxe III version of the 3300ICP.

Thanks again.

Aelarth
Title: Re: definitive Shell command guide?
Post by: ralph on July 07, 2011, 04:17:45 PM
ataShow (shell command) shows hard drive infomation

keywords: Mitel hard drive, Mitel hard disk
Title: Re: definitive Shell command guide?
Post by: marcolive on February 29, 2012, 08:40:22 PM
Just in case some of you don't know that command :

vmPortStatusInfo in VxWorks shows the status of all EMEM ports. Useful to troubleshoot a defective port!
Title: Re: definitive Shell command guide?
Post by: ralph on January 02, 2013, 01:22:32 PM
exeSysDbgCmds()

This command is executed from the RTC.
It runs a script that saves current system status then reboots the system.
This is very similar to holding the reset (or was it the alarm button) so when the system is restored you can grab the system diags.

Ralph
Title: Re: definitive Shell command guide?
Post by: acejavelin on March 27, 2013, 12:13:05 PM
Not really a guide, but something that isn't working... For a SIP IVR vendor I am supposed to enable early DPNSS ISDN messages (or something like that) which after enabling "Supress Simulated CCM before ISDN progress" in COS of TDM trunks I am supposed to go to the shell and enter"

CCS Enable DPNSS Early

But in the case of one system, MCD 6.0, it is not enabling but coming back with an unknown keyword. Any ideas?
Title: Re: definitive Shell command guide?
Post by: petr.necas on April 19, 2013, 08:16:35 AM
There is also "reboot" command for rebooting the 3300:

-> reboot

Title: Re: definitive Shell command guide?
Post by: ralph on July 03, 2013, 03:12:43 PM
From the SX2000 interface:

How do I restart SMDR (Station Message Detail Recording) without rebooting the controller?
 
If you're verified that SMDR is enabled in System Options and in the Classes of Service, run the following SX2000 commands:
2 - Pcb kill prog logsysspl
3 - Pcb kill prog logsysrtr
4 - Pcb kill prog logsysbfm
Title: Re: definitive Shell command guide?
Post by: lundah on December 10, 2013, 04:18:04 PM
mipsEnvShow - shows the properties of the L2/MIPS processor on the CX and MXe controllers
mips_reset - resets the L2/MIPS processor
period 900,mips_reset - resets the L2/MIPS every 900 seconds. This is useful if for some reason the L2/MIPS fails (I've had a run of several 50005090 vintage MXe's that do this after the controller loses power, only known fix is to replace the controller chassis). The period command could be used with other shell commands as well.
Title: Re: definitive Shell command guide?
Post by: pmhaynes on January 10, 2014, 02:25:19 PM
Restart web server
http://www.phonesystemhelp.info/2013/11/19/mcd-web-server/ (http://www.phonesystemhelp.info/2013/11/19/mcd-web-server/)
Restart voicemail (useful instead of rebooting)
http://www.phonesystemhelp.info/2013/11/19/start-the-embedded-voicemail/ (http://www.phonesystemhelp.info/2013/11/19/start-the-embedded-voicemail/)
Restart TFTP server
http://www.phonesystemhelp.info/2013/11/20/mitel-tftp-server/ (http://www.phonesystemhelp.info/2013/11/20/mitel-tftp-server/)
Title: Re: definitive Shell command guide?
Post by: pmhaynes on June 08, 2014, 12:24:52 PM
Restart web server
http://www.phonesystemhelp.info/2013/11/19/mcd-web-server/ (http://www.phonesystemhelp.info/2013/11/19/mcd-web-server/)
Restart voicemail (useful instead of rebooting)
http://www.phonesystemhelp.info/2013/11/19/start-the-embedded-voicemail/ (http://www.phonesystemhelp.info/2013/11/19/start-the-embedded-voicemail/)
Restart TFTP server
http://www.phonesystemhelp.info/2013/11/20/mitel-tftp-server/ (http://www.phonesystemhelp.info/2013/11/20/mitel-tftp-server/)

Wordpress crash! New URL
Web server
http://www.phonesystemhelp.info/mcd-web-server/
Embedded VM
http://www.phonesystemhelp.info/start-the-embedded-voicemail/
TFTP
http://www.phonesystemhelp.info/mitel-tftp-server/
Title: Re: definitive Shell command guide?
Post by: ralph on November 14, 2014, 09:01:29 AM
Someone sent me a list of RTC commands that they had.
I've attached it here.
Use with extreme caution.

Ralph
Title: Re: definitive Shell command guide?
Post by: AH64Armament on May 18, 2023, 01:36:32 PM
Mitel probably didn't know that either. ;D

When 3300 Version 4.? was the new thing, I used Mitel's Secure Telnet to get into the RTC Shell.  Using the word "exit" caused the system to restart.  Not realizing this, or what happened; I logged back in and started again.  Typed the word "exit" again.  Caused the system to restart again.

I didn't know that I was the cause of the restarts and opened a ticket with support.  That wasn't documented and a fix for it was implemented in the very next stream a week or so later.
Title: Re: definitive Shell command guide?
Post by: markyD91 on February 01, 2024, 12:26:28 PM
Don't run busy Xnet all!!! That's my initiation into the Voip world my first week on the job!!!