feat(TSG-9140): 添加获取OS3300 sn的脚本

添加获取OS3300 sn的脚本
This commit is contained in:
songyanchao
2021-07-12 22:16:00 -04:00
parent 33e92ee13c
commit 64f88bcb22

View File

@@ -1,6 +1,6 @@
#!/bin/bash -x
output=`sshpass -p eb-20170122 ssh root@10.254.17.1 "ipmitool fru | awk 'NR==12'"`
output=`ipmitool fru -t 130 | awk 'NR==12'`
if [ -z "$output" ];then
echo "{\"sn\": \"unknown\"}" > /opt/tsg/etc/tsg_sn.json
exit 0