Jump to content English
hp.com home
HP Systems Insight Manager  |  Administering the Software  |  Discovery  |  Hosts File Extensions

Discovery
Hosts File Extensions

» HP Systems Insight Manager

»Table of Contents
»Index
»Product Overview
»Getting Started
»Monitoring Systems, Events, and Clusters
»Using Tasks
»Using Default Tools
»Reporting
»Administering the Software
»Users and Authorizations
»Users
»Backing Up and Restoring the Database
»Toolboxes
»System Groups
»Authorizations
»Managed Systems
»Audit Log
»Clusters
»Events
»Networking and Security
»Server Certificates
»Trusted Certificates
»Identification
»Filtering
»Discovery
»Configuring Automatic Discovery
»Managing Discovery Templates
»Adding a System Manually
»Managing Hosts Files
Hosts File Extensions
»IP Ranges
»System Types
»Status Polling
»Data Collection
»Protocols
»WMI Mapper Proxy
»Manage System Types
»Version Control Repository
»Troubleshooting
»Printable Version
»Glossary
»Using Help
Content starts here
» Introduction
» Default Values
» Related Procedure
» Related Topic

Introduction

Hosts files typically contain the IP address, the system name, any aliases, and user comments. The Hosts file that you create can contain additional information about systems. The information is displayed as one or more comments that precede the Host file entry for the system. Unless other values are specified, the default values are used. Defaults are provided for the parameters shown below.

parameterkeyword
device typeTYPE
SNMP timeoutsSNMP_TIM
SNMP retriesSNMP_RET
SNMP read communitySNMP_MON
SNMP write communitySNMP_CON

You can modify the Hosts file to substitute a value for the defaults for one entry or to change the default for all subsequent entries. To change values for a single system entry in a Hosts file, add a statement to the Hosts file as a comment on the line before the host entry as shown in the following example. The statement applies to the system it precedes and only to that system. In the following example, the default TYPE is changed to server for the system EngProliant.

keyword statementhosts files entries
#$IMXE:< Keyword=value > #$IMXE: TYPE=server
For example: #$IMXE: TYPE=server16.26.176.92 EngProliant.compaq.com EngProliant #user comments

To change the default globally so it affects the next file entry and all subsequent entries, use a statement as shown in the following example. The default is changed to router for the next entry. Router remains the default for all entries until another #$IMXE_DEFAULT statement changes the value. If a single instance of TYPE is changed by a #$IMXE statement, the default is not used for only the next entry and then reverts to router.

keyword statementHosts file entries

#$IMXE_DEFAULT: < Keyword=value>

#$IMXE_DEFAULT: TYPE=router

For example: #$IMXE_DEFAULT: TYPE=router

16.26.176.92 BldRtr6.compaq.com BldRtr6 #user comments

If a keyword parameter is omitted on a commented entry, the current default value is used. The current default is always the standard default unless a new default value was set using the #$IMXE_DEFAULT statement. For a keyword that contains more than one word, such as "management processor," enclose the full keyword in double quotation marks. Quotation marks are optional for single keywords like "server."

The following text quoted from a Hosts file illustrates several statements. The explanations, that begin with the pound sign (#), are not displayed in the Hosts file.

# Title: Systems in database # Sorted by: IP address # Date: 28-Mar-00 2:29:31 PM # Author: administrator The device EngProliant uses all current defaults. There are no additional comments. 16.26.176.92 EngProliant.compaq.com EngProliant #user comments The device testServer in the following example defaults for TYPE. The defaults for SNMP Timeouts and Retries were restored for this device but only apply to testServer. The SNMP write community string default was changed and only applies to testServer. #$IMXE: TYPE=Server #$IMXE: SNMP_TIM=0 SNMP_RET=0 SNMP_MON=public SNMP_CON=private 16.26.160.20 testServer.compaq.com testServer All defaults in the following example for the device BldRtr1 are the same as for testServer, but had to be specified because they are not the global defaults. These changes apply only to BldRtr1. #$IMXE: TYPE=Router #$IMXE: SNMP_TIM=0 SNMP_RET=0 SNMP_MON=public SNMP_CON=private 16.26.160.23 BldRtr1.compaq.com BldRtr1 For the device BldRtr5, the TYPE and protocols used for Discovery were changed from the current defaults. Because the remaining keyword entries are missing, the standard defaults are applied for the SNMP timeouts, retries, and community strings. #$IMXE: TYPE=Router 16.26.160.24 BldRtr5.compaq.com BldRtr5 For the device AcctServer, only the TYPE was changed from the current defaults. #$IMXE: TYPE=Server 16.26.176.36 AcctServer.compaq.com AcctServer #user comments The global default for TYPE was changed from Unknown to Router. All subsequent entries will be identified as routers until a TYPE statement is used to specify another type or restore the default. #$IMXE_DEFAULT: TYPE=Router 16.25.176.38 FloorRtr2a.compaq.com FloorRtr2a #user comments The default for the next host entry was changed to management processor, which is enclosed in quotes. #$IMXE: TYPE="Management Processor" AcctSvriLo.compaq.com 16.25.176.37 AcctSvriLo #user comments ...

Default Values

If a parameter is missing in the Hosts file, the default is applied.

keywordvaluedescription
TYPE

Complex

Desktop

Environmental Monitor

Handheld

Hub

KVM Switch

Management Processor

Notebook Cluster

Partition

Power Distribution Unit

Power Supply

Printer

Remote Access Device

Router

Server

Storage Device

Switch

Thin Client

UPS

Unknown

Unmanaged

Workstation

Unknown is the default
DMI

0

1

Disabled (Default)

Enabled

SNMP

0

1

Disabled (Default)

Enabled

HTTP

0

1

Disabled (Default)

Enabled

SNMP_TIM

0

greater than 0

System default (Default)

SNMP_RET

0

greater than 0

System default (Default)

SNMP_MON

Public

<Community String >

Read only (Default)

SNMP_CON

<Community String>

No default

Related Procedure

» Discovery - Managing Hosts Files

Related Topic

» Administering the Software - Discovery