/openbmc/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/ |
H A D | hostname.sh | 7 # 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 D | ModalHostname.vue | 3 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 D | test_bmc_file_mirroring.robot | 23 # /etc/hostname 32 # Save off the original hostname. 34 ... cat /etc/hostname 35 Set Suite Variable ${hostname} ${orig_hostname} 39 Configure Hostname ${mirror_filename} 40 ${curr_hostname} ${stderr} ${rc}= BMC Execute Command hostname 43 …... msg=The hostname interface ${mirror_filename} and command value ${curr_hostname} do not match. 45 # File "hostname" should have synced to alt media space. 47 # group group- gshadow gshadow- hostname machine-id ssl systemd 53 ... cat /media/alt/var/persist/etc/hostname [all …]
|
/openbmc/phosphor-networkd/docs/ |
H A D | Network-Configuration.md | 68 }' 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/phosphor-networkd/src/ |
H A D | system_configuration.cpp | 38 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 D | phosphor-misc_git.bb | 8 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/linux/fs/smb/client/ |
H A D | dns_resolve.c | 10 * Contains the CIFS DFS upcall routines used for hostname to 34 const char *hostname, *sep; in dns_resolve_server_name_to_ip() local 49 hostname = unc + 2; in dns_resolve_server_name_to_ip() 52 sep = memchr(hostname, '/', len); in dns_resolve_server_name_to_ip() 54 len = sep - hostname; in dns_resolve_server_name_to_ip() 59 /* Try to interpret hostname as an IPv4 or IPv6 address */ in dns_resolve_server_name_to_ip() 60 rc = cifs_convert_address(ip_addr, hostname, len); in dns_resolve_server_name_to_ip() 63 hostname); in dns_resolve_server_name_to_ip() 68 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip() 72 __func__, len, len, hostname); in dns_resolve_server_name_to_ip() [all …]
|
H A D | trace.h | 983 TP_PROTO(char *hostname, 986 TP_ARGS(hostname, conn_id, dst_addr), 988 __string(hostname, hostname) 998 __assign_str(hostname, hostname); 1002 __get_str(hostname), 1008 TP_PROTO(char *hostname, \ 1011 TP_ARGS(hostname, conn_id, addr)) 1018 TP_PROTO(char *hostname, __u64 conn_id, 1020 TP_ARGS(hostname, conn_id, dst_addr, rc), 1022 __string(hostname, hostname) [all …]
|
/openbmc/openbmc/meta-openpower/recipes-phosphor/network/first-boot-set-hostname/ |
H A D | first-boot-set-hostname.sh | 5 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/phosphor-misc/firstboot/ |
H A D | first-boot-set-hostname.sh | 5 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"
|
/openbmc/docs/designs/ |
H A D | unique-hostname.md | 1 # 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/bmcweb/include/ |
H A D | hostname_monitor.hpp | 74 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/openbmc/meta-google/recipes-google/console/glome-login/ |
H A D | glome-login.sh.in | 17 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/openbmc/meta-openembedded/meta-networking/recipes-daemons/postfix/files/ |
H A D | check_hostname.sh | 3 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/qemu/migration/ |
H A D | tls.c | 118 const char *hostname, in migration_tls_client_create() argument 130 hostname = tls_hostname; in migration_tls_client_create() 133 return qio_channel_tls_new_client(ioc, creds, hostname, errp); in migration_tls_client_create() 138 const char *hostname, in migration_tls_channel_connect() argument 143 tioc = migration_tls_client_create(ioc, hostname, errp); in migration_tls_channel_connect() 148 /* Save hostname into MigrationState for handshake */ in migration_tls_channel_connect() 149 s->hostname = g_strdup(hostname); in migration_tls_channel_connect() 150 trace_migration_tls_outgoing_handshake_start(hostname); in migration_tls_channel_connect()
|
/openbmc/bmcweb/test/http/ |
H A D | mutual_tls_meta.cpp | 18 std::string sslUser = "user:kawajiri/hostname.facebook.com"; in TEST() 24 // hostname is optional in TEST() 38 "user:/hostname.facebook.com", in TEST() 39 "user:/hostname.facebook.c om", in TEST() 40 "user: space/hostname.facebook.com", in TEST() 43 "svc:/hostname.facebook.com", in TEST()
|
/openbmc/openbmc-test-automation/redfish/managers/ |
H A D | test_bmc_network_conf.robot | 102 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-test-automation/ipmi/dcmi/ |
H A D | test_dcmi_management_controller.robot | 20 ${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/openbmc/poky/meta/recipes-extended/net-tools/ |
H A D | net-tools_2.10.bb | 23 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/phosphor-webui/app/server-health/directives/ |
H A D | remote-logging-server-modal.html | 10 <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/openbmc/poky/meta/recipes-core/base-files/ |
H A D | base-files_3.0.14.bb | 65 # 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/ffdc/ |
H A D | ffdc_collector.py | 72 - ${hostname} 119 hostname, argument 136 hostname name/ip of the targeted (remote) system 151 self.hostname = hostname 230 "\t{:<10} {:<10}".format("Script hostname", os.uname()[1]) 286 response = os.system("ping -c 1 %s 2>&1 >/dev/null" % self.hostname) 289 "\n\t[Check] %s is ping-able.\t\t [OK]" % self.hostname 295 % self.hostname 306 "\n\t---- Start communicating with %s ----" % self.hostname 363 self.hostname, self.username, self.password, self.port_ssh [all …]
|
/openbmc/openbmc/poky/documentation/dev-manual/ |
H A D | customizing-images.rst | 187 Customizing an Image Hostname 190 By default, the configured hostname (i.e. ``/etc/hostname``) in an image 193 configured hostname written to ``/etc/hostname`` is "qemux86". 195 You can customize this name by altering the value of the "hostname" 199 hostname = "myhostname" 203 hostname:pn-base-files = "myhostname" 205 Changing the default value of the variable "hostname" can be useful in 209 situation, you could change the default hostname to "testme", which 212 you can easily reset the default hostname. 215 will have no default hostname in the filesystem. Here is an example that [all …]
|
/openbmc/openbmc/meta-yadro/meta-vegman/recipes-yadro/fru/vegman-fru-handler/ |
H A D | baseboard-fru-handler.sh | 162 ######## 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/ipmitool/contrib/ |
H A D | create_webpage_compact.sh | 10 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"
|