Hitachi Energy
Commands
 
backupneconfig
Saves a copy of the current configuration of all NEs into the directory //opt/nem/cst/cfg/backup
corestart
Starts all daemons associated with the core component (agents and GUIs can only perform their tasks while these processes are running). Starts the daemons (handling the FOXMAN‑UN internal communications) and the database if they are not already running. Reactivates any suspended connections of open GUIs to the database.
corestop
Stops all daemons associated with the core component and the HLM daemons. Does not stop the IT daemons and the database.
edbbackup
Used to backup the FOXMAN‑UN database located on the local workstation. The database name and the backup device are specified by the default values in the FOXMAN‑UN configuration file.
The database can be backed up at any time. It is not necessary to stop daemons associated with the core component or to stop the agents or GUIs.
For command options see Manual Backup.
edbcreate
Used to (re)create an empty FOXMAN‑UN database (or clear an existing database). The database name and the backup device are specified by the default values in the FOXMAN‑UN configuration file. There is no command to delete or clear a database. Note that the edbcreate command (with the -f option; force full restore) automatically deletes the old database.
An empty database is created automatically when the core component is installed.
For command options see Creation of the FOXMAN‑UN Database.
edblist
Lists the available database(s). Command options:
[nemadmin] edblist --help
Usage: edblist [OPTION]
Options:
-l, --full-list Display all databases with full information.
-h, --help Print this message.
edbrestore
Used to restore the FOXMAN‑UN database backed up with the edbbackup command. Restoration can only be performed when the database is not active. This means that the daemons associated with the core component, as well as the agents and GUIs must all be stopped (i.e. with the Remote Admin Tool or the nemstop command).
The database name and the backup device are specified by the default values in the /opt/nem/etc/database.conf file.
For command options see Local Restore via Command Line.
enpcorestop
Used to stop the ENP core. Only to be used after importing, adding or editing Class-Types during the basic commissioning of the Ethernet Networking package. The command is called via /opt/nem/bin/private/enpcorestop.
enpcorestart
Used to start the ENP core. Only to be used after the ENP core has been stopped with the command enpcorestop. The command is called via /opt/nem/bin/private/enpcorestart.
Force Polling
Initiates a polling of the current configuration, inventory and alarm states from a selected NE. Available in the GUI (NEM Browser and NEM Configurator).
killem
Kills the EM (client). Command options:
[nemadmin] killem --help
Usage: killem [OPTION]
Options:
-p, --process-id=ID Process ID
-l, --hostname=HOSTNAME Hostname
-u, --user=USERNAME Username
-h, --help Print this message.
lsbackup
Lists the details of the last local backup created via command line. Command options:
[nemadm] lsbackup --help
Usage: lsbackup [OPTION]
Options:
-b, --backup=FILENAME Backup device name. This parameter is optional.
The default value is defined by the variable
‘local_backup_device’ of the ‘nem.conf? file.
-h, --help Print this message.
Examples: lsbackup -b /local/nem/nemdatabase.bck
lsea
Lists information about the agents. Command options:
[nemadm] lsea --help
Usage: lsea [OPTION]
Options:
-l, --full-list Display the full EA’s information.
-h, --help Print this message.
lsem
Lists the number of running GUIs (NEM Network Browsers, NEM Configurators, FOXCSTs, UCSTs, Synchronization Maps).
 
Note:
Alarm Views and Hardware Views are only counted if they were started from the NEM Configurator. If they are started from the NEM Network Browser they cannot be counted.
Command options:
[nemadm] lsem --help
Usage: lsem [OPTION]
Options:
-x, --connected-processes Show all connected EM processes of all users
-a, --local-processes Show all local EM processes of all users
-u, --local-processes-current-user Show all local EM processes of the current user
-h, --help Print this message.
lslicense
Lists information about the License Key and which options are enabled. Command options:
[nemadm] lslicense --help
Usage: lslicense [OPTION]
Options:
-t, --product-type_TYPE Shows information about BASE only.
-h, --help Print this message.
lsnem
Lists information about all the FOXMAN‑UN components. It is a combination of the output of the lscore, lsea commands. Command options:
[nemadm] lsnem --help
Usage: lsnem [OPTION]
Options:
-b, --base-only Shows information about BASE only.
-c, --core-only Shows information about CORE only.
-l, --hlm-only Shows information about HLM only.
-n, --np-only Shows information about NP only.
-h, --help Print this message.
nemlogin
Starts the Login GUI
nembasestart
Starts the NEM base services.
nembasestop
Stops the NEM base services.
 
Note:
Once completed, FOXMAN-UN is not running anymore.
nemstart
Starts all daemons associated with the core component as well as the installed and licensed HLM daemons, the IT daemons and the database. Reactivates any suspended connections of open GUIs to the database.
nemstop
Stops all daemons associated with the core component and stops the HLM daemons and the database. Suspends the connections of all open GUIs to the database..
nemsysinfo
Lists detailed FOXMAN‑UN system information, including the system ID, NEM version, installed NEM and database packages, and the NEM license.
nemuser
A shell script to simplify host user creation in Linux. The script executes the “useradd” system call with the appropriate options to create the user with home directory in
“/home”. The script is installed in /opt/nem/bin.
You must be root to execute this command. Command options:
[root] nemuser --help
Usage: nemuser -a -u user | -b backup_device [-f]> [-d parent_dir_for_home]
nemuser -r -u user
Options:
-a, --add Add the user
-r, --remove Remove the user (and the home directory)
-u, --user=USERNAME Name of the user
-b, --backup=FILENAME Backup device or file name, where to extract user list from, by default only users having passwd file format entries will be taken, override this with the -f option.
-f, --force-non-passwd-format-user When using -b option force to also add users without passwd file format entries, by default the parent directory for these users will be '/home', override this with the -d option.
-d, --parent-directory=DIR Parent directory for the user's home. Optional, default: '/home'. When using -b and -f options this specifies the parent directory for those users not having a passwd file format entry in the user list
-h, --help Print this message.
Note: Before using nemuser with the -b option show the user list using the
following command:
su nemadm -c 'edbrestore -u -b nem.bkp'
Examples: nemuser -a -u operator
Adds the user 'operator', creating home dir: /home/operator
nemuser -r -u operator
Removes the user 'operator')
nemuser -a -u operator -d /opt/nem
Adds the user 'operator', creating home dir: /opt/nem/operator)
nemuser -a -b nem.bkp
Adds the users found in the specified NEM backup file,
creating home dir: as defined in the backup)
netalarmsynch
Synchronizes the alarm database with the current alarm status of the entire managed network. Useful when activating a standby FOXMAN‑UN system.
npgenreports
Runs the NP Reporting Tool which generates a set of 10 report files containing information on NEs, units, ports, applications, customers, sections and transport entities. The files are written into a time stamped directory under /opt/nem/var/reports. Command options:
[root] npgenreports --help
Usage: npgenreports [OPTION]
Options:
-x, --extra-reports-only Generates extra reports only. Exit code is number of errors.
-h, --help Print this message.
npresynch
Used to synchronize the NP objects with BP NE data. Command options:
[root] npresynch --help
Usage: npresynch [OPTION]
Options:
-F, --Force-resync Force resynchronization of provided NEs
-f, --force-kill-np-service Force kill NP service
-t, --generate-endpoint-labels Generate transport entity and point labels
-h, --help Print this message.
Examples: npresynch [ -F "NEName1" "NEName2" …] [ -f ]
npresynchfo
Used to synchronize the NP objects with BP FO data.
smtool
Runs the system monitoring script. This checks a number of system functions and generates alarms to the system alarm NE and entries to the “/opt/nem/var/log/smtool.txt” file.
snmpstart
Starts the SNMP daemon.
snmpstop
Stops the SNMP daemon.
stringtool
Encrypts FOX61x access passwords for entry as FOX61x default passwords in the nem.conf file.