2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

76 Commits

Author SHA1 Message Date
Victor Hu
df6209c381 Instead of testing for open, test if NOT closed,then OpenBMC 2017-10-03 14:02:09 -04:00
Victor Hu
6f1e0bdab9 If the openbmc console port is returned by nmap, assume that it's openbmc 2017-09-26 14:25:27 -04:00
XuWei
01a4a49405 Delete all '.' in mtm and serial string for OpenBMC 2017-09-22 00:09:45 -04:00
Victor Hu
24090e832b Change the output of bmcdiscover to NOT print the stanza format
when only the -w option is specified to write data into the database.
This helps when we are doing bmcdiscover over a very large range of IPs
2017-09-07 16:54:35 -04:00
XuWei
491bf3682e Fix a bug that if children process over 32, sleep 1 second 2017-08-25 05:17:49 -04:00
Yuan Bai
fdda051859 Merge pull request #3686 from zet809/modify_doc_for_bmcdiscover_sn
add usage and manpage for bmcdiscover "--sn" option
2017-08-25 16:49:35 +08:00
xuweibj
c22e7c5928 Merge pull request #3685 from chenglch/bmcdiscover
Fix the error caused by too many open file descriptors
2017-08-18 11:04:46 +08:00
Victor Hu
61bad88824 Change bmcdiscover for OpenBMC to look at Model instead of Part Number 2017-08-15 21:09:05 -04:00
chenglch
eb5777ca2e Fix the error caused by too much open file descriptors
The code in bmcdiscover do not close socket pair correctly which
causes `Too many open files` error from system. This commit maintains
a hash map to locate the file descriptors for child processes, close
these files when the child processes exit.

fix-issue: #3682
2017-08-15 17:57:11 +08:00
ertaozh
e4d8442e10 add usage and manpage for bmcdiscover "--sn" option 2017-08-15 04:27:54 -04:00
Victor Hu
fa0799c4c4 With PR #3525 (4d54889a36b580bd6aba851037625febe24609b2) MAC address is used so this workaround is no longer needed 2017-08-10 15:16:15 -04:00
zet809
bb02b38583 add option --sn <sn_name> for bmcdiscover to discover bmc on sn (#3607) 2017-08-03 19:20:18 +08:00
XuWei
4d54889a36 Task 3406, add BMC MAC in bmcdiscover and discovery process 2017-07-21 03:39:01 -04:00
Victor Hu
08f0199b90 In latest ITC machine, the Model Type is in the PartNumber Field 2017-07-05 20:51:50 -04:00
cxhong
df2f6a6cb5 Merge pull request #3311 from xuweibj/I3264
Modified judging condition of openbmc in bmcdiscover, if not open enter bmcdiscover_ipmi
2017-06-27 16:54:27 -04:00
XuWei
4176017b17 Fix issue 3327, check environment of request type in openbmc and bmcdiscover 2017-06-25 23:06:54 -04:00
Victor Hu
bc46643b73 Print the XCAT_DEV_WITHERSPOON bypass message out to the user 2017-06-22 23:08:15 -04:00
Victor Hu
32b467d635 Our p9 boxes do not have any VPD information, so in order to force
the code to return a generated discovered definition, blank out the mtm
string if XCAT_DEV_WITHERSPOON=TRUE
2017-06-22 22:49:02 -04:00
Victor Hu
eba16f3dd8 Found out that for Witherspoon machines, if the host has not been booted
there is no system information returned, so check for the boxelder bmc
for a model/serial combination to use
2017-06-22 20:39:27 -04:00
XuWei
aaa62e3333 Modified judging condition of openbmc in bmcdiscover, if not open enter bmcdiscover_ipmi 2017-06-21 22:26:48 -04:00
Victor Hu
3f43f44c7e Update code to print a warning message if we get a response error.
Currently there is nothing printed back so we can't tell if an error
has occurred.  Allow for some debug output if XCATBYPASS=1
2017-06-20 15:58:16 -04:00
Victor Hu
7beacaa631 With mid June/2017 firmware, model number is moved from PartNumber -> Model 2017-06-16 11:04:10 -04:00
zet809
f05a0ace3b Merge pull request #3206 from whowutwut/bmcdiscover_openbmc
Change bmcdiscover to look at system information instead of motherboard info for OpenBMC
2017-06-09 10:47:32 +08:00
Victor Hu
061b230edb Change to PartNumber and SerialNumber for bmcdiscover 2017-06-07 11:59:54 -04:00
XuWei
b0fece2907 modify format of error msg for 2200 port to hash according to other msg 2017-06-06 02:10:18 -04:00
Victor Hu
a2f2eaf0e7 Change bmcdiscover to look at system information instead of motherboard
information for the MTM/Serial Number.  Use variables for building up
then endpoint for OpenBMC
2017-06-05 20:05:00 -04:00
XuWei
79f4ae63fa Close ssl verify for bmcdiscover on Ubuntu 2017-05-24 04:29:30 -04:00
XuWei
75cb09d112 modified depending on comments 2017-05-23 03:41:30 -04:00
XuWei
4515d197d9 Use LWP to send https request in bmcdiscover instead of curl command 2017-05-23 02:34:15 -04:00
XuWei
83f5ea9321 Get username and password from passwd table for openbmc discover 2017-05-11 23:12:15 -04:00
XuWei
36635b3fea modify return value of bmcdiscover check and ipsource options 2017-05-10 22:33:59 -04:00
XuWei
f9eef1d3d0 modified depending on comments 2017-05-09 01:15:04 -04:00
XuWei
52e2e2ff75 modified depending on comments 2017-05-08 04:00:52 -04:00
XuWei
2155d8c33d modified depending on comments 2017-05-07 22:20:04 -04:00
XuWei
bc5663b911 Enhance bmcdisocver to support openbmc 2017-05-05 02:30:08 -04:00
XuWei
08443c20e0 fix issue 2348, check error msg when run bmcdiscover 2017-03-28 00:55:34 -04:00
Kilian Cavalotti
4bfdf4d908 bmcdiscover: normalize nodename if mtm or serial contain unauthorized
characters
2017-02-10 14:10:06 -08:00
Kilian Cavalotti
603c7785f7 MTM: add support for other vendors, in the form of vendor::model 2017-02-10 13:38:22 -08:00
XuWei
a1d590f85f fix issue 2296, get correct mtms for B&S 2016-12-21 23:44:02 -05:00
Casandra Qiu
d5022f8966 Remove nodetype and hwtype from bmcdiscover -z output 2016-10-18 13:03:27 -04:00
Casandra Qiu
6dbb558cce change message to W as warning message 2016-10-12 11:24:19 -04:00
Casandra Qiu
f69ced6932 Add WARN message if it has '-t' options 2016-10-11 22:15:29 -04:00
Casandra Qiu
7587c3b946 Remove -t option for bmcdiscover and used by default 2016-10-11 09:08:19 -04:00
Casandra Qiu
fb033f83d9 removed some blank space 2016-09-26 08:50:37 -04:00
Casandra Qiu
0a8379c9ec modify code per ErTao's suggestion 2016-09-22 11:09:06 -04:00
Casandra Qiu
e7f8d4261c bmcdiscover -i IP -u USERID -p PASSW0RD --ipsource failed 2016-09-21 22:40:36 -04:00
Victor Hu
6133755f27 Seems like for discovery of FSP and TUL servers, there is no bmcuser
name so adding the code from commit 3f54b456d2f2479489386b9291fa1867dd22c32d
and d82e14b56656482279d58e38295a9900e82ba056 to set the default user breaks
that function.  Reverting back to the old ways
2016-08-30 13:42:21 -04:00
Mark Gurevich
db9a71750e Fix sytax errors reported by perltidy 2016-07-25 08:56:18 -04:00
Mark Gurevich
0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
Patrick Lundgren
27f23d33b9 Handle commas in --range for nmap 2016-06-23 10:37:50 -04:00