EXEC PRIVILEGED mode command details
appanalytics
Enables app analytics, which causes Core to collect data about apps installed and available to devices. When app analytics is enabled, the Core Admin Portal displays the apps dashboard at Dashboard > Apps.
When app analytics is enabled, Core collects app data once each day at 5:00 A.M. UTC.
Important Enabling app analytics can impact Core performance at the time when the app analytics data collection job runs.
Contact Technical Support if you want app analytics to run at a different time or more frequently than once each day.
Example
#appanalytics on
- no in CONFIG mode command details
- "Using the Dashboard" in Getting Started with Core
clear arp-cache
Clears the ARP cache on Core, listing each cleared ARP entry. The ARP cache stores a mapping of IP addresses with link layer addresses, which are also known as Ethernet addresses and MAC addresses. If the mapping in the cache is stale, use this command to clear the cache. A mapping can become stale, if, for example, an IP address has moved to a new host.
Example
#clear arp-cache
Deleting Arp Entry for 100.10.10.10
Deleting Arp Entry for 10.10.19.21
configure terminal
Enters configuration mode. See CONFIG mode commands for the commands you can enter in configuration mode.
Example
#configure terminal
Enter configuration commands, one per line.
/config#
dbcleanup app_inventory
Deletes duplicate and unused rows from app inventory tables. Requires portal service restart.
Example
#dbcleanup app_inventory
Portal service will be stopped during this operationy. Proceed? (y/n)y
Stopping tomcat: [ OK ]
/etc/elasticsearch/elasticsearch.yml
Stopping elasticsearch: [ OK ]
AppInventry cleanup...
dbcleanup purge_data
Deletes old data from the database. Requires portal service restart.
You can optionally provide an integer parameter that is a number of days. Data older than the specified number of days is deleted. If you do not specify a parameter, all old data is deleted.
Example
#dbcleanup purge_data
Warning:Maintenance mode command.
Takes several minutes.
Portal service will be stopped during this operation. Proceed? (y/n)y
Stopping tomcat: [ OK ]
/etc/elasticsearch/elasticsearch.yml
Stopping elasticsearch: [ OK ]
/mi/bin/purgedb: Deleting.....
disable
Returns to EXEC mode.
Example
#disable
>
diskcleanup retired_devices
Removes retired devices data from the disk.
Example
#diskcleanup retired_devices
diskCleanup.pl - VSP disk cleanup script
[2] Finding device resources to delete...
=========================================
Searching and removing device files...
-----------------------
Found 0 devices with devices data, removed 0 devices' data.
0 bytes freed up
-----------------------
diskcleanup trashed_apps
Removes deleted apps from the disk.
Example
#diskcleanup trashed_apps
diskCleanup.pl - VSP disk cleanup script
[1] Finding app-catalog resources to delete...
==============================================
Searching and removing app files...
-----------------------
Found 0 files, removed 0 files
0 bytes freed up
-----------------------
trashed_apps Removes deleted apps from the disk.
end
Returns to EXEC mode.
Example
#end
>
exit
Terminates the CLI session and closes the terminal window.
failover
Commands to assist with managing Core failover. Failover allows a secondary Core to take over if the primary Core fails when your installation requires high availability. For more information about implementing a high availability solution, contact Technical Support.
High availability is a non-standard Core feature.
grubupdate
Updates the grub configuration. Requires a reload.
This command should not be used on VMs. It should be used only for the physical box.
Example
#grubupdate
install rpm
Installs VMware Tools. If your Core runs in VMware, use this command to install the VMware Tools installation package. The installation package is an RPM file or a .tar.gz. The parameter specifies where to find the file.
Warning! Use this command only to install third-party RPM or tar files that Ivanti has approved, such as VMware Tools.
Parameter |
Description |
cdrom |
Installs the RPM from a CDROM. |
file |
Unused. |
url |
Installs the RPM from a URL. Specify the URL as the final parameter. |
info |
Displays a list of installed third-party RPMs. |
To uninstall a third-party RPM, use no install rpm. See no install rpm.
Example
The following example shows the initial output when installing VMwareTools from CD ROM. Although not shown here, the installation continues with VMwareTools configuration.
#install rpm cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only Select rpm/tar file to install 0. None - Do not install any thing 1
/mnt/VMwareTools-4.0.0-171294.tar.gz
Enter your selection: 1
Installing /mnt/VMwareTools-4.0.0-171294.tar.gz
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files? [/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc/rc.d]
What is the directory that contains the init scripts? [/etc/rc.d/init.d]
In which directory do you want to install the daemon files? [/usr/sbin]
In which directory do you want to install the library files? [/usr/lib/vmware-tools]
The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes]
In which directory do you want to install the documentation files? [/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes]
The installation of VMware Tools 4.0.0 build-171294 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want this program to invoke the command for you now? [yes]
....
no install rpm
Uninstalls a core-approved third-party RPM. See install rpm.
For the list of “no” commands possible in CONFIG mode, see no.
poweroff
Turns off Core. This command not only logs you out of the CLI, but shuts down the operating system and powers off Core.
Example
#poweroff
System configuration may have been modified. Save? [yes/no]: yes
Configuration saved.
Proceed with power-off? [yes/no]
reload
Halts Core and performs a cold restart.
Example
#reload
System configuration mat have been modified. Save? [yes/no]: yes
Configuration saved.
Proceed with reload?
service
Performs operations on the Tomcat and iptables services. You can start and stop these services, and check their status.
Parameter |
Description |
service name |
The name of the Linux service. Possible values are:
|
operation |
The operation to perform on the specified service. Possible values are:
|
Example
#service tomcat start
Starting tomcat: Using TOMCAT_ALLOCATION_MB=11235
.
.
.
[OK]
#service iptables start
Applying iptables firewall rules: [OK]
#service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
.
.
.
#service iptables stop
Flushing firewall rules: [OK]
Setting chains to policy ACCEPT: filter nat [OK]
Unloading iptables modules: [OK]
setup
Runs the setup wizard to reconfigure an installation. This command takes you through the initial configuration of Core.
Example
#setup
VSP 4.5.2 Build 32 (Branch r4.5.2)
Welcome to the Mobile Iron Configuration Wizard
Use the ‘-’ character to move back to the previous field
Continue with configuration dialog? [yes/no]:
show kparams
Shows the kernel parameters used at runtime. This command executes the Linux command /sbin/sysctl -p internally.
Example
#show kparams
show portalacl
Displays the configured portal Access Control Lists (ACLs), which restrict access to various portals of Core. The access is restricted to certain servers or networks by specifying their IP addresses or network/mask pairs.
You configure the portal ACLs in the System Manager, Security > Access Control List > Portal ACLs, described in “Access Control Lists” in the Core System Manager Guide.
Example
#show portalacl
+-----------------------------------------------------------------------
Module + Access Allowed From
+-----------------------------------------------------------------------
MyPhoneAtWork 10.10.17.12
show running-config
Displays the configuration under which Core is currently running.
The following table lists the configuration information that this command displays. It also shows where in the System Manager to configure this information.
Configuration Displayed |
System Manager User Interface |
Network interfaces |
Settings > Network > Interfaces |
DB config |
Not used. |
Network routes |
Settings > Network > Routes |
ssh and ntp status |
Settings > CLI |
DNS servers |
Settings > DNS and Hostname |
Core host name and domain name |
Settings > DNS and Hostname |
NTP servers |
Settings > Date and Time (NTP) |
CLI session timeout |
Settings > CLI |
System Manager user names |
Security > Identity Source > Local Users |
Portal Access Control Lists |
Security > Access Control Lists > Portal ACLs |
Example
#show running-config
show sshd_authorized_key
Displays the public key for SSH authorization if one has been added using the sshd_authorized_key command.
Example
#show sshd_authorized_key
SSHD Authorized Key:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnFsywrE7Q6kGU+uVFKCLaY4/XlgXtxB1pUQAOPJjKRZukn5z
fdbGmLqGaJWjWc7TRMTkbPegV4skPW1ddIcUXNuV79Mfbco4sFJkLFr4Qg7xKQUyo/kk47otSE2HRq4EUoTxfN5
UeEuD81WEeU3aqdH6RcrIx0gkdvteFbUuSacWorRw4xoskySYplWeLTva4IgERPXI5jkydBF/uH14B3R1V/TzIx
o914xW08o6C0dC/A/bnbPzAnvlngOdskGikUDOQ29jXqvHhrw9jnAWPYcq7vsJfNi2b/6AIAeKVcEZkLOuul1i9
WtkePXX1k4lXR8e8lBI2MPhXOfiSIDGx admin
show statichost
Displays the configured static hosts. The static hosts are configured using the System Manager, in Settings > Static Hosts, described in the Core System Manager Guide. You can also configure static hosts using the CLI command statichost.
Example
#show statichost
+------------------+-------------------------------------
IP Address FQDN
+------------------+-------------------------------------
172.16.80.2 mysentry.mycompany.com
show system
Displays system information as specified by the parameter. Most parameters result in displaying output from Linux commands. For more information about Linux command output, see the Linux man page description available on the Web.
Specify one of the following parameters:
Parameter |
Description |
aspm |
Displays whether the PCIe Active State Power Management subsystem is disabled on physical Core appliances. |
disk |
Displays disk usage information for each mounted file system. Linux command: df -h |
meminfo |
Displays the memory usage by each program and the total memory usage. |
top |
Displays a snapshot of the running tasks and threads, including their command-line parameters. Enter h for help on navigating the output. Enter q to quit. Linux command: top -bcHss -n 1 |
toprt |
Displays the running tasks, memory usage, and the uptime status, updating the display in real-time. Enter h for help. Enter q to quit. Linux command: top |
uptime |
Displays the following information:
Linux command: uptime |
user |
Displays the list of System Manager users. |
Example
#show system disk
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 80G 3.0G 73G 4% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 7.9G 8.0K 7.9G 1% /dev/shm
#show system user
+------------------------+
Users
+------------------------+
miadmin
#show system uptime
18:23:11 up 23:15, 2 users, load average: 0.00 0.00 0.00
#show system toprt
top - 18:25:57 up 23:15, 2 users, load average: 0.00 0.00 0.00
Mem: 1643612k total, 3412864k used, 13023136k free, 148648k buffers
Swap:1849804k total, 0k used, 18490804k free, 14869890k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19186 root 20 0 67088 2732 1292 S 0.0 0.0 0:00.62 -bash
.
.
.
show tech
Gets Core logs and database dumps for diagnostics. This command transfers the diagnostic files to a server that you specify, using either HTTP(S) or SFTP.
Parameter |
Description |
http sftp |
Select the transport method for the files. |
URL |
When using HTTP, enter the URL for the destination server. For example: https://support.ivanti.com/uploads |
host |
When using SFTP, enter the host name or IP address of the destination server. For example: support.ivanti.com |
alllogs |
Enter No. Enter Yes only if Core had restarted since the issue occurred. |
username |
Enter the user name for logging in to the server that you specified. The command will prompt you for the corresponding password. |
support-ticket-number |
Enter the support ticket number, if you have one. This parameter is optional. |
You can use the System Manager to manipulate logs. See “Working with logs”, in the Core System Manager Guide.
Example
#show tech http https://support.ivanti.com/uploads No mysupportusername
Enter Password for user mysupportusername:
software checkupdate
Checks the configured software repository for available updates to Core. The repository information is configured using the System Manager, in Maintenance > Software Updates.
Example
#software checkupdate
software update
Installs the updates located using software checkupdate. Use the reload command after using the software update command.
Example
#software update
...
#reload
ssh
Opens an ssh connection.
Specify the following parameters:
Parameter |
Description |
user |
The ID of the user making the connection. |
server |
The IP address or hostname of the target server. |
Example
#ssh miadmin 100.10.10.10
[email protected]’s password:
system-monitor
You can initiate a background system monitor run from the Core CLI. The system monitor information helps with capturing crucial diagnostic information when a system is malfunctioning.
Following the command, enter the number of iterations and intervals:
Parameter |
Description |
---|---|
<iterations> | Range: Any positive integer. Default: 30 iterations |
<interval> | Optional. Range: Any positive integer. Default: 5 seconds |
For example, entering system-monitor 30 5
results in 30 iterations of 5 seconds each. You can also specify just the iterations. For example, #system-manager 65 would result in 65 iterations of 5 seconds each.
Example
#system-manager 45 10
#system-manager 60
telnet
Opens a telnet connection.
Specify the following parameter:
Parameter |
Description |
server |
The IP address or hostname of the target server. |
Example
#telnet 100.10.10.10
write
Saves configuration changes.
The changes you make in your CLI session are not saved across reboots of Core, although they are remembered between CLI sessions. Therefore, to ensure your changes are not lost, use the write command to save your changes.
If you do not save your changes, a reboot will return Core to its previously-saved configuration.
Example