Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[platform/cel]: Add power control utility #124

Merged
merged 2 commits into from Oct 30, 2019
Merged

[platform/cel]: Add power control utility #124

merged 2 commits into from Oct 30, 2019

Conversation

mudsut4ke
Copy link

- What I did

  • Add power control utility for Ali's device

- How I did it

  1. Add power_utils to be a script for restart CPU/System
  2. Install power_utils to Ali's device

- How to verify it

  • Run following command to power cycle the CPU
    sudo power_utils cpu cycle

  • Run following command to reboot the whole system
    sudo power_utils system reboot

@mudsut4ke mudsut4ke added the enhancement New feature or request label Oct 24, 2019
@mudsut4ke mudsut4ke self-assigned this Oct 24, 2019
Copy link

@tiantianlv tiantianlv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use the following command, It will keep with BMC command.
power cycle cpu
power cycle system

Thanks,
Bo

@mudsut4ke
Copy link
Author

@tiantianlv , updated with c71c96b

@tiantianlv tiantianlv merged commit 0c0a700 into SONIC-DEV:201811_cel Oct 30, 2019
mudsut4ke pushed a commit that referenced this pull request Jan 25, 2021
…nic-net#5924)

This should also fix the vsimage check build.

Commits include:

* src/sonic-platform-common a659219...e4883e5 (7):
  > [PsuBase] Reference inherited member constant (#142)
  > Thermalctld APIs for recording min and max temp (#131)
  > Common power consumption and supply APIs for modular chassis (#136)
  > [sonic-platform-base] Introduce APIs for modular chassis support (#124)
  > Remove shebangs from non-executable Python files (#140)
  > [sonic_eeprom] Make compatible with Python 2 and 3 (#127)
  > Add unit test infrastructure (#139)

* src/sonic-platform-daemons 600d043...be21d91 (9):
  > [psud] Import of mock libraries determined by environment variable (#117)
  > [chassisd][thermalctld] Set testing env var at top of file, not in setup_function() (#114)
  > [chassisd][thermalctld] Import os module, now needed for env var checking (#113)
  > [chassisd][thermalctld] Import mock libraries based on environment variable (#112)
  > [xcvrd] Fix the console-script xcvrd startup  (#111)
  > [Thermalctld] Update thermal info to CHASSIS_STATE_DB (#101)
  > PSUd changes to compute power-budget for Modular chassis (#104)
  > Introduce chassisd to monitor status of cards on chassis (#97)
  > [xcvrd] support for integrating Credo Y cable Ports initialization and status updates with xcvrd.  (#105)
nicwu-cel pushed a commit that referenced this pull request Apr 25, 2021
Parse quagga output without knowledge about hostname, so robust
against hostname changes or mismatch (#124)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants