This command adds a new host to the host repository.
Table 7–10 Arguments and Results for the hdb.h.add Command
Argument/Result |
Syntax |
Description |
|
---|---|---|---|
name |
[R] |
String |
The host name |
desc |
[O] |
String |
The host description |
tID |
[R] |
HostTypeID |
The ID of the host type |
attr |
[O] |
Hashtable |
The host attributes |
hide |
[O] |
Boolean |
Whether the host is hidden, default false |
pID |
[O] |
HostID |
The ID of the parent host if virtual, or empty if physical |
result |
Host |
The new host |
The -attr argument only sets the overrides. Attributes not explicitly included retain their default value.