In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-12-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Dependent on the previous environment: http://wuyanc.blog.51cto.com/11569260/1855947
For pxe system deployment, the mac address of the network card is necessary, and it is too tiring to get it manually. We can get the mac you need in batches through the following script, speed lever, a matter of a few seconds.
#! / bin/bash# chenss# date: 2016-09-09#user='root'passwd='calvin'get_nic () {case $2 in1) racadm-r $1-u $user-p $passwd getsysinfo-s-- nocertwarn | egrep'1-1'| awk-v ip= "$1" BEGIN {FS= "="} {print ip "\ t"EM1" $2};' 2) racadm-r $1-u $user-p $passwd getsysinfo-s-- nocertwarn | egrep'1-2-1 | 2-1-1' | awk-v ip= "$1" 'BEGIN {FS= "="} {print ip "\ t" EM2 "$2};';; 3) racadm-r $1-u $user-p $passwd getsysinfo-s-nocertwarn | egrep'1-3-1 | 3-1-1' | awk-v ip=" $1 "BEGIN {FS=" = "} {print ip"\ t "EM3" $2}; 4) racadm-r $1-u $user-p $passwd getsysinfo-s-- nocertwarn | egrep'1-4-1 | 4-1-1' | awk-v ip= "$1" 'BEGIN {FS= "="} {print ip "\ t" EM4 "$2};';; *) racadm-r $1-u $user-p $passwd getsysinfo-s-nocertwarn | egrep 'Ethernet' | awk-v ip=" $1 "{print ip"\ t ", $0};'; esac} get_nic $1 $2
Execution result:
[root@racadm idrac] # sh run.sh # please option your choice: [1-10] # (1) Get server NIC mac-address (2) Remove all or the virtual disk other than the system disk (3) Physical Disk mode convert (4) Create raid1 or raid5 (5) Add idrac user (TEST) and change root passwd (6) Bios disable F1/F2 errot prompt and setup HDD first boot (7) Check system boot seq (8) Restore the root default password (9) reboot system (10) New server raid, Bios init (99) Execute the command manually (*) exit script###please option your choice: 1192.168.1.1 EM1 24:6F:99:46:4D:78192.168.1.2 EM1 24:6F:99:46:4D:79192.168.1 . 3 EM1 24:6F:99:46:4D:80192.168.1.4 EM1 24:6F:99:46:4D:81192.168.1.5 EM1 24:6F:99:46:4D:82192.168.1.6 EM1 24:6F:99:46:4D:83192.168.1.7 EM1 24:6F:99:46:4D:84192.168.1.8 EM1 24:6F:99:46:4D:85192.168.1 . 9 EM1 24:6F:99:46:4D:86192.168.1.10 EM1 24:6F:99:46:4D:87used time: 3s
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.