www.apc.com / www.mgeups.com
THE UNINTERRUPTIBLE POWER PROVIDER
Network Shutdown Module V3 – User Manual - APC # 990-3630 (MGE # 34 003 934 XU / AB) Page 42/66
7.5.3 Install the Shutdown Module in silent mode
In addition to Network Shutdown Module installation in standard mode where the user configures the
parameters during the installation, it is possible to install Network Shutdown Module in silent mode i.e. with no
user interaction.
Follow these steps to install Network Shutdown Module in silent mode:
ω Make sure you have administrator rights.
ω Build a customized package with specific parameters (ex: The Network Management Card IP address,
the events and actions …).
ω Copy this package to the “target” machine in your chosen directory.
ω (Linux) If necessary execute the command: chmod 755 nsm_linux_xx_3_xx_xx.run
ω To start the installation procedure, run the command:
<Filename> -install -silent to validate silent mode for Windows.
./<Filename> -install -silent to validate silent mode for Unix.
Or to provide the card IP address as parameter to the installer run the command:
<Filename> -install -silent –agentName 192.12.13.14 (Windows)
./<Filename> -install –silent –agentName 192.12.13.14 (Linux)
Note: for the other options refer to the next paragraph
ω The installed software is automatically started. It is possible to test Network Shutdown Module.
Example of secured deployment script for Linux:
We use ssh to copy the package on several machines and then execute it.
The script iterates on the machine names.
#!/bin/sh
# Notes :
# - Actions to be performed under root account
# - The target.list file contains the target machine names (1 per line)
# - All theses machines must accept automatic ssh connection.
# - It must be authorized with a key generation on the master
# (machine that executes the script) using "ssh-keygen -t rsa2",
# - Then copy the file ~/.ssh/id_rsa.pub to the target machines
# - and add its content into the file ~/.ssh/known_hosts, ie
# "cat id_rsa.pub >> ~/.ssh/known_hosts"
for i in `cat target.list`
do
echo "Network Shutdown Module Installation on machine $i"
scp nsmlinuxv3xxx.run $i:/tmp
ssh $i /tmp/nsmlinuxv3xxx.run –install -silent
done