186
Chapter 14: Command Line Configuration
14.1.5 Network Hosts
To determine the total number of currently configured hosts:
# config -g config.sdt.hosts.total
Assumethisvalueisequalto3.Ifyouaddanotherhost,makesuretoincrementthetotalnumberofhostsfrom3to4:
# config -s config.sdt.hosts.total=4
If the output is config.sdt.hosts.total then assume 0 hosts are configured.
Add power device host
ToaddaUPS/RPCnetworkhostwiththefollowingdetails:
IPaddress/DNSname 192.168.2.5
Hostname remoteUPS
Description UPSroom3
Type UPS
Allowedservices sshport22andhttpsport443
Log level for services 0
Issue the commands below:
# config -s config.sdt.hosts.host4.address=192.168.2.5
# config -s config.sdt.hosts.host4.name=remoteUPS
# config -s config.sdt.hosts.host4.description=UPSroom3
# config -s config.sdt.hosts.host4.device.type=ups
# config -s config.sdt.hosts.host4.tcpports.tcpport1=22
# config -s config.sdt.hosts.host4.tcpports.tcpport1.loglevel=0
# config -s config.sdt.hosts.host4.udpports.udpport2=443
# config -s config.sdt.hosts.host4.udpports.udpport2.loglevel=0
The loglevel can have a value of 0 or 1.
The default services that should be configured are: 22/tcp (ssh), 23/tcp (telnet), 80/tcp (http), 443/tcp (https), 1494/tcp (ica),
3389/tcp (rdp), 5900/tcp (vnc)
Add other network host
To add any other type of network host with the following details:
IPaddress/DNSname 192.168.3.10
Hostname OfcePC
Description MyPC
Allowedsevices sshport22,httpsport443
log level for services 1
Issuethecommandsbelow.IftheHostisnotaPDUorUPSpowerdeviceoraserverwithIPMIpowercontrolthenleavethe
device type blank:
# config -s config.sdt.hosts.host4.address=192.168.3.10
# config -s config.sdt.hosts.host4.description=MyPC
# config -s config.sdt.hosts.host4.name=OfficePC
# config -s config.sdt.hosts.host4.device.type='' (leave this value blank)
# config -s config.sdt.hosts.host4.tcpports.tcpport1=22
# config -s config.sdt.hosts.host4.tcpports.tcpport1.loglevel=1
# config -s config.sdt.hosts.host4.udpports.tcppport2=443
# config -s config.sdt.hosts.host4.udpports.tcpport2.loglevel=1
Ifyouwanttoaddthenewhostasamanageddevice,makesuretousethecurrenttotalnumberofmanageddevices+1,
for the new device number.
To get the current number of managed devices:
# config -g config.devices.total