oslevel     # Report system version
oslevel -rq # Report "technology level" (major release?)
            # information
oslevel -sq # Report service pack information

Different system components (“filesets”) can be at different technology levels / service packs. You can use oslevel to list which software that is more (-g) or less (-l) recent than a given technology level (-r) or service pack (-s); for example:

oslevel -s -l $SERVICE_PACK # List filesets below the
                            # specified service pack