OBLYTECH Logo
OBLYTECH Logo

ServiceNow Asset Table: What alm_asset Holds and Its CMDB Link

The ServiceNow asset table is alm_asset. It stores the financial and ownership side of what a company buys: who holds an item, where it sits, what it cost, and where it is in its life. Hardware, license and consumable class tables sit beneath it, and a reference field links an asset to its configuration item.

Why there are two records for one laptop

New admins often ask why a single laptop appears in both the asset list and the CI list. The two records answer different questions.

The configuration item (CI) answers “what is this thing and what does it depend on?” It lives in a table under the CMDB class hierarchy and feeds incident, change and service mapping work.

The asset answers “what do we own and what is its commercial story?” It carries purchase, assignment, location and lifecycle information that finance and procurement people care about.

Not every asset has a CI. A box of spare keyboards is an asset without any operational footprint. Not every CI is an asset either, since a logical service has no purchase order. Where both exist, a reference field on the asset points to the CI. How tightly the two sides are kept in step depends on your configuration, so test a change on a sub-production instance before relying on it.

How the asset table is organised

Think of alm_asset as a parent with children. In the base system there are three asset classes: hardware, software license and consumable. Each has its own table.

Asset class Table What it is for
Hardware alm_hardware Physical devices such as laptops, servers and network gear, covered in hardware asset management
Software license alm_license Entitlements to use software, tracked as assets and managed through software asset management
Consumable alm_consumable Stock items counted by quantity, such as cables or toner

Your instance may show additional classes, depending on release and what is installed. Open the asset class list on your own instance and treat that as the truth. The table record for each class shows its parent.

Because the class tables inherit from the parent, a record in alm_hardware also appears when you list alm_asset. Every row carries a class field, sys_class_name, which tells you which child table it belongs to. That inheritance is the practical reason to report on the parent: one list or report covers every class, and you can split it by class when you need to.

Which class an asset becomes

The class is not picked at random. A model category, which groups product models such as “Computer” or “Server”, carries settings that relate it to an asset class and a CI class. That configuration also influences whether a CI is created alongside the asset, so check the model category form on your instance.

Two consequences follow. The CI class has to be set when you create a model category, because it cannot be added afterwards, and an asset class cannot be changed once it is selected. And if finance complains that discovered servers are missing from the asset list, the model category settings are one place to check, alongside the discovery results.

How to look at the table on your own instance

Reading the structure takes a few minutes and avoids guesses based on a description of another release.

  1. Open the table list under System Definition and search for alm_asset. The table record shows its parent and the tables that extend it.
  2. Open the schema map from that table’s record. It shows the table’s schema, which helps make the relationship to the CI table concrete.
  3. Open the list view of alm_asset. Add a column for sys_class_name and group by it to see how many rows each class holds.
  4. Open one asset form, right-click the header and choose to configure the form layout. This lists every field available, including ones added by plugins.
  5. Pick one asset that has a CI, open both records, and compare the shared values such as model, assigned person and location. Then edit one on a test record and watch whether the other changes.

Whether shared values such as model, assignee and location are copied between an asset and its CI, and which fields are involved, depends on your configuration. Which side should be edited depends on the sync direction set in your configuration, so confirm it before training anyone.

Fields worth understanding first

You do not need the whole field list on day one. These are the fields to learn first.

Asset tag. A human-readable identifier, often printed on a label stuck to the device. Keep tags consistent so that anyone matching records by hand can rely on them.

Model and model category. The model ties the asset to a product definition, and the model category drives the class behaviour described above. A blank or wrong model is a frequent root cause of odd class and CI outcomes.

Status and substatus. On the asset, the state field and its substate track where the item is in its life, from receipt through use to retirement, which is the subject of IT asset lifecycle management. The CI carries its own status fields, and asset state and CI status do not map one to one. The exact behaviour depends on your configuration, so check it on your instance. Read the choice list on your instance, and avoid scripts that hard-code a value copied from elsewhere.

Assigned to, location and stockroom. These show who holds an item and where. For items sitting in storage, a stockroom is the usual holder.

CI reference. The link to the configuration item. When you build a report that spans both worlds, this reference is the join.

Querying the table without surprises

A few habits keep reports honest.

Filter on sys_class_name when a question is about one class. A count of alm_asset with no filter includes licenses and consumables, which can inflate a “number of devices” figure by a lot.

Use the label shown in the choice list, not the underlying value, in saved filters where the filter builder offers it. The builder reads the choice list on your instance, so the filter keeps making sense when someone relabels a value.

For scripts, query the child table when you need class-specific fields, and the parent when you want everything. A query on alm_hardware grouped by model category is a simple way to see how your devices spread across categories, and the same pattern works for any field on the table.

Retire, do not delete. When a device leaves service, move the asset to a retired or disposal status through the normal lifecycle rather than removing the row. Retiring changes the asset’s state to Retired, so it is the safer default when audit or finance may ask about the asset later.

Joins between the two worlds go through the CI reference. Start from alm_asset, follow the reference to the CI, and report on fields from both. Many empty references are themselves a finding: those assets were never matched to a CI.

Mistakes teams make the first time

Treating the asset table as a second CMDB is the biggest one. People start adding relationship detail and operational attributes to assets because the form is open in front of them. Put operational facts on the CI and commercial facts on the asset.

Another is trusting a status value copied from a note or script. If a note says a status means retired, check your choice list before acting. The same status name may mean something else on your release or after a customisation.

A worked example of the planning habit

Picture a team that is about to bring a new batch of laptops into the system. This is an example, not a record of any real customer. Before the first row is loaded, one person opens the model for the laptop, checks its model category, and confirms the category points to the hardware class. Another person checks that the stockroom the devices will land in already exists. Only then does the load run, on a sub-production instance first.

Who should own the asset table

The table touches finance, procurement, service desk and the people who run the CMDB, and that is exactly why it drifts when nobody owns it. Name one owner for the structure of the table: new classes, model category changes and status choices. Let other teams own the data they enter, but route structural change through the one owner.

Frequently asked questions

Is alm_asset the same as the CMDB?

No. The CMDB holds configuration items under the base CI table. The asset table sits beside it, holds commercial and lifecycle data, and links to a CI by reference where one exists.

Which table do I query for laptops?

Query alm_hardware for hardware-specific fields, or alm_asset if you want every class and plan to filter by class. Either way, confirm your model categories put laptops in the hardware class.

Why does an asset exist with no CI?

Items such as stock in a stockroom have no running footprint, and some categories are set up to create an asset without a CI. It can also mean a CI was never matched to the asset, which is worth checking by asset tag and serial number.

Can I add my own asset class?

Yes, by extending alm_asset with a custom table, following the pattern in table extension. Weigh the upkeep first, since reports and forms built for the base classes will not automatically cover it.

Does updating a CI change its asset?

It can. Whether a change on one side reaches the other, which fields are involved and in which direction all depend on your configuration. Test on a sub-production instance first, using a record you can afford to change.