You can execute these commands from anywhere on the VM after signing in as an SSH admin user. For more information, see "Accessing the administrative shell (SSH)." Show
Generalghe-announceThis utility sets a banner at the top of every GitHub Enterprise page. You can use it to broadcast a message to your users.
You can also set an announcement banner using the enterprise settings on GitHub Enterprise Server. For more information, see "Customizing user messages on your instance." ghe-aqueductThis utility displays information on background jobs, both active and in the queue. It provides the same job count numbers as the admin stats bar at the top of every page. This utility can help identify whether the Aqueduct server is having problems processing background jobs. Any of the following scenarios might be indicative of a problem with Aqueduct:
If you suspect Aqueduct is failing, contact GitHub Enterprise Support for help. With this command, you can also pause or resume jobs in the queue.
ghe-check-disk-usageThis utility checks the disk for large files or files that have been deleted but still have open file handles. This should be run when you're trying to free up space on the root partition.
ghe-cleanup-cachesThis utility cleans up a variety of caches that might potentially take up extra disk space on the root volume. If you find your root volume disk space usage increasing notably over time it would be a good idea to run this utility to see if it helps reduce overall usage.
ghe-cleanup-settingsThis utility wipes all existing Management Console settings. Tip: Typically, you will only execute this if you've contacted support and they've asked you to do so.
ghe-configWith this utility, you can both retrieve and modify the configuration settings of your GitHub Enterprise Server instance.
Allows you to find the universally unique identifier (UUID) of your node in
Allows you to exempt a list of users from REST API rate limits. A hard limit of 120,000 requests will still apply to these users. For more information, see "Resources in the REST API."
ghe-config-applyThis utility applies Management Console settings, reloads system services, prepares a storage device, reloads application services, and runs any pending database migrations. It is equivalent to clicking
Save settings in the Management Console's web UI or to sending a POST request to the You will probably never need to run this manually, but it's available if you want to automate the process of saving your settings via SSH.
ghe-consoleThis utility opens the GitHub Rails console on your GitHub Enterprise appliance. Do not use this command without direction from GitHub Enterprise Support. Incorrect use could cause damage or data loss.
ghe-dbconsoleThis utility opens a MySQL database session on your GitHub Enterprise appliance. Do not use this command without direction from GitHub Enterprise Support. Incorrect use could cause damage or data loss.
ghe-es-index-statusThis utility returns a summary of Elasticsearch indexes in CSV format. Print an index summary with a header row to
Print an index summary and pipe results to
ghe-legacy-github-services-reportThis utility lists repositories on your appliance that use GitHub Services, an integration method that will be discontinued on October 1, 2018. Users on
your appliance may have set up GitHub Services to create notifications for pushes to certain repositories. For more information, see "Announcing the deprecation of GitHub Services" on the GitHub Blog or "Replacing GitHub Services." For more information about this
command or for additional options, use the
ghe-logs-tailThis utility lets you tail log all relevant log files from your installation. You can pass options in to limit the logs to specific sets. Use the -h flag for additional options.
ghe-maintenanceThis utility allows you to control the state of the installation's maintenance mode. It's designed to be used primarily by the Management Console behind-the-scenes, but it can be used directly. For more information, see "Enabling and scheduling maintenance mode."
ghe-motdThis utility re-displays the message of the day (MOTD) that administrators see when accessing the instance via the administrative shell. The output contains an overview of the instance's state.
ghe-nwoThis utility returns a repository's name and owner based on the repository ID.
ghe-org-admin-promoteUse this command to give organization owner privileges to users with site admin privileges on the appliance, or to give organization owner privileges to any single user in a single organization. You must specify a user
and/or an organization. The You can use these options with the utility:
This utility cannot promote a non-site admin to be an owner of all organizations. You can promote an ordinary user account to a site admin with ghe-user-promote. Give organization owner privileges in a specific organization to a specific site admin
Give organization owner privileges in all organizations to a specific site admin
Give organization owner privileges in a specific organization to all site admins
Give organization owner privileges in all organizations to all site admins
ghe-reactivate-admin-loginUse this command to immediately unlock the Management Console after 10 failed login attempts in the span of 10 minutes.
ghe-saml-mapping-csvThis utility can help map SAML records. To create a CSV file containing all the SAML mapping for your GitHub Enterprise Server users:
To perform a dry run of updating SAML mappings with new values:
To update SAML mappings with new values:
ghe-service-listThis utility lists all of the services that have been started or stopped (are running or waiting) on your appliance.
ghe-set-passwordWith
ghe-setup-networkThis utility allows you to configure the primary network interface. To enter visual mode, which will guide you through configuration of network settings:
Use the -h flag for additional options. ghe-ssh-check-host-keysThis utility checks the existing SSH host keys against the list of known leaked SSH host keys.
If a leaked host key is found the utility exits with status
If a leaked host key was not found, the utility exits with status
ghe-ssh-roll-host-keysThis utility rolls the SSH host keys and replaces them with newly generated keys.
ghe-ssh-weak-fingerprintsThis utility returns a report of known weak SSH keys stored on the GitHub Enterprise appliance. You can optionally revoke user keys as a bulk action. The utility will report weak system keys, which you must manually revoke in the Management Console.
ghe-ssl-acmeThis utility allows you to install a Let's Encrypt certificate on your GitHub Enterprise appliance. For more information, see "Configuring TLS." You can use the
ghe-ssl-ca-certificate-installThis utility allows you to install a custom root CA certificate on your GitHub Enterprise server. The certificate must be in PEM format. Furthermore, if your certificate provider includes multiple CA
certificates in a single file, you must separate them into individual files that you then pass to Run this utility to add a certificate chain for S/MIME commit signature verification. For more information, see "About commit signature verification." Run this utility when your GitHub Enterprise Server instance is unable to connect to
another server because the latter is using a self-signed SSL certificate or an SSL certificate for which it doesn't provide the necessary CA bundle. One way to confirm this is to run
If, on the other hand, the remote server's SSL certificate can not be verified, your
You can use these additional options with the utility:
ghe-ssl-certificate-setupThis utility allows you to update an SSL certificate for your GitHub Enterprise Server instance. For more information about this command or for additional options, use the
ghe-ssl-generate-csrThis utility allows you to generate a private key and certificate signing request (CSR), which you can share with a commercial or private certificate authority to get a valid certificate to use with your instance. For more information, see "Configuring TLS." For more information about this command or for additional options, use the
ghe-storage-extendSome platforms require this script to expand the user volume. For more information, see "Increasing Storage Capacity".
ghe-versionThis utility prints the version, platform, and build of your GitHub Enterprise Server instance.
ghe-webhook-logsThis utility returns webhook delivery logs for administrators to review and identify any issues.
To show all failed hook deliveries in the past day:
The date format should be To show the full hook payload, result, and any exceptions for the delivery:
Clusteringghe-cluster-statusCheck the health of your nodes and services in a cluster deployment of GitHub Enterprise Server.
ghe-cluster-support-bundleThis utility creates a support bundle tarball containing important logs from each of the nodes in either a Geo-replication or Clustering configuration. By default, the command creates the tarball in
/tmp, but you can also have it To create a standard bundle:
To create an extended bundle:
To send a bundle to GitHub Support:
To send a bundle to GitHub Support and associate the bundle with a ticket:
ghe-cluster-failoverFail over from active cluster nodes to passive cluster nodes. For more information, see "Initiating a failover to your replica cluster."
ghe-dpagesThis utility allows you to manage the distributed GitHub Pages server.
To show a summary of repository location and health:
To evacuate a GitHub Pages storage service before evacuating a cluster node:
ghe-spokesThis utility allows you to manage the three copies of each repository on the distributed git servers.
To show a summary of repository location and health:
To show the servers in which the repository is stored:
To evacuate storage services on a cluster node:
ghe-storageThis utility allows you to evacuate all storage services before evacuating a cluster node.
Gitghe-btopA
ghe-governorThis utility helps to analyze Git traffic. It queries Governor data files, located under
ghe-repoThis utility allows you to change to a repository's directory and open an interactive shell as the
ghe-repo-gcThis utility manually repackages a repository network to optimize pack storage. If you have a large repository, running this command may help reduce its overall size. GitHub Enterprise automatically runs this command throughout your interaction with a repository network. You can add the optional Warning: Before using the
GitHub Actionsghe-actions-checkThis utility checks that all services for GitHub Actions are healthy. For more information, see "Getting started with GitHub Actions for GitHub Enterprise Server" and "Troubleshooting GitHub Actions for your enterprise."
ghe-actions-precheckThis utility tests the blob storage configuration for GitHub Actions on your GitHub Enterprise Server instance. You can use the utility to verify your storage configuration before you enable GitHub Actions for your instance. For more information about the configuration of GitHub Actions, see "Getting started with GitHub Actions for GitHub Enterprise Server."
If your storage system is configured correctly, you'll see the following output.
Import and exportghe-migrator
For more information, please see our guides on migrating data to and from your enterprise. git-import-detectGiven a URL, detect which type of source control management system is at the other end. During a manual import this is likely already known, but this can be very useful in automated scripts.
git-import-hg-rawThis utility imports a Mercurial repository to this Git repository. For more information, see "Importing data from third party version control systems."
git-import-svn-rawThis utility imports Subversion history and file data into a Git branch. This is a straight copy of the tree, ignoring any trunk or branch distinction. For more information, see "Importing data from third party version control systems."
git-import-tfs-rawThis utility imports from Team Foundation Version Control (TFVC). For more information, see "Importing data from third party version control systems."
git-import-rewriteThis utility rewrites the imported repository. This gives you a chance to rename authors and, for Subversion and TFVC, produces Git branches based on folders. For more information, see "Importing data from third party version control systems."
Securityghe-find-insecure-git-operationsThis utility searches your instance's logs and identifies Git operations over SSH that use insecure algorithms or hash functions, including DSA, RSA-SHA-1, HMAC-SHA-1, and CBC ciphers. You can use the output to support each client's transition to a more secure SSH connection. For more information, see the GitHub Blog.
Supportghe-diagnosticsThis utility performs a variety of checks and gathers information about your installation that you can send to support to help diagnose problems you're having. Currently, this utility's output is similar to downloading the diagnostics info in the Management Console, but may have additional improvements added to it over time that aren't available in the web UI. For more information, see "Creating and sharing diagnostic files."
ghe-support-bundleNote: If you are using a Geo-replication configuration, or GitHub Enterprise Clustering, you should use the This utility creates a support bundle tarball containing important logs from your instance. By default, the command creates the tarball in /tmp, but you can also have it To create a standard bundle:
To create an extended bundle:
To send a bundle to GitHub Support:
To send a bundle to GitHub Support and associate the bundle with a ticket:
ghe-support-uploadThis utility sends information from your appliance to GitHub Enterprise support. You can either specify a local file, or provide a stream of up to 100MB of data via To send a file to GitHub Support and associate the file with a ticket:
To upload data via
In this example, Upgrading GitHub Enterprise Serverghe-upgradeThis utility installs or verifies an upgrade package. You can also use this utility to roll back a patch release if an upgrade fails or is interrupted. For more information, see "Upgrading GitHub Enterprise Server." To verify an upgrade package:
To install an upgrade package:
When rolling back an upgrade, you must use an upgrade package file with the .pkg extension. Hotpatch package files with the .hpkg extension are not supported.
A reboot is required after running the command. Rolling back does not affect the data partition, as migrations are not run on patch releases. ghe-upgrade-schedulerThis utility manages scheduled installation of upgrade packages. You can show, create new, or remove scheduled installations. You must create schedules using cron expressions. For more information, see the Cron Wikipedia entry. To schedule a new installation for a package:
To show scheduled installations for a package:
To remove scheduled installations for a package:
ghe-update-checkThis utility will check to see if a new patch release of GitHub Enterprise is available. If it is, and if space is available on your instance, it will download the package. By default, it's saved to /var/lib/ghe-updates. An administrator can then perform the upgrade. A file containing the status of the download is available at /var/lib/ghe-updates/ghe-update-check.status. To check for the latest GitHub Enterprise release, use the
User managementghe-license-usageThis utility exports a list of the installation's users in JSON format. If your instance is connected to GitHub Enterprise Cloud, GitHub Enterprise Server uses this information for reporting licensing information to GitHub Enterprise Cloud. For more information, see "Connecting your enterprise account to GitHub Enterprise Cloud ." By default, the list of users in the resulting JSON file is encrypted. Use the
ghe-org-membership-updateThis utility will enforce the default organization membership visibility setting on all members in your instance. For more information, see
"Configuring visibility for organization membership." Setting options are
ghe-user-csvThis utility exports a list of all the users in the installation into CSV format. The CSV file includes the email address, which type of user they are (e.g., admin, user), how many repositories they have, how many SSH keys, how many
organization memberships, last logged IP address, etc. Use the
ghe-user-demoteThis utility demotes the specified user from admin status to that of a regular user. We
recommend using the web UI to perform this action, but provide this utility in case the
ghe-user-promoteThis utility promotes the specified user account to a site administrator.
ghe-user-suspendThis utility suspends the specified user, preventing them from logging in, pushing, or pulling from your repositories.
ghe-user-unsuspendThis utility unsuspends the specified user, granting them access to login, push, and pull from your repositories.
Which is the command used to create a partition from commandTo create a partition:
At a command prompt, type: diskpart. At the DISKPART prompt, type list disk (Note the drive number you wish to manipulate.) At the DISKPART prompt, type: select disk 0 (This selects disk to edit; make sure to type in the disk number from step two.)
Which of the following are commandTop 6 Partition Managers (CLI + GUI) for Linux. Fdisk. fdisk is a powerful and popular command line tool used for creating and manipulating disk partition tables. ... . GNU Parted. ... . Gparted. ... . GNOME Disks a.k.a ( GNOME Disks Utility) ... . KDE Partition Manager. ... . Qtparted.. Which command utility is used for partition operations?Diskpart is a command-line utility used to manipulate disk partitions in all versions of Windows and Windows Server beginning with Windows XP and Windows Server 2003.
What is the commandDiskpart is a command-line utility in Windows 10, which enables you to operate disk partition by using Diskpart command prompt, including create, merge, extend, shrink, format, delete, wipe disk partition, and other features.
|