THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

Get list of hotfixes currently installed

New Member
Posts: 5
5522     0

Hi!

 

Is there a way to get a list of the hotfixes currently installed in an Infoblox appliance? I am not able to find anything in the documentation that suggests that it's possible so asking for expert's advice Smiley Happy

 

Thanks in advance!

Re: Get list of hotfixes currently installed

Moderator
Moderator
Posts: 315
5522     0

The CLI command "show upgrade_history", run on an appliance, will give the full list for that appliance.

 

192.168.1.2 > show upgrade_history
REVERT version is: 8.5.0-394706
[2020/03/22 00:14:25] Hotfix Hotfix-NIOS-8.2.x-J65003-f372aac90a9eefe79da36131fada1f36-Tue-Sep-26-16-10-21-2017.bin failed, exit status = 3
[2020/04/29 16:45:15] Upgraded to: 8.5.1-397728
[2020/09/09 19:13:48] Hotfix Hotfix-NIOS-74468-APPLY-8-5-0-8-5-1-85ed6059d285231f18c692e29a413ea6-Fri-May-15-03-41-20-2020.bin applied successfully
[2020/09/09 19:28:49] Hotfix Hotfix-8.5.1-NIOS-75574-Apply-8aa175f11385cc40df7f8a13cddc0deb-Thu-Aug-6-07-43-58-2020.bin applied successfully
192.168.1.2 > 

 

Through WAPI we can see just the most recent hotfix for each appliance, using the upgradestatus element:

 

curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.9/upgradestatus?type=VNODE&_return_fields%2b=subelements_status'

provides an entry like this for every appliance:

 

{
   "_ref": "upgradestatus/Li51cGdyYWRlc3RhAbCdEfGhWNoYXJkLm5ldHdvcmtfdmxpc3Q:gm.example.com", 
	"alternate_version": "8.5.0-394706", 
	"current_version": "8.5.1-397728", 
	"distribution_version": "", 
	"element_status": "WORKING", 
	"ha_status": "NOT_CONFIGURED", 
	"ipv4_address": "192.168.1.2", 
	"ipv6_address": "2600:1000:1234:8002::2", 
	"member": "gm.example.com", 
	"reverted": false, 
	"status_value": "COMPLETED", 
	"status_value_update_time": 1588197519, 
	"steps_completed": 1, 
	"steps_total": 1, 
	"subelements_status": [
		{
			"_ref": "upgradestatus/Li51cGdyYWRlc3RhAbCdEfGhWNoYXJkLm5ldHdvcms:gm.example.com", 
			"alternate_version": "8.5.0-394706", 
			"current_version": "8.5.1-397728", 
			"distribution_version": "", 
			"element_status": "WORKING", 
			"ha_status": "NOT_CONFIGURED", 
			"hotfixes": [
				{
					"status_text": "LAST-HOTFIX: Hotfix-8.5.1-NIOS-75574-Apply-8aa175f11385cc40df7f8a13cddc0deb-Thu-Aug-6-07-43-58-2020.bin", 
					"unique_id": "gm.example.com_hf_0"
				}, 
				{
					"status_text": "LAST-HOTFIX-TIME: Wed Sep  9 19:28:53 2020", 
					"unique_id": "gm.example.com_hf_1"
				}
			], 
			"ipv4_address": "192.168.1.2", 
			"ipv6_address": "2600:1000:1234:8002::2", 
			"member": "gm.example.com", 
			"reverted": false, 
			"status_value": "COMPLETED", 
			"status_value_update_time": 1588197519, 
			"steps": [
				{
					"status_text": "Upgrade", 
					"status_value": "COMPLETED"
				}
			], 
			"type": "PNODE", 
			"upload_version": ""
		}
	], 
	"type": "VNODE", 
	"upgrade_group": "Default", 
	"upload_version": ""
}

 

 

 

 

 

 

 

Re: Get list of hotfixes currently installed

New Member
Posts: 5
5522     0

Thanks Richard for your reply. I was trying to save some time when running the script... I was already establishing SSH sessions with the grid members and capturing the data with expect and then parsing the corresponding hotfix codes (NIOS-XXXX) to update our documentation accordingly. Unfortunately, there are 40+ connections so the execution takes some time so was trying to get all the info from WAPI in one go... 

 

Guess it'll have to wait to future releases Smiley Happy

 

Thanks again!

Re: Get list of hotfixes currently installed

Moderator
Moderator
Posts: 315
5523     0

If this is important, I'd recommend working with your account team to put in a feature request

 

What scripting languange are you using?  Can you go multithreaded and peform all the expect portions simultaneously?

Re: Get list of hotfixes currently installed

New Member
Posts: 5
5523     0

I am exploring that option right now (playing with the threading library).

 

Thanks for your replies, much appreciated!

Showing results for 
Search instead for 
Did you mean: 

Recommended for You