commit | 9908bcfe4502e694fd7d5d6564c3129efba9e970 | [log] [tgz] |
---|---|---|
author | Nagaraju Goruganti <ngorugan@in.ibm.com> | Wed Nov 14 22:07:25 2018 -0600 |
committer | Nagaraju Goruganti <ngorugan@in.ibm.com> | Thu Nov 29 03:09:25 2018 -0600 |
tree | 578dcd45f5140bf774b9a0c2dda8064ced780525 | |
parent | 2c2a51611f3be6ee626f939e70cdec5dbd529c1d [diff] |
openbmctool: add network related commands #1 added below givem commands: -enableDHCP -disableDHCP -getHostName -setHostName -getDomainName -setDomainName -getMACAddress -setMACAddress -getDefaultGW -setDefaultGW -view-config -getNTP -setNTP -getDNS -setDNS Tested: used below given commands in testing 1.python openbmctool.py -H <BMC_IP> -U root -P <root password> network enableDHCP -I <Interface name> 2.python openbmctool.py -H <BMC_IP> -U root -P <root password> network disableDHCP -I <Interface name> 3.python openbmctool.py -H <BMC_IP> -U root -P <root password> network getHostName 4.python openbmctool.py -H <BMC_IP> -U root -P <root password> network setHostName -H <host name> 5.python openbmctool.py -H <BMC_IP> -U root -P <root password> network getDomainName -I <Interface name> 6.python openbmctool.py -H <BMC_IP> -U root -P <root password> network setDomainName -I <Interface name> -D DomainName1,DomainName2,.. 7.python openbmctool.py -H <BMC_IP> -U root -P <root password> network getMACAddress -I <Interface name> 8.python openbmctool.py -H <BMC_IP> -U root -P <root password> network setMACAddress -I <Interface name> -MA xx:xx:xx:xx:xx 9.python openbmctool.py -H <BMC_IP> -U root -P <root password> network getDefaultGW 10.python openbmctool.py -H <BMC_IP> -U root -P <root password> network setDefaultGW -GW <default gw> 11.python openbmctool.py -H <BMC_IP> -U root -P <root password> network view-config 12.python openbmctool.py -H <BMC_IP> -U root -P <root password> network getNTP -I <Interface name> 13.python openbmctool.py -H <BMC_IP> -U root -P <root password> network setNTP -I <Interface name> -N NTP1,NTP2,... 14.python openbmctool.py -H <BMC_IP> -U root -P <root password> network getDNS -I <Interface name> 15.python openbmctool.py -H <BMC_IP> -U root -P <root password> network setDNS -I <Interface name> -d DNS1,DNS2,... Change-Id: I767536e93588285fcff89ab241586cdb122529c7 Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
The goal of this repository is to collect the two-minute hacks you write to automate interactions with OpenBMC systems.
It's highly likely the scripts don't meet your needs - they could be undocumented, dysfunctional or utterly broken. Please help us improve!
Then this repository aims to be the default destination for your otherwise un-homed scripts. As such we are setting the bar for submission pretty low, and we aim to make the process as easy as possible.
openbmc-events
: Query error events on the target serveropenbmc-sensors
: Query sensors on the target serveropenbmc-sfw
: Manage host and BMC firmware images on the target serveropenbmctool
: A general purpose tool for user interactions with OpenBMCpretty-journal
: Convert journalctl's 'pretty' output to regular outputupload_and_update
: Upload a tarball to TFTP server and update BMC with itnetboot
: Painless netboot of BMC kernelsobmc-gerrit
: Automagically add reviewers to changes pushed to Gerritreboot
: Endlessly reboot OpenPOWER hoststracing
: Enable and clean up kernel tracepoints remotelywitherspoon-debug
: Deploy the debug tools tarball to Witherspoon BMCscla-signers
: Check if a contributor has signed the OpenBMC CLAopenbmc-autobump.py
: Update commit IDs in bitbake recipes to bring in new changesPlease use gerrit for all patches to this repository:
Do note that you will need to be party to the OpenBMC CLA before your contributions can be accepted. See Gerrit Setup and CLA for more information.
So long as your patches look sane with a cursory glance you can expect them to be applied. We may push back in the event that similar tools already exist or there are egregious issues.
We don't ask for much, but you need to give us at least a Signed-off-by, and put your work under the Apache 2.0 license. Licensing everything under Apache 2.0 will just hurt our heads less. Lets keep the lawyers off our backs. ^
^Any exceptions must be accompanied by a LICENSE file in the relevant subdirectory, and be compatible with Apache 2.0. You thought you would get away without any fine print?
There's no standard way to install the scripts housed in the here, so adding parts of the repository to your PATH might be a bit of a dice-roll. We may also move or remove scripts from time to time as part of housekeeping. It's probably best to copy things out if you need stability.