From: Nicolas Boisselier Date: Tue, 11 Apr 2023 20:59:19 +0000 (+0200) Subject: nb_api_post_hosts_infos remove lshw -quiet -class system X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a87a392737cda3a95ae1121bd1e51b67b91a5a29;p=nb.git nb_api_post_hosts_infos remove lshw -quiet -class system --- diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index 6e586511..58df28a9 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -128,13 +128,12 @@ nb_api_post_host_info() { nb_api_post_hosts_infos() { ( -# NB 17.05.19 sys_infos - sys_infos arch nproc ips interfaces os date_install mem_total mem_used public_ip + sys_infos arch nproc ips interfaces model os date_install mem_total mem_used sys_interfaces_all | awk 'BEGIN{preff="int."} {print preff""$1".mac\t"$2} $3!="" {print preff""$1".ip\t"$3;}' - which lshw > /dev/null && lshw -quiet -class system 2>/dev/null \ - | awk '/^ /{sub("^ *","",$0); sub(": ","\t",$0); print $0}' \ - ; + # NB 11.04.23 which lshw > /dev/null && lshw -quiet -class system 2>/dev/null \ + # NB 11.04.23 | awk '/^ /{sub("^ *","",$0); sub(": ","\t",$0); print $0}' \ + # NB 11.04.23 ; ) | while read -ra i; do echo "sys.${i[0]}" "${i[*]:1}"