Mcli

mcli

There is a second command line interface available, mcli. To get into it a (unknown) password is needed. It appears that mcli is for editing MIB info:

UPDATE: mcli password is 'adminmcli', debug password is 'admindebug' (thanks, ReidMeFirst!)

Dell PowerConnect switches use mcli password 'mcli', and debug password 'debug'.

>help mcli
Start CLI
-Type 'MCLI' for getting into MCLI mode (after typing the password)
-Current available commands in Line Mode are:
- exit
quit - exit mcli (go back to ASCII Terminal).
- timer <new-value>
Change the timeout value of the MCLI timer (see ahead).
The new-value parameter must be between 5 and 3600
(value in seconds).
- password
Change the MCLI password. Entering this command opens a password
change dialog, which asks you to enter the old password, enter a
new password and then verify by re-entering the new password again.
The MCLI password is a MIB variable, whose value is saved as a
configuration parameter in the flash memory.
- <MIB-variable-name>
Enter Screen Mode (see ahead) by entering a supported MIB variable
name.
- ?
Get a printout of all supported commands and MIB variables.
Each group (commands/variables) is sorted alphabetically.

-When entering screen mode:
Key fields are marked with a '#'.
Mandatory fields (such that you have to fill in values in order to
SNMP-Set
the MIB variable) are marked with a '*'.
Read-only fields are marked with a '-'.

Using the screen mode commands


(1) SNMP command - Get(g):
The Get command requires setting values to all the key fields.
Any other values that you set are ignored. If an instance of the working
variable is found that matches the keys you set, its values are displayed
on the screen. If you haven't set values to all the key fields, you'll
get an error message.
(2) SNMP command - Get Next(n):
The Get Next command can be used either with or without a filter.
In both cases, you can either set values to none, some or all of the
key fields. When setting values to only some of the key fields, the
following rule must be followed: you cannot set a value to a certain
key field, unless all the lower-numbered key fields (which are more
significant keys) are set.
- If a Get-Next filter is NOT set, pressing 'n' gets the next entry in
the table, using the keys set on the screen (in the standard SNMP
manner). If a 'next' entry does not exist, an 'End of MIB view'
message is displayed.
If a 'next' entry is found, this entry's values are displayed on the
screen.
Pressing 'n' again will now use all of this entry's keys when calling
to Get-Next.
- If a Get-Next filter IS set, pressing 'n' gets the next table entry,
whose keys match the ones given, AND whose corresponding values are
equal to the ones set in the filter, if such an entry exists
(otherwise an 'End of MIB view' message is displayed). Pressing 'n'
again uses the same filter, and (as in the case with no filter) the
keys of the matching entry that was found in the previous call.
Setting a filter is done simply by setting values to one or more
non-key fields. This action must be done directly by the user, i.e.
values that are set as a result of a Get or a Get-Next action are NOT
considered to be filter values. Setting values may be done by either
one of the following:
1. selecting a certain field and entering a value
2. setting the default value to a certain field (see ahead)
3. setting all available default values (see ahead)
Once you set filter values, a message appears on the screen,
indicating that a filter is set (* getNext-filter is set *). Note
that, in this position, not all the non-key fields that have values
printed next to them are filter fields, but only the ones you have
actively set values to.
The message, indicating that a filter is set, is displayed as long as
you keep entering one of the following commands: Get-Next, Default,
All-default, and if you set values to various fields. The filter also
stays 'on' if you enter an Add, Edit or Delete command (see ahead) and
then abort the command when asked for acknowledgement.
(3) SNMP command - Add(a):
The Add command requires setting values to all the key-fields (marked
with a '#') and mandatory fields (marked with a '*'). Values set to
read-only fields are ignored.
You can either set values directly (by selecting fields and entering
values or by setting fields to default values), or by getting them
via Get or Get-Next commands (the values of the key-fields and the
read-write fields, which are printed on the screen after a successful
Get or the Get-Next command, are used for the Add command).
An Add action will fail in each of the following cases:
1. if an entry already exists in the table with the given keys
2. if the working variable is a scalar
3. if all mandatory fields and key-fields are not set
(4) SNMP command - Edit(e):
The Edit command requires setting values to all the key-fields and
mandatory fields. Values set to read-only fields are ignored.
Values can be set to fields in the same manner as for the Add command.
An Edit action will fail in each of the following cases:
1. if an entry does not exist in the table with the given keys
2. if the working variable is a scalar
3. if all mandatory fields and key-fields are not set
(5) SNMP command - Delete(d):
The Delete command requires setting values to all the key-fields.
Values set to non-key fields are ignored.
Values can be set to fields in the same manner as for the Add command.
An Edit action will fail in each the following cases:
1. if an entry does not exist in the table with the given keys
2. if the working variable is a scalar
3. if all key-fields are not set
(6) Clear(c):
This commands clears all values set to fields of the working variable.
(7) Var-change(v):
This command lets you change the working variable.
(8) deFault(f):
This command lets you set a default value to a field. After pressing
'f', you'll be prompted for the field to set. If this field has a
default value, this value will be set. Otherwise, an error message will
appear.
(9) all-default(i):
This command sets all fields, that have default values, to those values. A
message indicates how many fields have been set.
(10) Quit(q):
Quit the Screen Mode (and go back to Line Mode).
(11) Refresh(r):
Refresh the screen display. This command re-initializes the working
variable's screen: only default values are set, and the GetNext-filter
is reset.

- using the History mechanism, Up and Down keys prompt the last 20
commands executed:

<Ctrl> B - Toggles INS/OVR
<Ctrl> A - Brings the cursor to the beginning of the line
<Ctrl> E - Brings the cursor to the end of the line
<Ctrl> C - Deletes the line

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License