{}

Nos marques

Consulter notre FAQ
How to edit the hosts file that is on the system PowerChute Network Shutdown has been installed onto.

Issue:
How to edit the network hosts file on the system PowerChute Network Shutdown has been installed onto.

Product:
PowerChute Network Shutdown versions 4.x or 5.x

Environment:
Windows OS,
PowerChute Virtual Machine (VM)
Linux OS

Cause:
The network hosts file must be edited to allow connection to a system if the Domain system is offline.

Solution:

Windows OS:
Using a text editor such as Word or Notepad, edit C:\Windows\System32\drivers\etc\hosts

In the example below, we have added the IP addresses and domain names of three servers.

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column, followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost
192.168.0.137  Server1.home.local  Server1
192.168.0.152  Server2.home.local  Server2
192.168.0.153  Server3.home.local  Server3


PowerChute Virtual Machine and other Linux OS:

Use vi editor and edit /etc/hosts

For example:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.137 Server1.home.local Server1
192.168.0.152 Server2.home.local Server2
192.168.0.153 Server3.home.local Server3

NOTE: If you are not comfortable with using vi editor:

1. Verify that SSH is running on the PowerChute VM or the Linux OS. The command is systemctl status sshd.
If SSH is not running, enter the command systemctl start sshd.
2. Next, open a connection to the PowerChute VM or Linux OS from a Windows system using an SSH program, e.g., Filezilla or WinSCP.
3. Log in as root
4. Navigate to /etc
5. Right-click on the hosts file and select viewed/edited.

In the example below we log in to the PowerChute VM.

Filezilla log in

Note: Hostname entries in Linux OS are case sensitive.

Please do not forget to save the file after editing.

APC Belgium

En savoir plus
Gamme :
Les articles qui pourraient être utiles
En savoir plus
Gamme :