VxWorks and Engineering Debug Commands
VxWorks and Engineering Debug Commands
Table of Contents
VxWorks and Engineering Debug Commands
Overview
Command Listing
Note VxWorks and Engineering debug commands are available only to root users, and are shielded from all
other users, including those with MGX 8260 node access level = 1 (SuperUser).
Overview
The operating system for the MGX 8260 is VxWorks. VxWorks is similar in command structure to UNIX with
one exception. All non-numeric argument values are taken as strings and hence, must be enclosed in double
quotes. For example, suppose command foo takes two arguments, arg1 and arg2, where arg1 is a character
string and arg2 is a hexadecimal numeric value. This command would be entered as follows:
A value or string is returned when the command is entered. A value of 0x0 means the command was executed
successfully. A value of 0xffffffff (all ones) means the command failed to execute properly. If "undefined
symbol:" is returned, the command was improperly typed or does not exist.
Command Listing
Table B-1 lists the VxWorks commands most commonly used on an MGX 8260 node. Table B-2 lists the
Engineering debug commands employed by technicians servicing the MGX 8260 media gateway.
Note The commands listed in Table B-1 and Table B-2 do not appear in the listing generated by
typing help while you are logged in as root.
cnfkey "String"(6-digit key) Sets the 6-digit security key required for tftp file transfers.
copy "file1","file2" Copy one file to another file.
dspbimif Line (1-4) Displays IP packet counts on SCC broadband interface module
(BIM) ports. If the Line variable is not provided, the values shown
are concatenated from all lines.
dspkey None Displays the current 6-digit tftp security key. See also cnfkey.
lkAddr address (Ox prefix to Displays addressing information for an exception address detected
hexadecimal number for a suspended task.
from ti output)
Note The ti command outputs the INSTR address only when an
exception has occurred.
lkup "string" Causes the MGX 8260 to output a list of all commands containing
(alphabetical the specified string in their name.
characters)
ping "IPAddress", x (IP Sends a packet to a specified IP address and monitors its return. It is
address of target identical to the UNIX ping command except that the IP address is
device in dotted considered a string and must be enclosed in double quotes.
notation; x = number
of pings to send to The ping will be initiated out of the SCC back card's Ethernet
the target IP address) Mgmt Port.
td "taskname" Kills the specified task. The taskname can be derived from the
listing displayed for the i command.
tt "taskname" Prints the stack trace of a task. Task trace allows you to investigate
a suspended task or a task suspected of hogging CPU resources.
The taskname can be derived from the listing displayed for the i
command.
arpShow None Lists all the devices as well as their MAC addresses
which have responded to the MGX 8260 address
resolution protocol (ARP) requests.
dispL2 Slot (0-based slot Displays the MRPC layer-2 configuration and counters
number of the for the specified card.
card = 0-7, 10-15)
Only the active SCC circuit card will respond to this
command. This command would typically be used when
a circuit card is suspected of not properly processing all
information—for example, transmitting in one direction
only.
dspkey None Displays the current 6-digit tftp security key. See also
cnfkey.
ibpmuxPrtSts Set (set ID Displays ISDN backhaul session statistics for the
number = 1-6) specified session set.
memShow None Shows the memory status (current and cumulative) for
the active SCC.
mgcpPrtOn Num (2, 3 or 4) Turns MGCP debugging on. A single parameter value
(2, 3 or 4) scales the amount of debug info to print. A
value of 2 will display the least amount of debug info, 4
the most.
mpcDispCard Slot (starting slot Displays detailed MGCP platform control (MPC)
number 0-15) information for individual circuit cards.
Num (number of
cards to be
displayed)
mpcDispEp Slot (0-15) Displays MPC information for the specified endpoint(s).
Endpoint (starting
endpoint number
from
mpcDispBusyEp)
Number (number
of endpoints to be
displayed)
mpcDispFlcQs None Displays statistics for the MPC flow control queue.
mpcDispSizes None Displays size information for all MPC data structures.
mscpPrtOn Num (2, 3 or 4) Turns IPDC debugging on. A single parameter value (2,
3 or 4) scales the amount of debug info to print. A value
of 2 will display the least amount of debug info, 4 the
most.
routeShow None Displays the MGX 8260 routing table for the Ethernet
ports.
The first (NET) table shows all the subnets to which the
MGX 8260 can connect and which interface it will use
to connect to those subnets. The 0.0.0.0 entry is the
default gateway.
The second (HOST) table shows all the host devices the
MGX 8260 has located and which interface it used to
find those hosts.
SiwTracePrint None Displays the contents of the system trace file. The trace
file is cleared using TraceDump.
SmClearCardCfg Slot (0-based slot Clears the card configuration of the card in the specified
number of the slot.
card = 0-7, 10-15)
SmDispCardInfo Slot (0-15) Displays the current operating state and other
operational parameters of the targeted card.
spy n, m <n = interval Starts a process which monitors and lists the CPU usage
seconds> <m = of individual tasks within a specified interval. This
number of process runs until turned off.
samples collected
within interval>
upgradeflash x, " Upgrades the flash PROM on the targeted circuit card.
<filename>.fls" (x Refer to the MGX 8260 Release Notes for the filenames
Note This command = 0-based slot for specific circuit card types.
has been superseded by number of the
card = 0-15;
the updatefls command filename = PROM The upgradeflash command must be initiated once for
described in Table A-1. image for the each circuit card in the system.
target card)
Caution Special care must be taken when using
this command. Placing an NSC flash file in the
SCC (or vice-versa) will render the card
unbootable and a physical replacement of the
PROMs would be the only way to recover.
bigmir)net
0 449 Ramblers Top100 Рейтинг@Mail.ru