{"id":21853267,"url":"https://github.com/rmbolger/posh-ibcli","last_synced_at":"2025-07-23T23:32:07.364Z","repository":{"id":148634695,"uuid":"67937587","full_name":"rmbolger/Posh-IBCLI","owner":"rmbolger","description":"PowerShell module for interacting with the Infoblox CLI via SSH","archived":false,"fork":false,"pushed_at":"2020-09-22T18:09:40.000Z","size":73,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T05:13:54.049Z","etag":null,"topics":["infoblox","infoblox-cli","powershell"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmbolger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-11T15:27:18.000Z","updated_at":"2021-11-12T08:28:13.000Z","dependencies_parsed_at":"2023-03-30T07:04:20.875Z","dependency_job_id":null,"html_url":"https://github.com/rmbolger/Posh-IBCLI","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbolger%2FPosh-IBCLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbolger%2FPosh-IBCLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbolger%2FPosh-IBCLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmbolger%2FPosh-IBCLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmbolger","download_url":"https://codeload.github.com/rmbolger/Posh-IBCLI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248917213,"owners_count":21182954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["infoblox","infoblox-cli","powershell"],"created_at":"2024-11-28T01:21:22.455Z","updated_at":"2025-04-14T16:35:33.321Z","avatar_url":"https://github.com/rmbolger.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\r\n\r\nThis PowerShell module makes it easier to automate Infoblox NIOS CLI commands via SSH. It is not intended to completely wrap every possible command. But it may include some common ones for information retrieval or grid administration.\r\n\r\nThe module relies heavily on the [Posh-SSH](https://github.com/darkoperator/Posh-SSH) module which itself relies on a custom version of [SSH.NET](https://github.com/sshnet/SSH.NET).\r\n\r\n# Install\r\n\r\nTo install the latest development version from git, use the following command in PowerShell v3 or later:\r\n\r\n```powershell\r\niex (invoke-restmethod https://raw.githubusercontent.com/rmbolger/Posh-IBCLI/main/instdev.ps1)\r\n```\r\n\r\nYou can also find the [latest release](https://www.powershellgallery.com/packages/Posh-IBCLI/) version in the PowerShell Gallery. If you're on PowerShell v5 or later, you can install it with `Install-Module`.\r\n\r\n```powershell\r\nInstall-Module -Name Posh-IBCLI\r\n```\r\n\r\nYou must enable the Remote Console on the Infoblox appliance you intend to manage. This can be done via the web UI in the properties of the grid or a specific grid member in the `Security` section.\r\n\r\n![Enable Remote Console in Web UI](/Media/Enable-Remote-Console-GUI.png)\r\n\r\nIt can also be done using the `set remote_console` command from the CLI if you already have serial access.\r\n\r\n# Quick Start\r\n\r\nAlmost all of the functions available require an IP/hostname and a [PSCredential](https://msdn.microsoft.com/en-us/library/system.management.automation.pscredential(v=vs.85).aspx) to establish a connection to a NIOS appliance. *It is wise to make sure your IP/credentials work from a normal SSH client before trying them with the module.*\r\n\r\n```powershell\r\n$myhost = '10.10.10.10'\r\n$cred = Get-Credential\r\n```\r\n\r\nIn the simplest case, you can just run one of the `Get-*` commands directly with your connection variables.\r\n\r\n```powershell\r\nGet-IBCLIStatus $myhost $cred\r\n```\r\n\r\nFor automation or scripting scenarios, you're likely to run multiple commands against the same appliance or might need to run commands that haven't already been wrapped by functions.  In these cases, you'll use `Connect-IBCLI` to get a `ShellStream` object that you can pass to subsequent commands. This helps with speed and efficiency because the functions won't need to establish multiple SSH connections to the appliance.\r\n\r\n```powershell\r\n$stream = Connect-IBCLI $myhost $cred\r\n```\r\n\r\nOnce you have your `ShellStream` object, you can use it with the various wrapped commands or arbitrary commands using `Invoke-IBCLICommand`.\r\n\r\n```powershell\r\nGet-IBCLIStatus $stream\r\nInvoke-IBCLICommand 'show capacity' $stream\r\n```\r\n\r\nFor CLI commands that aren't already wrapped by functions and have interactive prompts, you can just use multiple `Invoke-IBCLICommand` calls in succession.\r\n\r\n```powershell\r\nPS \u003e Invoke-IBCLICommand 'set delete_tasks_interval 13' $stream\r\nCurrent delete tasks interval is 14 days\r\nThe delete tasks interval has been changed to 13 days\r\nIs this correct? (y or n):\r\nPS \u003e Invoke-IBCLICommand 'y' $stream\r\nThe delete tasks interval has been changed.\r\nInfoblox \u003e\r\n```\r\n\r\nDon't forget to disconnect when you're done.\r\n\r\n```powershell\r\nDisconnect-IBCLI $stream\r\n```\r\n\r\n# Requirements and Platform Support\r\n\r\n* Requires PowerShell v3 or later.\r\n* Requires Posh-SSH 1.7.5 or later.\r\n* Tested against NIOS 7.3.x.\r\n\r\n# Changelog\r\n\r\nSee [CHANGELOG.md](/CHANGELOG.md)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmbolger%2Fposh-ibcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmbolger%2Fposh-ibcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmbolger%2Fposh-ibcli/lists"}