Another command you can use from the maintenance screen is
"sys tot" (without the quotes)
The config long command will tell you only what cards are in the system. The SYS TOT command will give you a generalized summary of what's programmed/assigned, but not necessarily what's actually in service.
Once you find out what cards are where (the config long command) then you can issue the 'state' command to each card to find out what type of set is programmed and whether or not it's in service.
Example, if the config long command shows a DNIC line card in slot 2-1-4 then the command:
"stat 2 1 4" will show what type of set is programmed on that plid (physical location i.d.) and it will also show whether it is active or out of service. (If it comes back "indeterminate" then the port is assigned but has not been used since the last activity switch/transfer). You can then issue 'test' command (TE 2 1 4) to the card and therafter reissue the stat command.
Unfortunately there's no way to determine if any of the analog (ONS) station ports are 'equipped' or not, but the SYS TOT command should still give you a count of the ones that are programmed.