In addition to the browser-based interface accessible via HTTP (port 80) and HTTPS (port 443), NetMRI supports a command-line interface accessible via SSH (port 22). The administrative shell accepts a variety of commands that are useful for troubleshooting and maintenance.
...
The cat
command is a basic Linux command. Depending on the system you are working in, the available options for this command may vary.
clear command
Use the clear
command to clear the terminal screen.
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
The configure
command is essentially the command-line equivalent of the Settings icon > General Settings > Security page.
The command’s syntax isfollowing is the command syntax:
configure <setting> [show | reset]
where <setting>
is
ssh
configures SSH client and servers
http
configures HTTP and HTTPS servers
snmp
configures SNMP servers
auth
configures authentication methods
and reset
resets all protocols to the factory defaults.
The configure
command supports the following sub-commands:
...
auth
...
following table describes the settings that you can configure in the administrative shell.
| Install Installs an SSL certificate into the NetMRI system for HTTPS sessions. |
| Define the basic device Discovery device expiration period, which is the time period that elapses before NetMRI automatically re-discovers any given device in its database. The default is seven (7) days; |
| Determines whether the HTTP and HTTPS servers are activated in the NetMRI system. You can also enable or disable individual encryption protocols in the HTTPS suite. By default, NetMRI enables all protocol options. You must restart the services after making any changes, which consists of a full restart of NetMRI. |
| Define the NetMRI management IP address, which is the IP used to communicate with the appliance. Should you change this value, the system will require a restart and your current terminal session will lose connectivity. Exercise caution when using this commandfull restart of NetMRI. |
| Starts the configuration for standalone NetMRI and Operations Center Controllers and Collectors. During this configuration, you specify network name, NetMRI server name, domain name, time server, time zone, NetMRI IP address and subnet mask, and several other basic operating parameters. | ||
| Enable Enables or disable disables support for specific SNMP protocol types, define and defines the community string and the SNMP passphrase. | ||
| Define Defines basic settings for SSH client and NetMRI SSH server, including enabling or disabling of either communications protocol and the type or types of encryption protocols supported by each. Under most circumstances, the defaults should be retained unless organization policy requires specific settings. You must restart the services after making any changes. | ||
or
| Initiates configuration of an appliance that is licensed as an Operations Center Controller (after running license and configure server ) to set up or reset VPN components and allow Collectors to communicate with the Controller. configure tunserver or configure tunclient must be performed before Collectors can register with the Controller. For more information, see Infoblox Deployment Guide for NetMRI and Operations Center. | ||
reset | Resets all systems to the factory default. |
connect command
Use the connect
command to connect to the command-line interface of a discovered device using the internal functionality of NetMRI.
...
Use the grep
command to search a file for a particular pattern of characters. The command displays all lines that contain that pattern. By default, the pattern is a regular expression.
The following is the command syntax:
grep [options] pattern [files]
Example:
netmrivm193> grep -i 'hello world' menu.h main.c
...
Anchor | ||||
---|---|---|---|---|
|
Use the halt
command to shut down NetMRI, shut down the server, and then power off.
help command
Use the help
command to display a list of commands available in the administrative shell.
installdsb command
Use the installdsb
command to install a device support bundle in the system. Device support bundles can contain changes in the database tables, CSS scripts, and MIB files that are necessary for the correct discovery of devices.
...
Note |
---|
The NetMRI NT-1400 appliance is licensed as standalone even if the OC license is applied. For information about the NetMRI NT-1400 appliance, see Operations Center Appliances and Requirements. |
Note |
---|
For the Customer Name field, use only US-ASCII symbols. |
Example 1 Sample output when you continue to use an existing license
...
2017-08-02 22:17:38 [info] License Type: Full NetMRI (Customer)
2017-08-02 22:17:38 [info] License Source: N/A
2017-08-02 22:17:38 [info] Customer Name: FULLNM
2017-08-02 22:17:38 [info] Controller role: Standalone
2017-08-02 22:17:38 [info] Device Limit: 1000
2017-08-02 22:17:38 [info] Maintenance Expiration: 2020-07-20
2017-08-02 22:17:38 [info] Modules Info:
2017-08-02 22:17:38 [info] Full NetMRI: on, Expired: Never
2017-08-02 22:17:38 [info] Automation Change Manager: off, Expired: Expired
2017-08-02 22:17:38 [info] Switch Port Management: off, Expired: Expired
2017-08-02 22:17:38 [info] NetMRI without SPM: off, Expired: Expired
2017-08-02 22:17:38 [info] IPAM Insight (Discovery): off, Expired: Expired
2017-08-02 22:17:38 [info] Network Automation: off, Expired: Expired
ls command
The ls
command lists files and directories within the file system and displays detailed information about them.
The syntax for the ls
command is as follows:
ls [options] [files]
The ls
command is a basic Linux command. Depending on the system you are working in, the available options for this command may vary.
...
more command
Use the more
command to view long text files. The command displays one section of the file at a time and allows you to scroll all the way to the end of the file.
The syntax of the more
command is as follows:
more [options] file
The more
command is a basic Linux command. Depending on the system you are working in, the available options for this command may vary.
...
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Use the provision disk
provisiondisk
command to extend the NetMRI VM storage per volume.
The NetMRI volumes and their size are displayed on the Settings icon > Database Settings > Storage Management page. For more information, see Storage Management.
Example:
hostname>
...
provisiondisk
Do you want to provision disks? (y/n) [n]: y
Unused disks found.
You can select a disk to attach to NetMRI storage:
Please select a disk to add to NetMRI storage (0 to exit provision):
1 /dev/sdb (17612.8 MB)
Enter disk number: 1
*** Adding '/dev/sdb' to NetMRI storage ***
Creating partition: Device /dev/sdb1 has been successfully added to NetMRI storage.
This machine has 23 gigabytes of unused space.
Do you want to extend partitions? (y/n) [n]: y
Please select storage to provision (0 to exit provision):
1 - Backup Storage
2 - Database Storage
3 - Log Storage
4 - Application Storage
5 - Temporary Storage
6 - OS storage
1 - 6 [1]> 3
Space to add to Log Storage in gigabytes. (0 to exit provisioning): 16
Will add 16 GB to Log Storage
Are you sure? This action cannot be undone. (y/n) [n]: y
Shutting down NetMRI: OK
Extending 'log_storage' volume: OK
Resizing filesystem (this may take a while, please be patient): OK
*** Disk space successfully provisioned ***
Starting NetMRI: OK
Note | ||||
---|---|---|---|---|
| ||||
You cannot undo the storage extension. |
...
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Note | ||
---|---|---|
| ||
Before running the |
Use removedsb
to delete device support bundle files from the default directory /var/local/netmri/dsb in the local NetMRI appliance. This is generally a housekeeping command, but exercise caution when deleting database files.
...
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Use the sandbox
command to interact with the sandbox VM in NetMRI.
For more information, see Sandbox Commands.
...
The show license
command displays your current NetMRI license configuration. You can also view your license features, license type, expiration date, and license ID information.
Example:
netmrivm193> show license
License Information:
...
The command prompts for further information before executing (if only one network view exists in the NetMRI appliance, you will not be prompted to enter that value):
SA4-17> snmpwalk
Enter SNMP hostname or IP address []: 172.19.4.192
Enter Network View []: MGMT
Enter SNMP version (1, 2c, 3) [2c]: 3
Enter SNMP Username [ ]: aes_username
SNMP Authentication [no]: yes
Enter SNMP Authentication Passphrase [ ]: my_passwd
Enter SNMP Authentication Protocol [MD5]: sha
SNMP Privacy [no]: yes
Enter SNMP Privacy Passphrase [ ]: my_aes_passwd
Enter SNMP Privacy Protocol [DES]: aes-256
Enter Root OID to start walk [system]:
Use legacy snmpwalk tool [n]:
+++ Executing snmpwalk ...
#######################################################################
# Generated by NetMRI Administrator SNMP Walk
...
# StartTime: Mon Aug302:01:06 PDT 2020
#######################################################################
sysDescr.0 = DisplayString : Linux stsitou-deb10 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64
sysObjectID.0 = ObjectIdentifier : 1.3.6.1.4.1.8072.3.2.10 (Net-SNMP Net-SNMP)
sysUpTime.0 = TimeTicks : 40923950
sysContact.0 = DisplayString : Me <me@
example.org
>
sys
Name
.0 = DisplayString : stsitou-deb10
sysLocation.0 = DisplayString : Sitting on the Dock of the Bay
sysServices.0 = Integer32 : 4
sysORLastChange.0 = TimeStamp : 0
...
sysORUpTime.10 = TimeStamp : 0
#######################################################################
# EndTime: Mon Aug 3 02:01:06 PDT 2020
#######################################################################
+++ Results stored in snmpwalk-172-19-4-192.txt
...
Use the top
command to display Linux tasks. It provides a dynamic real-time view of the running system. This command shows the summary information of the system and the list of processes or threads which are currently managed by the Linux Kernel.
The following is the command syntax:
...