Skip to content

Add sample script to grab stats over the REST API. - #20

Closed
jaymzh wants to merge 1 commit into
meta:masterfrom
jaymzh:stats
Closed

jaymzh wants to merge 1 commit into
meta:masterfrom
jaymzh:stats

Conversation

@jaymzh

@jaymzh jaymzh commented Jan 11, 2016

Copy link
Copy Markdown

No description provided.

Comment thread utils/bmc_stats.py Outdated
pp = pprint.PrettyPrinter()

def get_api(host, api):
print("=== %s ===" % api)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we enforce more pep8-ish? And nit for space counts?

@theopolis theopolis added the REST label Apr 6, 2016
@ghost ghost added the CLA Signed label Jul 12, 2016
@jmehta

jmehta commented May 23, 2017

Copy link
Copy Markdown
Contributor

Hello @jaymzh and @theopolis, Any updates on this PR? If not I request we close it and open a new one against helium branch.

@jaymzh

jaymzh commented May 24, 2017

Copy link
Copy Markdown
Author

Sorry I dropped this. I can update the PR.

@jaymzh

jaymzh commented Jun 2, 2017

Copy link
Copy Markdown
Author

OK, @theopolis - pep8-ified it, 4-space-ified it, add the main check and added the copyright.

@jmehta

jmehta commented Nov 13, 2017

Copy link
Copy Markdown
Contributor

Closing this one for now. @jaymzh, can you please open a new PR against the helium branch.

@jmehta jmehta closed this Nov 13, 2017
facebook-github-bot pushed a commit that referenced this pull request Apr 3, 2020
Summary:
Add support for reading elbert weutil support.

Testing:

Tested on elbert.
Pull Request resolved: https://github.com/facebookexternal/openbmc.arista/pull/20

Reviewed By: mikechoifb

fbshipit-source-id: b01a1e2e89
facebook-github-bot pushed a commit that referenced this pull request Jul 6, 2021
Summary:
[Common] Increase the number of retries in init.d/hostname.sh
In some DC, the existing 10 retries doesn't seem to be enough. So increased it to 20.
In order to make BMC keep retry for a longer time without adding too much load to our DNS,
we use exponental back-off. That is,
1) Up to retry iteration #10, wait 15 seconds in between retries (No Change)
2) After iteration #11 until #20 (end), doubles the wait time in every iteration
  (30,60,120,240, ...  with the max 3600 seconds)

Test Plan: Tested on fsw001.p047.f01.atn6 and fuji.01.07.mpk17

Reviewed By: amithash

fbshipit-source-id: 116428440e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants