Getting Started
Installation
MacOS
If you use Homebrew, the easiest way to install isctl is:
Newer versions of Homebrew (6.0+) require third-party taps and formulae to be explicitly trusted before use. Installing with the fully-qualified name above automatically trusts just the
isctlformula, so a fresh install needs no further action.Upgrading: If you already have
isctlinstalled from this tap, upgrading withbrew upgrade isctl(orbrew install isctl) may fail with:Fix this by trusting the formula (or the whole tap) once, then upgrade as usual:
Alternatively,
brew trust cgascoig/isctltrusts the whole tap (all current and future formulae in it). If you prefer to install by the short name, trust the formula first:
If you don't use Homebrew:
- Download the latest release from the Releases page.
- Unzip and move the
isctlbinary somewhere that is on your path (e.g./usr/local/bin).
Linux
If you use Homebrew, the easiest way to install isctl is:
Newer versions of Homebrew (6.0+) require third-party taps and formulae to be explicitly trusted before use. Installing with the fully-qualified name above automatically trusts just the
isctlformula, so a fresh install needs no further action.Upgrading: If you already have
isctlinstalled from this tap, upgrading withbrew upgrade isctl(orbrew install isctl) may fail with:Fix this by trusting the formula (or the whole tap) once, then upgrade as usual:
Alternatively,
brew trust cgascoig/isctltrusts the whole tap (all current and future formulae in it). If you prefer to install by the short name, trust the formula first:
If you don't use Homebrew:
- Download the latest release from the Releases page.
- Extract the
.tar.gzand move theisctlbinary somewhere that is on your path (e.g./usr/local/bin).
Windows
The easiest way is using the scoop.sh installer:
Otherwise:
- Download the latest release from the Releases page.
- Unzip and move the
isctl.exebinary somewhere that is on your path.
Obtain your API Key
isctl interacts with the Cisco Intersight REST API, so it needs an API key and key ID.
- Login to the Intersight GUI.
- Generate a new API Key (under Settings -> API Keys). Choose "API key for OpenAPI schema version 2" as the API Key Purpose.
- Save the key somewhere on your desktop and make a note of the key ID.
Configure isctl
Run isctl configure to configure it to use your API key. Follow the prompts for your key ID and path to the key file.
keyID is currently ''
Enter new keyID or press Enter to keep existing: 123456789012345678901234/123456789012345678901234/123456789012345678901234
key filename is currently ''
Enter new key file name or press Enter to keep existing: /Users/chris/intersight-key.pem
2020/06/25 17:28:22 Writing config file
isctl is now configured and ready to use.
Execute your first query
Output:------------ ----------------------------- ------------------------ -----------------------------
Enabled Moid Name NtpServers
------------ ----------------------------- ------------------------ -----------------------------
False 5ecb069c6275722d3143e668 test-ntp-policy
True 5ee1aa076275722d3122a944 cg-tf-ntp-test-1 10.10.10.10, 10.10.10.12
------------ ----------------------------- ------------------------ -----------------------------