niminv Command
Purpose
Allows system administrators to gather, conglomerate, compare, and download fixes based on installation inventory of NIM objects.
Syntax
To get installation inventory:
niminv -o invget -a targets=object1,object2,... [ -a location=path ] [ -a colonsep=yes|no ]
To conglomerate installation inventory:
niminv -o invcon -a targets=object1,object2,... [ -a base=highest|lowest ] [ -a location=path ] [ -a colonsep=yes|no ]
To compare installation inventory:
niminv -o invcmp -a targets=object1,object2,... [ -a base=object|any ] [ -a location=path ]
To get fixes based on conglomerate inventory:
niminv -o fixget -a targets=object1,object2,... [ -a download=yes|no ] [ -a lp_source=object ] [ -a location=path ] -a newlppname=name
Description
- Gather installation inventory of several NIM objects.
- Conglomerate installation inventory of several NIM objects.
- Compare installation inventory of several NIM objects.
- Download fixes base on the installation inventory of several NIM objects.
The niminv command can use any NIM object that contains installation information. Examples of such objects include standalone client objects, SPOT objects, lpp_source objects and mksysb objects.
- Hardware installation inventory is gathered alongside the software installation inventory.
- Data files are saved with a naming convention that is easily recognizable.
- All NIM objects that have installation inventory can be used.
- The command provides a holistic view of all managed NIM objects.
- Only software installation inventory is provided for objects that do not actually have physical devices (such as SPOT objects, lpp_source objects, and mksysb objects).
- Software and hardware installation inventory on client objects are limited to what commands on the remote system can provide.
- The recognition of fixes to download is based on the fix backend server. For more details, see Using the Software Service Management menu (including SUMA).
Flags
Item | Description |
---|---|
-a attribute=value | Specifies the attribute and value. The supported attributes and values are based on the operation. |
-o operation | Specifies the operation. The following operations
are currently supported:
|
-o operation (Continued) |
|
-o operation (Continued) |
|
Exit Status
Item | Description |
---|---|
0 | The command completed successfully. |
>0 | An error occurred. |
Security
Access Control: You must have root authority to run the niminv command.
Attention RBAC users and Trusted AIX® users: The rbacqry command grants execute (x) access to the root user. The rbacqry command is a privileged command that is used to run privilege operations. You must activate a role that has the authorization to run the command successfully.
Examples
- To gather installation inventory of a two clients and save the
output to /tmp/inventory, enter:
Output similar to the following is displayed:niminv -o invget -a targets=client1,client2 -a location=/tmp/inventory
The information in the files is similar to the output of lslpp -LInstallation Inventory for client1 saved to /tmp/inventory/inventory.client1.060406140453. Installation Inventory for client2 saved to /tmp/inventory/inventory.client2.060406140453.
- To conglomerate installation inventory of two clients and save
the output to /tmp/inventory, enter:
Output similar to the following is displayed:niminv -o invcon -a targets=client1,client2 -a location=/tmp/inventory
The information in the files is similar to the output of lslpp -L.Installation Inventory for client1 saved to /tmp/inventory/conglomerate.client1:client2.060406140500.
- To compare installation inventory of a mksysb,
SPOT, and lpp_source to what's currently
installed on the master, and save the output to /tmp/inventory,
enter:
Output similar to the following is displayed:niminv -o invcon -a targets=mksysb1,spot1,lpp_source1 -a base=master -a \ location=/tmp/inventory
The information in the file is listed in column format. The comparison only includes installation inventory on the master.Installation Inventory for client1 saved to /tmp/inventory/comparison.master.mksysb1:spot1:lpp_source1.060406140610.
- To do the same comparison as in the preceding example but also
include software on any of the objects, enter:
Output similar to the following is displayed:niminv -o invcon -a targets=mksysb1,spot1,lpp_source1,master -a base=any -a \ location=/tmp/inventory
The information in the file is listed in column format. The comparison includes any installation inventory in any of the target objects.Installation Inventory for client1 saved to /tmp/inventory/comparison.any.mksysb1:spot1:lpp_source1.060406140733.
- To see the fixes that can be downloaded based on the lowest installations
in a mksysb, SPOT and lpp_source,
enter:
Output similar to the following is displayed:niminv -o fixget -a targets=mksysb1,spot1,lpp_source1
**************************************** Performing preview download. **************************************** Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/Java14.debug.1.4.1.0.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/Java14.debug.1.4.1.7.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.00100100.com.5.2.0.50.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.00100300.diag.5.2.0.75.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.00100f00.rte.5.2.0.85.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.13100560.rte.5.2.0.85.bff Summary: 6 downloaded 0 failed 0 skipped
- To download the latest fixes based on the lowest installations
in a mksysb, SPOT and lpp_source,
enter:
Output similar to the following is displayed:niminv -o fixget -a targets=mksysb1,spot1,lpp_source1 -a download=yes
Extending the /usr filesystem by 30 blocks. File System size changed to 8126464 Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/Java14.debug.1.4.1.0.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/Java14.debug.1.4.1.7.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.00100100.com.5.2.0.50.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.00100300.diag.5.2.0.75.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.00100f00.rte.5.2.0.85.bff Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/devices.pci.13100560.rte.5.2.0.85.bff Summary: 6 downloaded 0 failed 0 skipped
Note: Any installations already contained in the default download path (as specified by the suma command) will not be downloaded again. The default download path in this example was /usr/sys/inst.images. Refer to the suma command for specifics on where the default download path will be. - To download the latest fixes based on the lowest installations
in a mksysb, SPOT and lpp_source to
an existing lpp_source, enter:
Output similar to the following is displayed:niminv -o fixget -a targets=mksysb1,spot1,lpp_source1 -a download=yes -a \ lpp_source=lpp_source2
Download SUCCEEDED: /nim/lpps/lpp_source2/installp/ppc/Java14.debug.1.4.1.0.bff Download SUCCEEDED: /nim/lpps/lpp_source2/installp/ppc/Java14.debug.1.4.1.7.bff Summary: 2 downloaded 0 failed 0 skipped
Note: Any installations already contained in lpp_source2 will not be downloaded again. In this example, the filesets device already existed in the lpp_source2. - To download the latest fixes based on the lowest installations
in a mksysb, SPOT and lpp_source to
a newlpp_source while filtering filesets
in an existing lpp_source, enter:
Output similar to the following is displayed:niminv -o fixget -a targets=mksysb1,spot1,lpp_source1 -a download=yes -a \ location=/nim/lpps/newlpp1 -a newlppname=newlpp1
Download SUCCEEDED: /nim/lpps/newlpp1/installp/ppc/Java14.debug.1.4.1.0.bff Download SUCCEEDED: /nim/lpps/newlpp1/installp/ppc/Java14.debug.1.4.1.7.bff Summary: 2 downloaded 0 failed 0 skipped
Note: Any installations already contained in lpp_source2 will not be downloaded again. In this example, the filesets device already existed in the lpp_source2. - To download the latest fixes based on the lowest installations
in a mksysb, SPOT and lpp_source to
a newlpp_source, enter:
Output similar to the following is displayed:niminv -o fixget -a targets=mksysb1,spot1,lpp_source1 -a download=yes -a \ location=/nim/lpps/newlpp2 -a newlppname=newlpp2
Download SUCCEEDED: /nim/lpps/newlpp2/installp/ppc/Java14.debug.1.4.1.0.bff Download SUCCEEDED: /nim/lpps/newlpp2/installp/ppc/Java14.debug.1.4.1.7.bff Download SUCCEEDED: /nim/lpps/newlpp2/installp/ppc/devices.pci.00100100.com.5.2.0.50.bff Download SUCCEEDED: /nim/lpps/newlpp2/installp/ppc/devices.pci.00100300.diag.5.2.0.75.bff Download SUCCEEDED: /nim/lpps/newlpp2/installp/ppc/devices.pci.00100f00.rte.5.2.0.85.bff Download SUCCEEDED: /nim/lpps/newlpp2/installp/ppc/devices.pci.13100560.rte.5.2.0.85.bff Summary: 6 downloaded 0 failed 0 skipped
Location
/usr/sbin/niminv