Home
last modified time | relevance | path

Searched full:hostname (Results 1 – 25 of 552) sorted by relevance

12345678910>>...23

/openbmc/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/
H A Dhostname.sh7 # Provides: hostname
12 # Short-Description: Set hostname based on /etc/hostname
14 HOSTNAME=$(/bin/hostname)
16 hostname -b -F /etc/hostname 2> /dev/null
21 # Busybox hostname doesn't support -b so we need implement it on our own
22 if [ -f /etc/hostname ];then
23 hostname `cat /etc/hostname`
24 elif [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" -o ! -z "`echo $HOSTNAME | sed -n '/^[0-9]*\.[0-9].…
25 hostname localhost
/openbmc/webui-vue/src/views/Settings/Network/
H A DModalHostname.vue3 id="modal-hostname"
8 <b-form id="hostname-settings" @submit.prevent="handleSubmit">
12 :label="$t('pageNetwork.hostname')"
13 label-for="hostname"
16 id="hostname"
17 v-model="form.hostname"
19 :state="getValidationState(v$.form.hostname)"
20 @input="v$.form.hostname.$touch()"
23 <template v-if="v$.form.hostname.required.$invalid">
26 <template v-if="v$.form.hostname.validateHostname.$invalid">
[all …]
/openbmc/openbmc-test-automation/redfish/extended/
H A Dtest_bmc_file_mirroring.robot25 # /etc/hostname
34 # Save off the original hostname.
36 ... cat /etc/hostname
37 Set Suite Variable ${hostname} ${orig_hostname}
41 Configure Hostname ${mirror_filename}
42 ${curr_hostname} ${stderr} ${rc}= BMC Execute Command hostname
45 …... msg=The hostname interface ${mirror_filename} and command value ${curr_hostname} do not match.
47 # File "hostname" should have synced to alt media space.
49 # group group- gshadow gshadow- hostname machine-id ssl systemd
55 ... cat /media/alt/var/persist/etc/hostname
[all …]
/openbmc/phosphor-networkd/src/
H A Dsystem_configuration.cpp38 auto it = values.find("Hostname"); in SystemConfiguration()
43 sc.get().Iface::hostName(std::get<std::string>(it->second)); in SystemConfiguration()
47 lg2::error("Hostname match parsing failed: {ERROR}", "ERROR", in SystemConfiguration()
59 req.append(HOSTNAMED_INTF, "Hostname");
62 SystemConfigIntf::hostName(std::get<std::string>(name), true);
66 lg2::error("Failed to get hostname: {ERROR}", "ERROR", e);
72 std::string SystemConfiguration::hostName(std::string name) in hostName() function in phosphor::network::SystemConfiguration
74 if (SystemConfigIntf::hostName() == name) in hostName()
84 return SystemConfigIntf::hostName(std::move(name)); in hostName()
88 lg2::error("Failed to set hostname {HOSTNAME}: {ERROR} ", "HOSTNAME", in hostName()
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/misc/
H A Dphosphor-misc_git.bb8 first-boot-set-hostname \
13 PACKAGECONFIG[first-boot-set-hostname] = "-Dfirst-boot-set-hostname=enabled, -Dfirst-boot-set-hostn…
24 SYSTEMD_SERVICE:${PN}-first-boot-set-hostname = "first-boot-set-hostname.service"
38 RDEPENDS:${PN}-first-boot-set-hostname += "bash"
42 # first-boot-set-hostname
43 FILES:${PN}-first-boot-set-hostname = "${bindir}/first-boot-set-hostname.sh"
52 …${@bb.utils.contains('PACKAGECONFIG', 'first-boot-set-hostname', '${PN}-first-boot-set-hostname', …
/openbmc/phosphor-networkd/docs/
H A DNetwork-Configuration.md68 }' https://<hostname/ip>/xyz/openbmc_project/network/eth0/action/IP
81 https://<hostname/ip>/xyz/openbmc_project/network/config/attr/DefaultGateway
94 https://<hostname/ip>/xyz/openbmc_project/network/config/attr/DefaultGateway
100 ### Configure HostName
107 xyz.openbmc_project.Network.SystemConfiguration HostName
110 https://<hostname/ip>/xyz/openbmc_project/network/config/attr/HostName
118 xyz.openbmc_project.Network.SystemConfiguration HostName s "<HostName>"
121 "<hostname>"}'
122 https://<hostname/ip>/xyz/openbmc_project/network/config/attr/HostName
138 https://<hostname/ip>/xyz/openbmc_project/network/eth0/ipv4/fbfc29b
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/postfix/files/
H A Dcheck_hostname.sh3 HOSTNAME=$(/bin/hostname)
5 if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" -o ! -z "`echo $HOSTNAME | sed -n '/^[0-9]*\.[0-9].*/…
6 # If hostname is invalid, and myhostname not existed in main.cf
/openbmc/docs/designs/
H A Dunique-hostname.md1 # Setting a unique hostname to the BMC machine on first boot
11 In OpenBMC, the hostname discovery is done by the avahi Dbus service at the
13 getting the hostname conflict and the service name conflict. Hence, the problem
18 The detailed issue regarding the hostname and service name conflicts is
31 To solve this, we are proposing a service which assigns a unique hostname to the
33 hostname is to append the Serial Number retrieved from Inventory Manager to the
34 existing default hostname.
/openbmc/openbmc/meta-openpower/recipes-phosphor/network/first-boot-set-hostname/
H A Dfirst-boot-set-hostname.sh5 echo "$@" | systemd-cat -t first-boot-set-hostname -p emerg
46 show_error "BMC Serial Number empty! Setting Hostname as 'hostname + mac address' "
63 show_error 'No Ethernet interface found in the Inventory. Unique hostname not set!'
75 hostnamectl set-hostname "$(hostname)-${MAC_ADDR}"
77 hostnamectl set-hostname "$(hostname)-${BMC_SN}"
85 touch "/var/lib/first-boot-set-hostname"
/openbmc/openbmc/meta-google/recipes-google/console/glome-login/
H A Dglome-login.sh.in17 HOSTNAME="$(hostname)"
20 if [[ "$HOSTNAME" =~ ^([^-.]+)[^.]*(.*[.]corp[.]google[.]com)$ ]]; then
22 HOSTNAME="${BASH_REMATCH[1]}${BASH_REMATCH[2]}"
25 if [[ "${HOSTNAME}" == *"@HOSTNAME_SUFFIX@" ]]; then
26 # Valid hostname is already set, invoke normal glome
27 exec /usr/sbin/glome-login -M "${HOSTNAME}" "${USER}"
39 WARN_MSG="WARNING: Hostname is not set, using Board Serial Number"
/openbmc/phosphor-misc/firstboot/
H A Dfirst-boot-set-hostname.sh5 echo "$@" | systemd-cat -t first-boot-set-hostname -p emerg
43 show_error "BMC Serial Number empty! Setting Hostname as 'hostname + mac address' "
58 show_error 'No Ethernet interface found in the Inventory. Unique hostname not set!'
69 hostnamectl set-hostname "$(hostname)-${MAC_ADDR}"
71 hostnamectl set-hostname "$(hostname)-${BMC_SN}"
79 touch "/var/lib/first-boot-set-hostname"
H A Dmeson.build4 required: get_option('first-boot-set-hostname'),
24 'first-boot-set-hostname.sh',
30 input: 'first-boot-set-hostname.service',
31 output: 'first-boot-set-hostname.service',
/openbmc/bmcweb/include/
H A Dhostname_monitor.hpp74 const std::string* hostname = nullptr; in onPropertyUpdate() local
77 if (propertyPair.first == "HostName") in onPropertyUpdate()
79 hostname = std::get_if<std::string>(&propertyPair.second); in onPropertyUpdate()
82 if (hostname == nullptr) in onPropertyUpdate()
87 BMCWEB_LOG_DEBUG("Read hostname from signal: {}", *hostname); in onPropertyUpdate()
123 "Current HTTPs Certificate Subject CN: {}, New HostName: {}, isSelfSigned: {}", in onPropertyUpdate()
124 cnValue, *hostname, isSelfSigned); in onPropertyUpdate()
136 cnValue != *hostname) in onPropertyUpdate()
140 *hostname); in onPropertyUpdate()
142 std::string certData = ensuressl::generateSslCertificate(*hostname); in onPropertyUpdate()
[all …]
/openbmc/u-boot/board/keymile/scripts/
H A Dramfs-common.txt8 rootfsfile=${hostname}/rootfsImage
10 …set_fdthigh || test ${arch} != arm; then tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb; else …
11 tftpkernel=tftpboot ${load_addr_r} ${hostname}/${uimage}
12 tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage
/openbmc/phosphor-webui/app/server-health/directives/
H A Dremote-logging-server-modal.html10 <label for="remoteServerIP">Hostname or IP Address</label>
11 <input id="remoteServerIP" type="text" required name="hostname"
12 ng-model="remoteServerForm.hostname" />
13 <div ng-if="form.hostname.$invalid && form.hostname.$dirty"
15 <span ng-show="form.hostname.$error.required">Field is required</span>
31 {{remoteServer.hostname}}?</p>
/openbmc/bmcweb/http/
H A Dmutual_tls.cpp51 bool isUPNMatch(std::string_view upn, std::string_view hostname) in isUPNMatch() argument
61 // The hostname should match the domain part of the UPN in isUPNMatch()
72 std::string_view hostDomainMatching = hostname; in isUPNMatch()
73 size_t dotHostPos = hostname.find_last_of('.'); in isUPNMatch()
76 hostDomainMatching = hostname.substr(dotHostPos + 1); in isUPNMatch()
90 hostname = hostname.substr(0, dotHostPos); in isUPNMatch()
94 std::string getUPNFromCert(X509* peerCert, std::string_view hostname) in getUPNFromCert() argument
132 if (!isUPNMatch(upn, hostname)) in getUPNFromCert()
159 std::string hostname = getHostName(); in getUsernameFromCert() local
160 if (hostname.empty()) in getUsernameFromCert()
[all …]
/openbmc/qemu/migration/
H A Dtls.c122 const char *hostname, in migration_tls_client_create() argument
134 hostname = tls_hostname; in migration_tls_client_create()
137 return qio_channel_tls_new_client(ioc, creds, hostname, errp); in migration_tls_client_create()
142 const char *hostname, in migration_tls_channel_connect() argument
147 tioc = migration_tls_client_create(ioc, hostname, errp); in migration_tls_channel_connect()
152 /* Save hostname into MigrationState for handshake */ in migration_tls_channel_connect()
153 s->hostname = g_strdup(hostname); in migration_tls_channel_connect()
154 trace_migration_tls_outgoing_handshake_start(hostname); in migration_tls_channel_connect()
/openbmc/openbmc/poky/meta/recipes-extended/net-tools/
H A Dnet-tools_2.10.bb23 PACKAGECONFIG ??= "hostname arp serial plip"
24 PACKAGECONFIG[hostname] = ""
41 if ${@bb.utils.contains('PACKAGECONFIG', 'hostname', 'true', 'false', d)} ; then
90 …${@bb.utils.contains('PACKAGECONFIG', 'hostname', 'dnsdomainname domainname hostname nisdomainname…
94 ALTERNATIVE:${PN}-doc += "${@bb.utils.contains('PACKAGECONFIG', 'hostname', 'hostname.1 dnsdomainna…
95 ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1"
97 ALTERNATIVE_PRIORITY[hostname.1] = "10"
/openbmc/openbmc-test-automation/ipmi/dcmi/
H A Dtest_dcmi_management_controller.robot20 ${hostname_file_path} /etc/hostname
44 Test Hostname Is Same With Management Controller Identifier String
45 [Documentation] Check hostname was verified with get management
51 ${bmc_console_hostname_bytes_list}= Get Hostname From BMC Console
54 …... msg=response get from dcmi get mcid cmd and hostname from "cat /etc/os-release" cmd is not sa…
62 # Set Hostname via DCMI Management Controller Identifier String Command.
101 …# Verify Hostname of cat /etc/hostname and get dcmi management controller identifier string comman…
102 ${bytes_list}= Get Hostname From BMC Console
105 …... msg=Bytes got from dcmi get mcid command and hostname from "cat /etc/os-release" command is n…
162 Get Hostname From BMC Console
[all …]
/openbmc/ipmitool/contrib/
H A Dcreate_webpage_compact.sh10 hostname=$HOSTNAME
54 <title>$hostname</title>
57 <h2>$hostname</h2>
73 file="$rrd_dir/$hostname-${split[0]}.rrd"
108 <RRD::GRAPH "$img_dir/$hostname-$group-daily.gif"
121 <RRD::GRAPH "$img_dir/$hostname-$group-weekly.gif"
135 <RRD::GRAPH "$img_dir/$hostname-$group-monthly.gif"
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/
H A Dhyp_sys_config.hpp46 /** @brief set the hostname of the system.
49 std::string hostName(std::string name) override;
51 /** @brief get hostname from bios and set the data member
56 /** @brief get the hostname from the system by doing
61 /** @brief set the hostname set in dbus obj in the basebiostable
62 * @param[in] name - hostname that is set in dbus obj
/openbmc/openbmc-test-automation/redfish/managers/
H A Dtest_bmc_network_conf.robot102 Get Hostname And Verify
103 [Documentation] Get hostname via Redfish and verify.
106 ${hostname}= Redfish_Utils.Get Attribute ${REDFISH_NW_PROTOCOL_URI} HostName
108 Validate Hostname On BMC ${hostname}
110 Configure Hostname And Verify
111 [Documentation] Configure hostname via Redfish and verify.
114 ... Configure Hostname ${hostname} AND Validate Hostname On BMC ${hostname}
116 ${hostname}= Redfish_Utils.Get Attribute ${REDFISH_NW_PROTOCOL_URI} HostName
118 Configure Hostname ${test_hostname}
119 Validate Hostname On BMC ${test_hostname}
[all …]
/openbmc/openbmc/meta-yadro/meta-vegman/recipes-yadro/fru/vegman-fru-handler/
H A Dbaseboard-fru-handler.sh162 ######## Check and set hostname ########
163 hostname=$(hostname)
164 if [ "${OPENBMC_TARGET_MACHINE}" = "${hostname}" ] ; then
165 hostname="${modelName,,}-${serialNumber}"
166 log_msg "Changing hostname to ${hostname}"
168 if ! hostnamectl set-hostname "${hostname}"; then
169 log_err "Failed to set new hostname"
/openbmc/openbmc/poky/meta/recipes-core/base-files/
H A Dbase-files_3.0.14.bb65 # By default the hostname is the machine name. If the hostname is unset then a
66 # /etc/hostname file isn't written, suitable for environments with dynamic
69 # The hostname can be changed outside of this recipe by using
70 # hostname:pn-base-files = "my-host-name".
71 hostname = "${MACHINE}"
115 # deal with hostname
116 if [ "${hostname}" ]; then
117 echo ${hostname} > ${D}${sysconfdir}/hostname
118 echo "127.0.1.1 ${hostname}" >> ${D}${sysconfdir}/hosts
167 …{PN} = "${sysconfdir}/fstab ${@['', '${sysconfdir}/hostname ${sysconfdir}/hosts'][(d.getVar('hostn…
/openbmc/openbmc-test-automation/gui/test/server_overview/
H A Dtest_obmc_gui_server_overview.robot97 [Documentation] Get BMC hostname, version, IP, and MAC address via GUI and verify using REST
102 ${hostname}= Get BMC Hostname
103 ${hostname}= Remove String ${hostname} '
104 ${hostname}= Fetch From Right ${hostname} :
105 Verify Display Content ${hostname}

12345678910>>...23