From a87a392737cda3a95ae1121bd1e51b67b91a5a29 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 11 Apr 2023 22:59:19 +0200 Subject: [PATCH] nb_api_post_hosts_infos remove lshw -quiet -class system --- etc/profile.d/nb.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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}" -- 2.47.3