restart_all_suppliers

1.0.0 • Public • Published

This script is used to restart MPC & SMC suppliers for all customers.

Pre-requisite :

  1) Install Node js in windows

  2) Set npm proxy: https://jjasonclark.com/how-to-setup-node-behind-web-proxy/
  
  3) Install Browser Drivers, and config PATH in PC. Ref to: http://www.seleniumhq.org/download/

  4) Install yarn: npm install yarn

  5) Install yarn package: yarn global add restart_all_suppliers

Command to run :

  step-1) Get latest PROD_ORG_Info_Latest.xlsx:
  
     https://hpe-my.sharepoint.com/personal/pli_hpe_com/_layouts/15/guestaccess.aspx?guestaccesstoken=Xev8qnZrH5houpSzWhxrY9iVpwA0gWO1FpF%2fgNbg%2fzk%3d&docid=2_1ee664df823d941c18a360e2fc446eb94&rev=1
  
  step-2) Run commands: propel restartall -f xxx.xlsx
  
  step-3) Note: propel --help

Deal with failed Cases :

1) Collect failed cases from terminal logs. Such as:

End at : Tue Mar 28 2017 17:10:27 GMT+0800 (China Standard Time)
{ 'https://atcswa-cr-empp.mcloud.svcs.hpe.com:9000/org/xxxx':
   { url: 'https://atcswa-cr-empp.mcloud.svcs.hpe.com:9000/org/xxxx',
     account: 'xxxxxxxxxx',
     password: 'yyyyyyyyy' } }

2) Manually re-run failed cases

Main Process of this project:

1) Import Propel URL Data from Excel by extractPropelAccount module

2) Control Flow for Parallel Running

3) Restart each org one by one

Dependencies (7)

Dev Dependencies (1)

Package Sidebar

Install

npm i restart_all_suppliers

Weekly Downloads

11

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yy305196456