GET STORAGE INFO Command

Fetch storage information.

Description

Report currently free storage. This is reported as currently free records, free pages and page size. Each object takes a record slot and will use as many pages as needed.

Shell Example

yubihsm> get storage 0
free records: 255/256, free pages: 1023/1024 page size: 126 bytes

Protocol Details

Command

Tc = 0x41
Lc = 0
Vc = Ø

Response

Tr = 0xc1
Lr = 10
Vr = Rtotal || Rfree || Ptotal || Pfree || S

Parameters:

Rtotal := Total number of records (2 bytes)

Rfree := Currently free storage records (2 bytes)

Ptotal := Total number of pages (2 bytes)

Pfree := Currently free storage pages (2 bytes)

S := Page size in bytes (2 bytes)