Searched refs:hostid (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/cmd/hostid/smf/
H A Dsvc-hostid36 if [ -f /etc/hostid ]; then
39 host=`/usr/bin/hostid`
40 echo "# DO NOT EDIT" > /etc/hostid
42 printf "\"%s\"\n" $r >> /etc/hostid
H A DMakefile28 MANIFEST = hostid.xml
29 METHOD = svc-hostid
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dgethostid.c56 unsigned long hostid; local
68 hostid = strtoul(name, &end, 10);
69 if (hostid == 0 && end == name) {
72 return ((long) hostid);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgethostid.c44 unsigned long hostid; local
52 hostid = strtoul(name, &end, 10);
55 return ((long)hostid);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/
H A Dsetup.ksh34 SunOS) hostid >/var/tmp/zfs_test_hostid.txt
H A Dmmp.kshlib103 typeset hostid=$1
107 a=${hostid:6:2}
108 b=${hostid:4:2}
109 c=${hostid:2:2}
110 d=${hostid:0:2}
114 if [ $(hostid) != "$hostid" ]; then
120 # Given a hostid in hex, we have to convert to decimal, then
122 # 'hostid' command will get the decimal SI_HW_SERIAL value via
125 typeset dec=$(mdb -e "$hostid
[all...]
/illumos-gate/usr/src/cmd/hostid/
H A DMakefile26 PROG= hostid
31 # the SMF pieces that set up the software-defined hostid on
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_pool.c156 * Allow the hostid to be subverted for testing.
160 ulong_t hostid = strtoull(env, NULL, 16); local
161 return (hostid & 0xFFFFFFFF);
H A Dzutil_import.c486 uint64_t hostid; local
569 * hostid (if available)
598 hostid = 0;
600 ZPOOL_CONFIG_HOSTID, &hostid) == 0) {
602 ZPOOL_CONFIG_HOSTID, hostid);
849 if (hostid != 0) {
851 hostid) == 0);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c212 uint64_t hostid = 0; local
257 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid);
258 if (hostid != 0 && (unsigned long)hostid != system_hostid &&
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c202 hostid_t hostid; member in struct:host_id_list
284 if (hostp->hostid.platform &&
285 strcmp(hostp->hostid.platform, platform) == 0 &&
286 hostp->hostid.server &&
287 strcmp(hostp->hostid.server, server) == 0 &&
288 (chassis == NULL || hostp->hostid.chassis == NULL ||
289 strcmp(chassis, hostp->hostid.chassis) == 0) &&
290 (product_sn == NULL || hostp->hostid.product_sn == NULL ||
291 strcmp(product_sn, hostp->hostid.product_sn) == 0) &&
292 (domain == NULL || hostp->hostid
505 new_record_init(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected) argument
686 catalog_new_record(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected, boolean_t dummy_fru) argument
[all...]
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c98 int hostidf = 0; /* 0 == print hostid with other info, */
99 /* 1 == print just the hostid */
204 char hostid[256], *end; local
239 * Prints hostid of machine.
241 if (sysinfo(SI_HW_SERIAL, hostid, sizeof (hostid)) == -1) {
242 fprintf(stderr, "hostid: sysinfo failed\n");
245 hostval = strtoul(hostid, &end, 10);
246 if (hostval == 0 && end == hostid) {
247 fprintf(stderr, "hostid
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_config.c367 unsigned long hostid = 0; local
417 hostid = spa_get_hostid();
418 if (hostid != 0) {
419 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid);
H A Dspa.c2441 uint64_t hostid = 0; local
2486 * on the same host which last imported it. Since the hostid from
2490 hostid = fnvlist_lookup_uint64(label, ZPOOL_CONFIG_HOSTID);
2492 if (hostid == spa_get_hostid())
2663 * spa->spa_load_info nvlist. If the remote hostname or hostid are
2669 * ZPOOL_CONFIG_MMP_HOSTID - hostid from the active pool
2673 uint64_t hostid = 0; local
2684 hostid = fnvlist_lookup_uint64(mmp_label,
2687 ZPOOL_CONFIG_MMP_HOSTID, hostid);
2708 uint64_t hostid; local
[all...]
/illumos-gate/usr/src/ucbcmd/
H A DMakefile105 hostid \
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c112 ulong_t hostid; local
130 * Convert the hostid to hex. The returned string must match
131 * the string returned by hostid(1).
133 hostid = strtoul(hostidstr, 0, 0);
134 (void) snprintf(hostidstr, sizeof (hostidstr), "%lx", hostid);
135 reply.hostid = hostidstr;
295 ulong_t hostid; local
315 * Convert the hostid to hex. The returned string must match
316 * the string returned by hostid(1).
318 hostid
[all...]
H A Dndmp.x372 string hostid<>;
438 string hostid<>;
/illumos-gate/usr/src/cmd/zonecfg/
H A Dzonecfg_lex.l301 <TSTATE>hostid { return HOSTID; }
302 <CSTATE>hostid { return HOSTID; }
/illumos-gate/usr/src/cmd/make/bin/
H A Dglobals.cc178 long int hostid; variable
/illumos-gate/usr/src/uts/i86pc/os/
H A Dstartup.c162 static char hostid_file[] = "/etc/hostid";
1741 * Originally clconf_init() apparently needed the hostid. But
1743 * By placing the hostid logic here, we are able to make use of
1747 cmn_err(CE_WARN, "Unable to set hostid");
2350 * for reading the hostid from the legacy file (/kernel/misc/sysinit).
2850 * to set one based on the contents of /etc/hostid. If this file does
2851 * not exist, assume that we are to generate a new hostid and set
2856 * /etc/hostid does not exist, we will attempt to get a serial number
2864 * In an attempt to make the hostid less prone to abuse
2865 * (for license circumvention, etc), we store it in /etc/hostid
2942 int32_t hostid = (int32_t)HW_INVALID_HOSTID; local
[all...]
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_var.h1213 * invalid hostid.
1218 * Get/Set hostid from SCSI port configuration page
1221 #define MPTSAS_SET_HOST_ID(hostid) (hostid | ((1 << hostid) << 16))
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_main.c2212 uint64_t hostid = 0; local
2311 "when the system hostid is not set.\n"));
2457 hostid = fnvlist_lookup_uint64(nvinfo,
2461 "exported from %s (hostid=%lx)\n\tbefore it "
2463 (unsigned long) hostid);
2467 "svc:/system/hostid service.\n"));
2523 uint64_t hostid = 0; local
2527 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid);
2529 if (state != POOL_STATE_EXPORTED && hostid != get_system_hostid())
2577 uint64_t hostid local
2599 uint64_t hostid = 0; local
[all...]
/illumos-gate/usr/src/cmd/make/include/mk/
H A Ddefs.h298 extern long int hostid;
/illumos-gate/usr/src/man/man1/
H A DMakefile163 hostid.1 \
/illumos-gate/usr/src/cmd/
H A DMakefile204 hostid \

Completed in 111 milliseconds

12