Live cluster mode commands
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page describes the asadm commands that are available in live cluster mode. Live cluster mode is the default mode for asadm, used for viewing and managing a running Aerospike cluster.
asinfo
The asinfo command provides raw access to the Aerospike info protocol for changing live configurations and viewing a wide array of technical data for the cluster. asinfo commands are only available in privileged mode. For more information, see enable.
For a comprehensive list of commands, see the Info Command Reference. With asinfo, you can execute commands across the entire cluster.
When running asinfo commands with asadm:
- Use the
withmodifier to select specific nodes. - Use the
likemodifier to filter results.
Admin> enableAdmin+> asinfo -v get-config like batch172.16.245.231 (172.16.245.231) returned:batch-max-requests=5000;query-batch-size=100
172.16.245.232 (172.16.245.232) returned:batch-max-requests=5000;query-batch-size=100
172.16.245.233 (172.16.245.233) returned:batch-max-requests=5000;query-batch-size=100
172.16.245.234 (172.16.245.234) returned:batch-max-requests=5000;query-batch-size=100collectinfo
The collectinfo command gathers information about your cluster and saves that information in a directory and in a .tgz archive. You can share the archive with Aerospike Support for help in diagnosing issues with your support case.
-
By default,
collectinfocollects:- information about your cluster.
- the aerospike configuration file for the local node.
- system statistics from the local node if you don’t provide remote server credentials.
- A list of all the installed packages on Linux installations.
-
Use
--enable-sshand provide remote server credentials to collect system statistics from all nodes. For more information, see Configuring SSH. -
Use
-nto collect more than one snapshot and-sto specify the sleep time between snapshots. -
Run
help collectinfofor more details.
collectlogs
The collectlogs command gathers cluster logs from local clusters and remote logs of all nodes if remote server SSH credentials are configured.
Aerospike support can use the results of collectlogs to help with your support case.
To collect remote host logs, you must configure SFTP on the remote host.
Call collectlogs with the --enable-ssh option.
For more information, see Configuring SSH.
Run help collectlogs to see all options.
Access logs without root privileges
On an Aerospike system running with the default root privileges, a non-root user on the same system cannot access the logs generated by collectlogs, even if that non-root user has sudo privileges.
Use one of the following methods to access logs if Aerospike is not running with root privileges:
- Run
collectlogsas a user with root user privileges to access server logs. - Configure
asd, the Aerospike Daemon, to run as a non-root user. - Change the Aerospike Service:
- Set the Aerospike configuration parameter os-group-perms to
trueand add the non-root Linux user to therootuser group with the terminal commandusermod -aG root NON-ROOT USERNAME.
- Set the Aerospike configuration parameter os-group-perms to
disable
The disable command exits privileged mode. We recommend that you only enter privileged mode when needed to avoid inadvertently executing commands that could alter the cluster in undesirable ways.
enable
The enable command enters privileged mode, which is required for executing manage and asinfo commands. If you use the --warn flag, asadm displays a warning before executing your command, and you must enter the provided hexadecimal string to confirm that you want to proceed.
Admin>Admin> enable --warnAdmin+> manage udf add test.lua path path/to/test.luaYou are about to write over an existing UDF module.Confirm that you want to proceed by typing 48b015, or anything else to cancel.48b015Successfully added UDF test.luaAdmin+> disableAdmin>Admin> enableAdmin+>Admin+> manage udf add test.lua path path/to/test.luaSuccessfully added UDF test.luaAdmin+> disablefeatures
The features command displays features used in cluster. It supports like and with modifiers.
Admin> features~~~~~~Features (2026-04-22 18:55:52 UTC)~~~~~Node |10.0.0.1:3000Aggregation |NOBatch |YESCompression |NOIndex-on-flash |NOIndex-on-pmem |NOIndex-on-shmem |YESKVS |YESLDT |NOPIndex Query |YESQuery |NORack-aware |NOSC |NOSIndex |NOSIndex Query |YESScan |NOSecurity |NOTLS (Fabric) |NOTLS (Heartbeat)|NOTLS (Service) |NOUDF |YESXDR Destination|NOXDR Source |NONumber of rows: 23info
info commands display diagnostic information in a concise, tabular format. When issued without additional arguments, info executes network, namespace, and xdr sub-commands. Output from info commands alert you to potential cluster issues by coloring suspicious text red.
For namespace and set subcommands, extra rows are shown in blue and display the sum of statistics per namespace and set.
namespace
The info namespace command displays a summary of important namespace statistics for each namespace defined on each node ordered by Namespace and Node.
It displays an extra row per namespace, which is an aggregate of some of the statistics.
The command displays information in two tables:
Namespace Usage Information: system memory availability and per-resource usage broken out intoPrimary Index,Secondary Index, andStorage Enginecolumn groups. Each group reportsType(for exampleshmemordevice) and the amountUsed. TheStorage Enginegroup also showsUsed%,Evict%,Used Stop%,Avail%, andAvail Stop%when the namespace has a persistent storage engine configured.Namespace Object Information: replication factor, record counts broken down byMaster,Prole, andNon-Replica, tombstone counts with the same breakdown, and any pending migrate transfers.
Admin> info namespace~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Usage Information (2026-04-22 18:55:52 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace| Node|Evictions| Stop|~System~|~~~~Primary Index~~~~~|~Secondary Index~|~~~~~~~~~~~~~~~~~~Storage Engine~~~~~~~~~~~~~~~~~~ | | |Writes|~Memory~| Type| Used|Evict%| Type| Used| Type| Used| Used%|Evict%| Used|Avail%|Avail | | | | Avail%| | | | | | | | | | Stop%| |Stop%test |10.0.0.1:3000| 0.000 |False | 93|shmem|12.388 MB| 0.0 %|shmem | 48.000 MB|device|22.180 MB|0.54 %| 0.0 %|70.0 %|97.0 %|5.0 %test | | 0.000 | | | |12.388 MB| | | 48.000 MB| |22.180 MB|0.54 %| | | |Number of rows: 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Object Information (2026-04-22 18:55:52 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace| Node|Rack| Repl|Expirations| Total|~~~~~~~~~~~Objects~~~~~~~~~~~|~~~~~~~~~Tombstones~~~~~~~~|~~~~Pending~~~~ | | ID|Factor| | Records| Master| Prole|Non-Replica| Master| Prole|Non-Replica|~~~~Migrates~~~ | | | | | | | | | | | | Tx| Rxtest |10.0.0.1:3000| 0| 1| 0.000 |202.973 K|202.973 K|0.000 | 0.000 |0.000 |0.000 | 0.000 |0.000 |0.000test | | | | 0.000 |202.973 K|202.973 K|0.000 | 0.000 |0.000 |0.000 | 0.000 |0.000 |0.000Number of rows: 1Optionally, use the info namespace usage or info namespace object commands to display namespace usage-related or object-related details only.
network
The info network command displays the name, ID, and IP of each node and provides statistics such as cluster size, cluster key, number of client connections, and uptime for each server.
Under the Node ID column, an asterisk indicates the node that is expected to be the Paxos Principal node.
Admin> info network~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Network Information (2026-04-22 20:27:05 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node| Node ID| IP| Build|Migrations|~~~~~~~~~~~~~~~~~~Cluster~~~~~~~~~~~~~~~~~~|Client| Uptime | | | | |Size| Key|Integrity| Principal| Conns|10.0.0.1:3000| BB98FDAA7D6B66E|10.0.0.1:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 19|00:04:3210.0.0.2:3000| BB96B7778129A2E|10.0.0.2:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:3210.0.0.3:3000| BB9B12EDA4F90DA|10.0.0.3:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:3210.0.0.4:3000|*BB9B34F06AFFE56|10.0.0.4:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 19|00:04:32Number of rows: 4release
The info release command displays a summary of release information for all cluster nodes, as shown in the following table.
Admin> info release~~~~~~~~~~~~~~~~~~~~~~Release Information~~~~~~~~~~~~~~~~~~~~~~ Node|Architecture| Edition|Version| OS| SHA| EE SHA| FIPS SHA192.168.1.1:3000|x86_64 |Aerospike Enterprise Edition|8.1.1.0|linux|3a3bc233f3f78b47fec2388fccdd66d55eb12cad|7a55a2e5b57e9af6fa773c4188ff9527687058e0|acc52654577aa3165d03f8d5556b083626e616e8192.168.1.2:3000|x86_64 |Aerospike Enterprise Edition|8.1.1.0|linux|3a3bc233f3f78b47fec2388fccdd66d55eb12cad|7a55a2e5b57e9af6fa773c4188ff9527687058e0|acc52654577aa3165d03f8d5556b083626e616e8The FIPS SHA column only appears if you’re using the Aerospike Server Enterprise for United States Federal Edition.
set
The info set command displays a summary of important set statistics for each set defined on each namespace on all nodes ordered by Set and Namespace.
If configured, it displays details about your storage quotas.
It includes an extra row that displays an aggregate of grouped rows.
Admin+> info set~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Set Information (2026-04-22 18:55:53 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace| Set| Node| Storage|~~Size~~| Total|~Records~| Disable| Set | | | Engine|~Quota~~| Records|~~Quota~~|Eviction|Index | | | Used| Total| | Total| |test |asadm_jobs_demo_comments|10.0.0.1:3000| 10.681 MB|0.000 B |100.000 K| 0|False |Yestest |asadm_jobs_demo_comments| | 10.681 MB|0.000 B |100.000 K| | |test |asadm_jobs_demo_posts |10.0.0.1:3000| 10.681 MB|0.000 B |100.000 K| 0|False |Notest |asadm_jobs_demo_posts | | 10.681 MB|0.000 B |100.000 K| | |test |user_notifications |10.0.0.1:3000|543.703 KB|0.000 B | 1.302 K| 0|False |Notest |user_notifications | |543.703 KB|0.000 B | 1.302 K| | |test |users |10.0.0.1:3000| 47.688 KB|0.000 B |196.000 | 0|False |Notest |users | | 47.688 KB|0.000 B |196.000 | | |# ... rows for other sets in namespace test omitted for brevity ...Number of rows: 31The Storage Engine Used column reports bytes used by the set on the namespace’s configured storage engine (device, memory, or pmem). The Size Quota Total and Records Quota Total columns reflect the per-set size-quota and records-quota configured through manage config namespace NS set SET; both read 0.000 B / 0 when no quota is in effect. The Set Index column is Yes when the set has a set index attached.
Run the show statistics command to display further statistics for specific sets.
Admin> show statistics sets for NAMESPACE SETsindex
info sindex displays a summary of important secondary index (sindex) statistics for each sindex defined on each namespace, on all nodes, ordered by Sindex and Node.
Admin> info sindex~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Secondary Index Information (2020-12-16 23:10:06 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Index Name|Namespace| Set| Node| Bins| Bin|State|Keys|~~~~~~~~~~Entries~~~~~~~~~~|~~~~Storage~~~~~|~~~~Queries~~~~~|~~~~Updates~~~~~| Context | | | | | Type| | | Total| Avg Per| Avg Per| Type| Used|Requests|Avg Num| Writes|Deletes| | | | | | | | | | Rec| Bin Val| | | Recs| | | |name-sindex|bar |testset|10.0.0.1:3000| name|STRING|RW | 2| 1.000 K | 1.000 | 0.500 K |shmem| 16.000 MB| 0.000 |0.000 | 5.000 |0.000 |--name-sindex|bar |testset|10.0.0.3:3000| name|STRING|RW | 2| 1.000 K | 1.000 | 0.500 K |shmem| 16.000 MB| 0.000 |0.000 | 5.000 |0.000 |--name-sindex|bar |testset|10.0.0.4:3000| name|STRING|RW | 2| 1.000 K | 1.000 | 0.500 K |shmem| 16.000 MB| 0.000 |0.000 | 3.000 |0.000 |--name-sindex|bar |testset|10.0.0.5:3000| name|STRING|RW | 2| 1.000 K | 1.000 | 0.500 K |shmem| 16.000 MB| 0.000 |0.000 | 4.000 |0.000 |--name-sindex|bar |testset|10.0.0.6:3000| name|STRING|RW | 2| 1.000 K | 1.000 | 0.500 K |shmem| 16.000 MB| 0.000 |0.000 | 3.000 |0.000 |-- |bar |testset| | | | | | 5.000 K | | 2.500 K |shmem| 80.000 MB| 0.000 |0.000 |20.000 |0.000 |--age-sindex |test |testset|10.0.0.3:3000| age|STRING|RW | 0| 0.000 | 1.000 | 0.000 |shmem| 16.000 MB| 0.000 |0.000 | 0.000 |0.000 |[list_index(-1), map_key(<string#11>)]age-sindex |test |testset|10.0.0.1:3000| age|STRING|RW | 0| 0.000 | 1.000 | 0.000 |shmem| 16.000 MB| 0.000 |0.000 | 0.000 |0.000 |[list_index(-1), map_key(<string#11>)]age-sindex |test |testset|10.0.0.4:3000| age|STRING|RW | 0| 0.000 | 1.000 | 0.000 |shmem| 16.000 MB| 0.000 |0.000 | 0.000 |0.000 |[list_index(-1), map_key(<string#11>)]age-sindex |test |testset|10.0.0.5:3000| age|STRING|RW | 0| 0.000 | 1.000 | 0.000 |shmem| 16.000 MB| 0.000 |0.000 | 0.000 |0.000 |[list_index(-1), map_key(<string#11>)]age-sindex |test |testset|10.0.0.6:3000| age|STRING|RW | 0| 0.000 | 1.000 | 0.000 |shmem| 16.000 MB| 0.000 |0.000 | 0.000 |0.000 |[list_index(-1), map_key(<string#11>)] |test |testset| | | | | | 0.000 | 1.000 | 0.000 |shmem| 80.000 MB| 0.000 |0.000 | 0.000 |0.000 |[list_index(-1), map_key(<string#11>)]Number of rows: 10show statistics displays more statistics for a specific secondary index.
Admin> show statistics sindex for NAMESPACE test_str_idxtransactions
The info transactions command shows metrics for transaction monitors and provisionals.
There are two sub-commands, info transactions monitors and info transactions provisionals, that filter the output to show only relevant metrics.
Only namespaces configured with strong consistency can show transaction information.
Monitors
A monitor is a small control record that represents one active transaction, stored in a hidden set <ERO~MRT> inside the namespace.
While the client is running the transaction, the monitor tracks which digests (records) the client has written, the transaction timeout, and whether the client has started to commit.
Completed transactions remove their monitors, leaving a tombstone.
| Metric | Description |
|---|---|
| Count | Total number of monitor records observed for the namespace on the node. |
| Active | Number of monitors whose transactions are neither fully committed nor rolled back. |
| Tombstones | Durable-delete markers left after monitor records are removed. |
| Storage | Bytes used on device by the monitor set <ERO~MRT>. |
| Monitor Roll Back / Forward | Work performed by the monitor when it takes over an expired or abandoned transaction. Roll Forward completes a commit that had already started. Roll Back discards changes when no commit was started. |
Provisionals
A provisional is the temporary version of an application record created when a transaction writes to that record. The original version remains unchanged and the provisional version holds the new data until the transaction commits or aborts.
| Metric | Description |
|---|---|
| Provisionals | Count of provisional records, one per application record written inside a transaction. |
| Transaction (Blocked) | Number of writes rejected with AS_ERR_MRT_BLOCKED because a target record is locked by a transaction. |
| Transaction (Mismatch) | Number of commits rejected with AS_ERR_MRT_VERSION_MISMATCH when a record read earlier in the transaction changed before commit. |
| Verify Read | Results of the client’s commit-time generation checks on records read during the transaction. |
| Roll Back / Forward | Work applied to provisional records during cleanup or commit. Roll Forward commits updates from provisionals to live records, while Roll Back discards the update. |
Admin> info transactions~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~MRT Monitor Metrics (2025-07-17 05:32:16 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace | Node | Count | Active | Tombstones | Storage |~~~Monitor Roll Back~~~|~~~Monitor Roll Forward~~~ | | | | | | Success | Error | Timeout | Success | Error | Timeoutdb-1 | 127.0.0.1:3000 | 0.000 | 0.000 | 59.000 | 3.988 MB | 2.478 K | 0.000 | 0.000 | 0.000 | 0.000 | 0.000test | 127.0.0.1:3000 | 0.000 | 0.000 | 0.000 | -- | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000Number of rows: 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~MRT Provisionals Metrics (2025-07-17 05:32:16 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace | Node | Provisionals |~~~~Transaction~~~~| Version |~~~~~~Verify Read~~~~~~|~~~~~~~Roll Back~~~~~~~|~~~~~~Roll Forward~~~~~~ | | | Blocked | Mismatch | | Success | Error | Timeout | Success | Error | Timeout | Success | Error | Timeoutdb-1 | 127.0.0.1:3000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 2.478 K | 0.000 | 0.000 | 4.351 M | 0.000 | 0.000test | 127.0.0.1:3000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000Number of rows: 2xdr
The info xdr command shows the current performance characteristics of XDR on each node.
The info xdr command supports filtering by datacenter using the for modifier.
Admin> info xdr for DC1~~~~~~~~~~~~~~~~~~~~XDR Information DC1 (2020-12-17 00:11:48 UTC)~~~~~~~~~~~~~~~~~~~~ Node|Success|~~~~~~~~Retry~~~~~~~~~|Recoveries| Lag| Avg|Throughput | |Connection|Destination| Pending|(hh:mm:ss)|Latency| (rec/s) | | Reset| | | | (ms)|10.0.0.3:3000| 224| 0| 0| 0| 00:00:00| 0| 107810.0.0.5:3000| 206| 0| 0| 0| 00:00:00| 0| 970 | | | | 0| | 0|Number of rows: 2manage
The manage commands administer access control,
add and remove user defined functions (UDFs), create and delete
secondary indexes (sindex), and dynamically configure your cluster.
To access the manage commands, enter privileged
mode by typing enable [--warn]. For more information, see enable.
Unlike most other commands, manage commands require one or more arguments.
Additionally, each manage command requires specific access rights.
See Configuring access control for more information.
acl
The manage acl commands manage users and roles. The general syntax
is manage acl OPERATION user|role USERNAME|ROLE-NAME . . ..
- The command to create a user is
manage acl create user USERNAME. - The command to create a role is
manage acl create role ROLE-NAME.
Use the show users and show roles commands in conjunction with manage acl commands.
create user
Access control permissions: user-admin
Create a user with a password
Command format: create a user with a password and assign roles. (Assigning roles to a new user is not required.)
- To keep a password out of command history,
asadmprompts for a password when thepasswordargument is not provided. - See Set a new password for the rules regarding valid passwords.
manage acl create user USERNAME [password PASSWORD] [roles ROLE1 ROLE2 ...]The following example creates user Mr-Rogers with role Good-Neighbor.
Admin+> manage acl create user Mr-Rogers roles Good-NeighborEnter password for new user Mr-Rogers:Successfully created user Mr-RogersCreate a user with password authentication permanently disabled
- The password
nopasswordtells the server to permanently disable password authentication for this user. - If password authentication is disabled, the user cannot create a password and an administrator cannot assign a password for the user.
- Any such attempt is recorded in the audit log and results in
an error
FORBIDDEN_PASSWORD (64): PKI user password not changeable.
- Any such attempt is recorded in the audit log and results in
an error
Command format: Create a user with password authentication permanently disabled and optional roles:
manage acl create user USERNAME [password nopassword] [roles ROLE1 ROLE2 ...]delete user
Access control permissions: user-admin
Use the command manage acl delete user USERNAME to remove a user.
Admin+> manage acl delete user ThanosSuccessfully deleted user Thanosset password
Access control permissions: user-admin
-
With the
manage acl set-password user USERNAME [password PASSWORD]command, a user-admin can change the password of any user without knowing that user’s current password. -
Using the password
nopasswordtells the server to permanently disable password authentication for this user. -
Any attempt to set a password for a user restricted to PKI authentication is logged in the audit log and returns a
FORBIDDEN_PASSWORD (64): PKI user password not changeableerror. -
Passwords that contain whitespace must be quoted.
-
Double and single quotes must either be escaped or be different from the enclosing quote.
-
To keep a password out of command history,
asadmprompts for a password when thepasswordargument is not provided.
Admin+> manage acl set-password user jesseEnter new password for user jesse:Successfully set password for user jessechange password
Access control permissions: None
The command manage acl change-password user USERNAME [old OLD-PASSWORD] [new NEW-PASSWORD]
changes the password of any other user as long as the user’s current password is provided.
To keep both the old and new password out of command history, asadm prompts for them when not provided.
- Users with password authentication disabled can never have a password set or changed. Any such attempt returns an error
FORBIDDEN_PASSWORD (64): PKI user password not changeable.
Admin+> manage acl change-password user KellyEnter old password:Enter new password:Successfully changed password for user Kellygrant user
Access control permissions: user-admin
The manage acl grant user USERNAME roles ROLE1 [ROLE2 [...]] command uses the roles keyword to add one or more roles to an existing user.
Admin+> manage acl grant user Kelly roles data-adminSuccessfully granted roles to user Kellyrevoke user
Access control permissions: user-admin
The manage acl revoke user USERNAME roles ROLE1 [ROLE2 [...]] command uses the roles keyword to remove one or more roles from an existing user.
Admin+> manage acl revoke user Kelly roles data-adminSuccessfully revoked roles from user Kellycreate role
Access control permissions: user-admin
The following command creates new roles and assigns them a privilege and allowlist.
create role ROLE-NAME priv PRIVILEGE [ns NAMESPACE [set SET]] [allow ADDR1 [ADDR2 [...]]] [read READ-QUOTA] [write WRITE-QUOTA]You must assign a privilege with the priv keyword followed by a privilege.
Some privileges can also have namespace or set scopes, which you can define with the ns and setkeywords. To assign an allowlist, use the allow keyword followed by one or more addresses. To assign a read quota and/or write quota use the read and write keywords.
For more information, see Configuring access control in EE and FE.
Admin+> manage acl create role devops priv read-write ns test set testset allow 10.0.0.1 read 3000 write 4000Successfully created role devopsdelete role
Access control permissions: user-admin
The manage acl delete role ROLE-NAME command allows for the removal of a role.
Admin+> manage acl delete role devopsSuccessfully deleted role devopsgrant role
Access control permissions: user-admin
The manage acl grant role ROLE-NAME priv PRIVILEGE [ns NAMESPACE [set SET]]>
command adds one or more privileges to a existing role.
Some privileges can also have namespace or set scopes which can be defined with the ns and set keywords. For more information, see Configuring access control in EE and FE.
Admin+> manage acl grant role superwoman priv write ns bar set testsetSuccessfully granted privilege to role superwomanrevoke role
Access control permissions: user-admin
The manage acl revoke role ROLE-NAME priv PRIVILEGE [ns NAMESPACE [set SET]]> command removes a single privilege from a role.
If the privilege has a namespace scope, the ns argument is required.
If the privilege has a set scope, the ns and set arguments are required.
Admin+> manage acl revoke role superwoman priv data-admin ns test set testsetSuccessfully revoked privilege from role superwomanacl allowlist role
Access control permissions: user-admin
The allowlist command can overwrite or clear the allowlist for a role.
To overwrite the allowlist, use manage acl allowlist role ROLE-NAME allow addr1 [addr2 [...]].
Admin+> manage acl allowlist role superwoman allow 10.0.0.1 10.1.2.3Successfully updated allowlist for role superwomanTo clear an allowlist, use manage acl allowlist role ROLE-NAME clear.
Admin+> manage acl allowlist role superwoman clearSuccessfully cleared allowlist from role superwomanacl quotas role
The manage acl quotas role ROLE-NAME [read READ-QUOTA]|[write WRITE-QUOTA] command changes the read and/or write quota for a role using the read and write keywords.
Either the read or write keyword must be provided.
If either the read or write keyword is not provided the respective quota will not be changed.
To remove a quota from a role, set the value to 0.
Admin+> manage acl quotas role superwoman read 6000 write 9000Successfully set quotas for role superwoman.config
Use the manage config commands to edit configuration, create XDR datacenters,
add and remove XDR nodes, and add and remove XDR namespaces in the Aerospike cluster.
manage config commands match the structure of the aerospike.conf file.
Make sure that you understand the context of a configuration parameter before running
a manage config command.
By default, manage config commands affect all nodes in the Aerospike cluster.
- To run a command against only a subset of nodes, use the
withmodifier. - To see which nodes a command affects, enter privileged mode with the
--warnflag. manage configcommands support robust tab completion for contexts, sub-contexts, parameters, and values. For tab completion in the latest version of the Aerospike database, use the latest version ofasadm.- Use the
show configcommand in conjunction withmanage configcommands.
config CONTEXT
To change the value of a configuration parameter, use the manage config CONTEXT [SUB-CONTEXT1 [NAME1] [SUB-CONTEXT2 [NAME2] [...]]] param PARAMETER to VALUE command. If a context or sub-context in aerospike.conf is followed by a name, such as a namespace, set, dc, or something else, then the
CONTEXT or SUBCONTEXT must also be followed by a name.
You can change the following configurations:
logging: Change the logging context’s dynamic runtime configuration.namespace: Change a namespace context’s dynamic runtime configuration.network: Change the network context’s dynamic runtime configuration.securityChange the security context’s dynamic runtime configuration.service: Change the service context’s dynamic runtime configuration.xdr: A collection of commands to add/remove xdr nodes, namespace, and change dynamic runtime configuration.
To change the service configuration:
manage config service param PARAMETER to VALUE [with node1 [node2 [...]]]
Admin+> manage config service param proto-fd-max to 1500 with 10*~Set Service Param proto-fd-max to 1500~ Node|Response10.0.0.1:3000|ok10.0.0.2:3000|ok10.0.0.3:3000|ok10.0.0.4:3000|ok10.0.0.5:3000|okNumber of rows: 5To change the logging configuration for aerospike.log file:
manage config logging file LOG-FILE-NAME param PARAMETER to VALUE [with node1 [node2 [...]]]
The param keyword specifies the logging context to change, while the to keyword specifies the desired severity level.
Admin+> manage config logging file /var/log/aerospike/aerospike.log param aggr to info with 10.0.0.1 10.0.0.2 10.0.0.3~Set Logging Param aggr to info~ Node|Response10.0.0.1:3000|ok10.0.0.2:3000|ok10.0.0.3:3000|okNumber of rows: 3To change the network heartbeat configuration:
manage config network SUBCONTEXT param PARAMETER to VALUE
Admin+> manage config network heartbeat param interval to 1500 with 10.0.0.1*~Set Network Param interval to 1500~ Node|Response10.0.0.1:3000|okNumber of rows: 1To change the security configuration:
manage config security [SUBCONTEXT] param PARAMETER to VALUE
Admin+> manage config security param privilege-refresh-period to 4500 with 10.0.0.1*~Set Security Param privilege-refresh-period to 4500~ Node|Response10.0.0.1:3000|ok10.0.0.1:3001|ok10.0.0.1:3002|ok10.0.0.1:3003|ok10.0.0.1:3004|okNumber of rows: 5To change configuration for namespace test:
manage config namespace NS param PARAMETER to VALUE
Admin+> manage config namespace test param allow-ttl-without-nsup to false~Set Namespace Param allow-ttl-without-nsup to false~ Node|Response10.0.0.1:3000|ok10.0.0.2:3000|ok10.0.0.3:3000|ok10.0.0.4:3000|ok10.0.0.5:3000|okNumber of rows: 5To change configuration for namespace test and set testset:
manage config namespace NS set SET param PARAMETER to VALUE
Admin+> manage config namespace test set testset param disable-eviction to true~Set Namespace Param disable-eviction to true~ Node|Response10.0.0.1:3000|ok10.0.0.2:3000|ok10.0.0.3:3000|ok10.0.0.4:3000|ok10.0.0.5:3000|okNumber of rows: 5To change configuration for namespace test and subcontext storage-engine:
manage config namespace NS SUBCONTEXT param PARAMETER to VALUE
Admin+> manage config namespace test storage-engine param min-avail-pct to 0 with 10.0.0.1:3000~Set Namespace Param min-avail-pct to 0~ Node|Response10.0.0.1:3000|okNumber of rows: 1To change XDR configuration:
manage config xdr param PARAMETER to VALUE
Admin+> manage config xdr param src-id to 1 with 10.0.0.5*~Set XDR Param src-id to 1~ Node|Response10.0.0.5:3000|okNumber of rows: 1To change configuration for XDR datacenter DC1:
manage config xdr dc DATACENTER param PARAMETER to VALUE
Admin+> manage config xdr dc DC1 param period-ms to 5 with 10.0.0.2 10.0.0.3~Set XDR DC param period-ms to 5~ Node|Response10.0.0.2:3000|ok10.0.0.3:3000|okNumber of rows: 2To change namespace test configuration for XDR datacenter DC1’s:
manage config xdr dc DATACENTER namespace NS param PARAMETER to VALUE
Admin+> manage config xdr dc DC1 namespace test param ignore-bin to age~Set XDR Namespace Param ignore-bin to age~ Node|Response10.0.0.1:3000|ok10.0.0.2:3000|ok10.0.0.3:3000|ok10.0.0.4:3000|ok10.0.0.5:3000|okNumber of rows: 5xdr create dc
The manage config xdr create dc DC command dynamically creates a new XDR
datacenter.
Admin+> manage config xdr create dc DC3~~~Create XDR DC DC3~~ Node|Response10.0.0.4:3000|okNumber of rows: 1xdr delete dc
The manage config xdr delete dc DC command dynamically deletes an XDR
datacenter.
Admin+> manage config xdr delete dc DC3~~~Delete XDR DC DC3~~ Node|Response10.0.0.4:3000|okNumber of rows: 1xdr dc add node
The manage config xdr dc DC add node NODE:PORT command adds a node dynamically to an XDR datacenter.
Admin+> manage config xdr dc DC3 add node 1.1.1.1:3000~Add XDR Node 1.1.1.1:3000 to DC DC3~ Node|Response10.0.0.4:3000|okNumber of rows: 1xdr dc remove node
The manage config xdr dc DC remove node NODE:PORT command removes a node dynamically from an XDR datacenter.
Admin+> manage config xdr dc DC3 remove node 1.1.1.1:3000~Remove XDR Node 1.1.1.1:3000 from DC DC3~ Node|Response10.0.0.4:3000|okNumber of rows: 1xdr dc add namespace
The manage config xdr dc DC add namespace NODE:PORT command adds a namespace dynamically to an XDR datacenter.
Admin+> manage config xdr dc DC3 add namespace test~Add XDR namespace test to DC DC3~ Node|Response10.0.0.4:3000|okNumber of rows: 1xdr dc remove namespace
The manage config xdr dc DC remove namespace NS command removes a namespace dynamically from an XDR datacenter.
Admin+> manage config xdr dc DC3 remove namespace test~Remove XDR Namespace test from DC DC3~ Node|Response10.0.0.4:3000|okNumber of rows: 1jobs
Requires a data-admin privilege.
The manage jobs kill command aborts jobs running on the Aerospike cluster.
Use show jobs commands in conjunction with manage jobs commands.
jobs kill trids
Access control permissions: data-admin
The manage jobs kill trids TRID1 [TRID2 [...]] command kills jobs matching the provided transaction IDs.
The command finds the appropriate node and module before sending the request.
Admin+> manage jobs kill trids 11656826852340327102 7108738339352026161~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Kill Jobs (2026-04-22 04:22:39 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node| Transaction ID|Namespace| Type| Response 127.0.0.1:3000| 7108738339352026161|test |background-ops|Failed to kill job : id not active. 127.0.0.1:3000|11656826852340327102|test |background-ops|okNumber of rows: 2The first job completed before the kill request arrived, so the server responds with Failed to kill job : id not active.. The second job was still running and was aborted successfully.
jobs kill all
The manage jobs kill all command kills all jobs from the specified
module.
jobs kill all queries
Access control permissions: data-admin
The manage jobs kill all queries command kills all query jobs.
Admin+> manage jobs kill all queries~~~~~~~~~~~~~~~~~~Kill Jobs~~~~~~~~~~~~~~~~~~~ Node| Response10.0.0.1:3000|ok - number of queries killed: 410.0.0.2:3000|ok - number of queries killed: 410.0.0.3:3000|ok - number of queries killed: 3Number of rows: 3jobs kill all scans
Access control permissions: data-admin
The manage jobs kill all scans subcommand is retained for compatibility with pre-6.0 clusters. Against Database 6.0 and later, where scans are part of the unified query subsystem, asadm returns ERROR: Killing scans is not supported on server v. 6.0 and later. Use manage jobs kill all queries instead.
masking
Access control permissions: masking-admin
Manage data masking rules for protecting sensitive data. All Aerospike nodes must be at Database 8.1.1 or later.
add
Add redact rule
-
position(optional): Position in the string to start the redaction. A positive integer (0 or greater) is counted from the start of the string. A negative integer is counted from the end, with -1 being the last character in the string. Defaults to 0. -
length(optional): Number of characters of the string to redact starting atposition. By default goes to the end of the string. -
value(optional): Character to use for redaction. Defaults to*. Acceptable values are the printable ASCII characters 33-126 excluding=,;, and:. If violated, some Aerospike features and tools may not function properly. -
type(optional): Data type of the bin. Defaults tostring.
Command format:
Admin+> manage masking add redact [position POSITION] [length LENGTH] [value REPLACEMENT] namespace NAMESPACE set SET bin BIN [type TYPE]Example:
Admin+> manage masking add redact position 0 length 4 namespace test set demo bin secret1Add constant rule
value(optional): The string to use for the mask. By default the string is masked as an empty string. Acceptable values are the printable ASCII characters 33-126 excluding=,;, and:. If violated, some Aerospike features and tools may not function properly.type(optional): Data type of the bin. Defaults to string.
Command format:
Admin+> manage masking add constant [value VALUE] namespace NAMESPACE set SET bin BIN [type TYPE]Example:
Admin+> manage masking add constant namespace test set demo bin secret3Drop a masking rule
Remove a masking rule from a bin.
type(optional): Data type of the bin. Defaults to string.
Command format:
Admin+> manage masking drop namespace NAMESPACE set SET bin BIN [type TYPE]Examples:
Admin+> manage masking drop namespace test set demo bin secret1Admin+> manage masking drop namespace test set demo bin secret3 type stringshow masking
Display masking rules. Optionally filter by namespace and set.
Command format:
Admin+> show masking [namespace NAMESPACE [set SET]]Example:
Admin> show masking namespace testNamespace| Set | Bin | Type|Functiontest |demo |bin1 |string|redact position 0 length 4test |demo |bin2 |string|redact position 4 length 3test |demo |bin3 |string|constantquiesce
Requires a sys-admin privilege.
The manage quiesce command quiesces a cluster node and reverts the effects of a quiesce.
quiesce with
Access control permissions: sys-admin
The manage quiesce with node1 [node2 [...]] command stops a node from participating
as a replica after the next recluster event. For more information, see quiesce.
Admin+> manage quiesce with 192.168.173.203~~~~~~~~Quiesce Nodes~~~~~~~~ Node|Response192.168.173.203:3000|okNumber of rows: 1
Run "manage recluster" for your changes to take affect.quiesce undo with
Access control permissions: sys-admin
The manage quiesce undo with node1 [node2 [...]] command reverts the effect of a quiesce on the next recluster event.
For more information, see quiesce-undo.
Admin+> manage quiesce undo with 192.168.173.203~~~~Undo Quiesce for Nodes~~~ Node|Response192.168.173.203:3000|okNumber of rows: 1
Run "manage recluster" for your changes to take affect.recluster
Requires a sys-admin privilege privilege.
The manage recluster command forces the cluster to advance and rebalance.
For more information, see recluster.
Admin+> manage reclusterSuccessfully started reclusterrevive
Access control permissions: sys-admin
The manage revive command revives dead partitions in a namespace running in strong
consistency mode.
Admin+> manage revive ns test~Revive Namespace Partitions~ Node|Responselocalhost:3000|okNumber of rows: 1
Run "manage recluster" for your changes to take affect.roster
Requires a sys-admin privilege.
The manage roster commands are used to modify the pending roster. To commit the
pending roster to the current roster, a recluster event must occur. To manually
trigger a recluster event, use the manage recluster command. Commands that modify the
roster are only sent to the principal node. Use the show roster
command in conjunction with manage roster commands.
roster stage observed ns
Access control permissions: sys-admin
The manage roster stage observed ns NAMESPACE command assigns the observed nodes
and configured rack-ids to the pending roster. This helps you quickly initialize
a strong consistency cluster.
Admin+> manage roster stage observed ns testYou are about to set the pending-roster for namespace test to: BB9040016AE4202@1, BB9020016AE4202@2, BB9010016AE4202@3Confirm that you want to proceed by typing x5e360, or cancel by typing anything else.x5e360Pending roster now contains observed nodes.Run "manage recluster" for your changes to take affect.roster stage nodes
Access control permissions: sys-admin
The manage roster stage nodes NODE1[@RACK1] [NODE2[@RACK2] [...]] ns NAMESPACE command overwrites the pending roster with any list of nodes.
The --warn flag is on by default because of the importance of this command.
To disable the warning, use the --no-warn flag.
Admin+> manage roster stage nodes BB9040016AE4202@1, BB9020016AE4202@2, BB9010016AE4202@3 ns barWARNING: The following node(s) are not found in the observed list or have adifferent configured rack-You are about to set the pending-roster for namespace bar to: BB9040016AE4202@1, BB9020016AE4202@2, BB9010016AE4202@3Confirm that you want to proceed by typing 5de1f4, or cancel by typing anything else.5de1f4Pending roster successfully set.Run "manage recluster" for your changes to take affect.roster add nodes
Access control permissions: sys-admin
The manage roster add nodes NODE1[@RACK1] [NODE2[@RACK2] [...]] ns NAMESPACE command adds nodes to the pending roster.
The --warn flag is on by default because of the importance of this command.
To disable the warning, use the --no-warn flag.
Admin+> manage roster add nodes BB9040016AE4202@1, BB9020016AE4202@2, BB9010016AE4202@3 ns bar --no-warnNode(s) successfully added to pending-roster.Run "manage recluster" for your changes to take affect.roster remove nodes
Access control permissions: sys-admin
The manage roster remove nodes NODE1[@RACK1] [NODE2[@RACK2] [...]] ns NAMESPACE command removes nodes from the pending roster.
The --warn flag is on by default because of the importance of this command.
To disable the warning, use the --no-warn flag.
Admin+> manage roster remove nodes BB9040016AE4202@1, BB9020016AE4202@2, BB9010016AE4202@3 ns bar --no-warnNode(s) successfully removed from pending-roster.Run "manage recluster" for your changes to take affect.sindex
The manage sindex commands are used to create and delete secondary indexes and set indexes from
an Aerospike cluster. The show sindex command is used in conjunction with
manage sindex commands. Starting with Database 8.1.2, set indexes use the same sindex-admin privilege as secondary indexes and can be managed on Aerospike Cloud.
sindex create
Access control permissions: sindex-admin
The manage sindex create command is used for creating secondary indexes (sindex) and set indexes in Database 8.1.2 and later.
- For a set index, specify namespace, set, and index name; no bin or type is required.
- For a secondary index, specify
BIN-TYPE,INDEX-NAME, namespace, optional set, and bin (or expression) as described below.
The manage sindex create BIN-TYPE INDEX-NAME ns NAMESPACE [set SET] bin BIN-NAME [in INDEX-TYPE] [ctx CONTEXT]
command is used for creating secondary indexes (sindex). The BIN-TYPE is the bin type of
the provided BIN-NAME and is one of the following values:
numericstringgeo2dsphereblob
The NS argument defines the namespace to create the sindex on. Optionally, SET defines the set to create the secondary index on.
The BIN-NAME defines the bin to create the secondary index on.
The INDEX-TYPE defines how a bin’s value is used to create a secondary index. Possible values are:
listto use the elements of a list as keysmapkeysto use the keys of a map as keysmapvaluesto use the values of a map as keys.
The default specifies to use the contents of a bin as keys.
In Aerospike Database 6.1.0 and Tools 7.2.0 and later, you can create sindexes on CDTs.
CDTs are referenced using a context.
The CONTEXT is a space-separated list.
Possible elements of the list are as follows:
list_index(INDEX)list_rank(RANK)list_value(VALUE)map_index(INDEX)map_rank(RANK)map_key(KEY)map_value(VALUE)
Where INDEX and RANK are integers, KEY is an integer, string, or base64 encoded byte string, and VALUE includes the values of KEY with the addition of booleans and floats.
By default, if you provide a value for KEY or VALUE, they will be interpreted as a string unless the following specifiers are used: int(INT), bytes(BASE64), bool(TRUE|FALSE), or float(FLOAT).
For example: int(1), bytes(YWVyb3NwaWtlCg==), bool(true), or float(3.14159).
Create a secondary index
# To create a bin indexmanage sindex create BIN-TYPE INDEX-NAME ns NAMESPACE [set SET] bin BIN-NAME [in INDEX-TYPE] [ctx CONTEXT | ctx_base64 B64CTX]
# To create an expression indexmanage sindex create BIN-TYPE INDEX-NAME ns NAMESPACE [set SET] [in INDEX-TYPE] exp_base64 B64EXPParameters:
- (required)
BIN-TYPE(AKA ktype) is the expected data type of the data to be indexed. Records where the ktype is mismatched are ignored, such as an integer value when a string is expected. It can be one of the following:numericstringgeo2dsphereblob
- (required)
INDEX-NAME - (required)
NSspecifies the namespace to create the secondary index on. - (optional)
SETspecifies the set to create the secondary index on. - (conditional)
BIN-NAMEspecifies the bin to create the secondary index on. Required for bin indexes; avoid for expression indexes. - (optional)
INDEX-TYPE(AKA itype) specifies if the secondary index should expect a single ktype (BIN-TYPE) value, or instructs it to collect multiple values (matching the ktype) from a list or map collection data type (CDT). The record isn’t indexed if the itype is mismatched, such as a single value when a list of values is expected. It can be one of the following:listexpect a list and index its values matching the ktype.mapkeysexpect a map and index its keys matching the ktype.mapvaluesexpect a map and index its values matching the ktype.
- (conditional)
B64EXPa base64-encoded expression that is used to compute the value to be indexed. Required for expression indexes; avoid for bin indexes. The given itype and ktype are enforced on this expression-computed value. The given itype and ktype are enforced while indexing this element. - (optional)
B64CTXprovides a base64-encoded context, the path to an embedded element of a list or map CDT bin. Optional for bin indexes; avoid for expression indexes. Mutually exclusive withctx CONTEXT- one or the other is used. - (optional)
CONTEXTdescribes a human-readable path to an embedded element of a list or map CDT bin. The given itype and ktype are enforced while indexing this element. Optional for bin indexes; avoid for expression indexes.- Uses a space-separated list of the following contexts:
list_index(INDEX)list_rank(RANK)list_value(VALUE)map_index(INDEX)map_rank(RANK)map_key(KEY)map_value(VALUE)
- Where:
INDEXandRANKare integersKEYis an integer, string, or base64 encoded byte stringVALUEincludes the values ofKEYwith the addition of booleans and floats.- By default, if you provide a value for
KEYorVALUE, they will be interpreted as a string unless you use the following specifiers:int(INT),bytes(BASE64),bool(TRUE|FALSE), orfloat(FLOAT). For example:int(1),bytes(YWVyb3NwaWtlCg==),bool(true), orfloat(3.14159).
- Uses a space-separated list of the following contexts:
{ name: "Austin Albertson", age: 57, campaign1: 150, campaign2: 100, campaign3: 75, address: { state: "CA", city: "Los Altos", zip: 94023, }}Bin index on the age of a donor
Admin+> manage sindex create numeric dnr-age-idx ns test set donor bin ageUse 'show sindex' to confirm 'dnr-age-idx' was created successfully.Index the embedded zip code
The zip code is embedded inside the address map bin, and requires a context describing the path to this element.
Admin+> manage sindex create numeric dnr-zip-idx ns test set donor bin address ctx map_key(zip)Use 'show sindex' to confirm 'dnr-zip-idx' was created successfully.Alternatively, the equivalent base64-encoded context can be used to create this index.
Admin+> manage sindex create numeric dnr-zip-idx ns test set donor bin address ctx_base64 kiKkA3ppcA==Use 'show sindex' to confirm 'dnr-zip-idx' was created successfully.Add an expression index on the campaign bins
Expression campaignTotal = Exp.build( Exp.add(Exp.intBin("campaign1"), Exp.intBin("campaign2"), Exp.intBin("campaign3")););System.out.println(campaignTotal.getBase64());// lBSTUQKpY2FtcGFpZ24xk1ECqWNhbXBhaWduMpNRAqljYW1wYWlnbjM=The base64-encoded expression is used to create the expression index
Admin+> manage sindex create numeric dnr-sum-idx ns test set donor exp_base64 lBSTUQKpY2FtcGFpZ24xk1ECqWNhbXBhaWduMpNRAqljYW1wYWlnbjM=Use 'show sindex' to confirm 'dnr-sum-idx' was created successfully.Create a set index (Database 8.1.2+)
To create a set index, specify the index name, namespace, and set. No bin type or bin name is required. This requires the sindex-admin privilege and works on Aerospike Cloud.
# Set index (no BIN-TYPE or bin required)manage sindex create INDEX-NAME ns NAMESPACE set SETAdmin+> manage sindex create demo-setidx ns test set demoUse 'show sindex' to confirm 'demo-setidx' was created successfully.Drop a secondary index or set index
Requires the sindex-admin privilege (same for both secondary and set indexes).
The manage sindex delete INDEX-NAME ns NAMESPACE [set SET] command deletes secondary indexes and set indexes. The ns argument is the namespace the index was
created on. If the index was created on a set (including all set indexes), the set argument is
required.
Admin+> manage sindex delete dnr-age-idx ns test set donorSuccessfully deleted sindex dnr-age-idxAdmin+> manage sindex delete demo-setidx ns test set demoSuccessfully deleted sindex demo-setidxtruncate
Requires a data-admin privilege.
The manage truncate command truncates or reverses truncations for a namespace or namespace set in the Aerospike cluster.
The command only sends requests to the principal node.
truncate ns
Access control permissions: data-admin, write
The manage truncate ns NAMESPACE [set SET] [before <iso-8601-or-unix-epoch> iso-8601|unix-epoch] command deletes records in the given namespace or namespace set.
The deletes are durable and preserve record deletions in the Enterprise Edition only. For more information, see truncate-namespace and truncate.
If the before modifier is provided, the command deletes every record in the given namespace or namespace set where the last update time
(LUT) is older than the given time. If the before modifier is not provided, the current time is
used. The before modifier accepts iso-8601 formatted or unix-epoch datetime followed by the
literal iso-8601 or unix-epoch respectively. A unix-epoch can be in seconds (1622054620),
milliseconds (1622054620.mmm), microseconds (1622054620.mmmuuu), or nanoseconds
(1622054620.mmmuuunnn).
The --warn flag is on by default because of the importance of this command.
Use the --no-warn flag to disable the warning.
The following example truncates records in the set test.asadm_demo_truncate with LUT earlier than April 22nd 2026 at 18:57:40 UTC. Before the truncate, the namespace test holds 252,973 records; afterwards the 50,000 records in asadm_demo_truncate are gone and the namespace drops to 202,973 records.
Admin> info namespace object~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Object Information (2026-04-22 18:57:38 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace| Node|Rack| Repl|Expirations| Total|~~~~~~~~~~~Objects~~~~~~~~~~~|~~~~~~~~~Tombstones~~~~~~~~|~~~~Pending~~~~ | | ID|Factor| | Records| Master| Prole|Non-Replica| Master| Prole|Non-Replica|~~~~Migrates~~~ | | | | | | | | | | | | Tx| Rxtest |10.0.0.1:3000| 0| 1| 0.000 |252.973 K|252.973 K|0.000 | 0.000 |0.000 |0.000 | 0.000 |0.000 |0.000test | | | | 0.000 |252.973 K|252.973 K|0.000 | 0.000 |0.000 |0.000 | 0.000 |0.000 |0.000Number of rows: 1
Admin> enable --warnAdmin+> manage truncate ns test set asadm_demo_truncate before 2026-04-22T18:57:40Z iso-8601You are about to truncate up to 50000 records from set asadm_demo_truncate of namespace test with LUT before 18:57:40.000000 UTC on April 22, 2026Confirm that you want to proceed by typing xa1f3c, or cancel by typing anything else.xa1f3cSuccessfully started truncation for set asadm_demo_truncate of namespace testAdmin+> info namespace object~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Object Information (2026-04-22 18:57:42 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace| Node|Rack| Repl|Expirations| Total|~~~~~~~~~~~Objects~~~~~~~~~~~|~~~~~~~~~Tombstones~~~~~~~~|~~~~Pending~~~~ | | ID|Factor| | Records| Master| Prole|Non-Replica| Master| Prole|Non-Replica|~~~~Migrates~~~ | | | | | | | | | | | | Tx| Rxtest |10.0.0.1:3000| 0| 1| 0.000 |202.973 K|202.973 K|0.000 | 0.000 |0.000 |0.000 | 0.000 |0.000 |0.000test | | | | 0.000 |202.973 K|202.973 K|0.000 | 0.000 |0.000 |0.000 | 0.000 |0.000 |0.000Number of rows: 1truncate undo ns
Access control permissions: data-admin, write
The manage truncate undo ns NAMESPACE [set SET] command undoes a previous truncate event by
removing the associated System Meta Data (SMD) file entry and allowing some previously truncated records to be
resurrected on the next cold restart. This only works for records that have not had their persisted storage
block overwritten. For more information, see truncate-namespace-undo and
truncate-undo.
Admin+> manage truncate ns test undoSuccessfully triggered undoing truncation for namespace test on next cold restartudfs
Requires a udf-admin privilege privilege.
Use the manage udfs commands to add or remove UDF modules to or from an Aerospike cluster. Use show udfs to see registered modules or list a module’s contents.
udfs add
Access control permissions: data-admin or sys-admin
The manage udfs add MODULE-NAME path MODULE-PATH command allows a user to register
a UDF module. The MODULE-NAME must include a file extension. The path argument
can be a relative or absolute path and are checked in that order. This command
can also be used to update an existing module.
Admin+> manage udfs add test.lua path path/to/test.luaSuccessfully added UDF test.luaudfs remove
Access control permissions: data-admin or sys-admin
The manage udfs remove MODULE-NAME command allows a user
to un-register an existing UDF module.
Admin+> manage udfs remove test.luaSuccessfully removed UDF test.luapager
The pager command enables scrollable output tables. This command gives an option to scroll each output table vertically or horizontally.
Use the following subcommands with pager:
off: Disable paging and prints output normally.on: Enable output paging; similar to linux ‘less’.scroll: Display output in scrolling mode.
show
The show commands generally provide a very verbose output about the
requested component. Most commands support the likemodifier. All commands
support the withmodifier with the exceptions of show users, show roles,
show udfs, and show sindex which only make requests to the principal node.
best-practices
The show best-practices command displays violations of Aerospike’s Best Practices.
In the following example, the only node in the cluster is violating five best practices (min-free-kbytes, swappiness, rmem-max, wmem-max, and admin-port). When a node complies with all best practices, its Response cell reads ok.
Admin> show best-practices~~~~~~~~~~~~~~~~~~~~~~~Best Practices (2026-04-22 18:55:54 UTC)~~~~~~~~~~~~~~~~~~~~~~~~ Node| Response10.0.0.1:3000|min-free-kbytes, swappiness, rmem-max, wmem-max, admin-portNumber of rows: 1
Following Aerospike's best-practices are required for optimal stability and performance.Descriptions of each can be found @ [Best Practices for Aerospike](/database/learn/best-practices/)config
The show config command displays Aerospike configuration
settings. By default the command lists all server configuration parameters
for security (added in Aerospike Tools 7.0.0, otherwise joined with service), service,
network, namespace, and XDR. You can add one of the following sub-commands to limit the output to just those contexts:
namespacenetworksecurityservicexdr
To generate an aerospike.conf file from a running cluster, see the generate command for Aerospike Configuration (asconfig).
The following example requests all network configuration parameters containing the words heartbeat or mesh:
Admin> show config network like heartbeat mesh~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Network Configuration (2026-04-22 20:27:09 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Node |10.0.0.1:3000 |10.0.0.2:3000 |10.0.0.3:3000 |10.0.0.4:3000heartbeat.connect-timeout-ms |500 |500 |500 |500heartbeat.interval |150 |150 |150 |150heartbeat.mesh-seed-address-port|10.0.0.2:3002,10.0.0.3:3002,10.0.0.4:3002|10.0.0.1:3002,10.0.0.3:3002,10.0.0.4:3002|10.0.0.1:3002,10.0.0.2:3002,10.0.0.4:3002|10.0.0.1:3002,10.0.0.2:3002,10.0.0.3:3002heartbeat.mode |mesh |mesh |mesh |meshheartbeat.mtu |1500 |1500 |1500 |1500heartbeat.port |3002 |3002 |3002 |3002heartbeat.protocol |v3 |v3 |v3 |v3heartbeat.timeout |10 |10 |10 |10heartbeat.tls-name |null |null |null |nullheartbeat.tls-port |0 |0 |0 |0Number of rows: 11We can use the diff modifier with show config commands to show differences
between node configurations.
Admin> show config diff~~~~Service Configuration (2026-04-22 20:27:09 UTC)~~~~Node |10.0.0.1:3000 |10.0.0.2:3000 |10.0.0.3:3000 |10.0.0.4:3000node-id|BB98FDAA7D6B66E|BB96B7778129A2E|BB9B12EDA4F90DA|BB9B34F06AFFE56Number of rows: 2
~~~~~~~~~~~~~~~~~~~~Network Configuration (2026-04-22 20:27:09 UTC)~~~~~~~~~~~~~~~~~~~Node |10.0.0.1:3000 |10.0.0.2:3000 |10.0.0.3:3000 |10.0.0.4:3000heartbeat.mesh-seed-address-port|10.0.0.2:3002,10.0.0.3:3002,10.0.0.4:3002|10.0.0.1:3002,10.0.0.3:3002,10.0.0.4:3002|10.0.0.1:3002,10.0.0.2:3002,10.0.0.4:3002|10.0.0.1:3002,10.0.0.2:3002,10.0.0.3:3002service.access-address |10.0.0.1 |10.0.0.2 |10.0.0.3 |10.0.0.4service.port |3000 |3000 |3000 |3000Number of rows: 4
~~~~test Namespace Configuration (2026-04-22 20:27:09 UTC)~~Node |10.0.0.1:3000|10.0.0.2:3000|10.0.0.3:3000|10.0.0.4:3000rack-id|1 |1 |2 |2Number of rows: 2For large clusters, use the -flip option to flip output table for simplicity and ease of understanding.
Admin> show config namespace like partition -flip~test Namespace Configuration (2026-04-22 20:27:10 UTC)~ Node|partition-tree-sprigs10.0.0.1:3000| 25610.0.0.2:3000| 25610.0.0.3:3000| 25610.0.0.4:3000| 256Number of rows: 4config xdr
The show config xdr command displays all the available configuration information related to XDR. By default,
this command displays XDR configuration, XDR datacenter configuration, and XDR namespace configuration. You may also provide one of the sub-commands: dc, namespace, and filter, to limit the output to a specific context. For example, to see configuration parameters for only namespace, use show config xdr namespace. All of the commands support the use of the for, like, and diff modifier.
The show config xdr dc command displays a new table for each configured datacenter. The command also supports the for modifier to filter by datacenter.
Admin> show config xdr dc for dc2 like max~~~~~~~~~XDR dc2 DC Configuration (2023-02-16 22:37:00 UTC)~~~~~~~~~Node |10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000max-recoveries-interleaved|0 |0 |0max-used-service-threads |0 |0 |0Number of rows: 3The show config xdr namespace command displays a new table for each configured XDR namespace. The command also supports the for modifier to filter first by namespace and then by datacenter.
Admin> show config xdr namespace for test dc2 like sets~~~~XDR test Namespace Configuration (2023-02-16 22:41:12 UTC)~~~~Datacenter |dc2 |dc2 |dc2Node |10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000ignored-sets |testset |testset |testsetship-only-specified-sets|false |false |falseshipped-sets | | |Number of rows: 5The show config xdr filter command displays the XDR filters that are set for a given namespace and datacenter. The command also supports the for modifier to filter first by datacenter and then by namespace.
Admin> show config xdr filter~~~~~~~~~~~~~~~~~~~~~~~XDR Filters (2023-02-16 22:55:02 UTC)~~~~~~~~~~~~~~~~~~~~~~~Namespace|Datacenter| Base64 Expression| Expressionbar |dc2 |null |nulltest |dc2 |kxGRSJMEk1ECo2FnZRU|or(is_tombstone(), ge(bin_int("age"), 21))Number of rows: 2distribution
The show distribution command displays histograms.
It supports object_size and time_to_live histograms.
For object_size, use -b to get bytewise distribution.
For Aerospike Database 4.1.0.1 and earlier, the -k option helps to set the maximum number of buckets to show.
The histograms are driven by the namespace nsup thread: the object-size histogram is sampled once per nsup-hist-period, so the values appear as -- until nsup has finished at least one cycle. The following capture is from a four-node cluster filled with 40,000 fixed-size records written by asbench, so every percentile bucket shows the same 1023-byte value across all nodes.
Admin> show distribution object_size -b~test - Object Size Distribution in bytes (2026-04-22 20:32:32 UTC)~ Percentage of records having objsz less than or equal to value measured in bytes Node| 10%| 20%| 30%| 40%| 50%| 60%| 70%| 80%| 90%|100%10.0.0.1:3000|1023|1023|1023|1023|1023|1023|1023|1023|1023|102310.0.0.2:3000|1023|1023|1023|1023|1023|1023|1023|1023|1023|102310.0.0.3:3000|1023|1023|1023|1023|1023|1023|1023|1023|1023|102310.0.0.4:3000|1023|1023|1023|1023|1023|1023|1023|1023|1023|1023Number of rows: 4jobs
Access control permissions: data-admin
The show jobs queries command displays current and recently-completed query jobs running on the Aerospike cluster and is used in conjunction with the manage jobs controller. To make viewing easier, run the pager on command first.
Each table is grouped by Namespace and Type, with groups separated by horizontal dashes. Jobs are further ordered left to right by their Progress % and Time Since Done.
The Type value is the server’s query-show job-type field passed through verbatim. On Database 6.0 and later, Type is always one of the following four values:
Type | Meaning |
|---|---|
basic | Foreground query that returns records to the client. Covers both primary-index and secondary-index queries. Database 6.0 unified the former stand-alone “scan” workload into this query type. |
aggregation | Foreground query that runs a Stream UDF over the result set and returns aggregated values to the client. |
background-ops | Background operations query that applies native bin operations to each matched record without returning records to the client. |
background-udf | Background query that applies a Record UDF to each matched record. The job row adds udf-filename, udf-function, and udf-active fields. |
Query jobs remain visible after completion up to the per-node limit configured by query-max-done. Completed jobs past that limit are evicted as newer jobs complete.
Pass one or more transaction IDs (trid) to narrow the output to specific jobs, which is the recommended way to inspect an individual job without the full list:
Admin+> show jobs queries trid 16343191619686632220~~~~~~Query Jobs (2026-04-22 04:21:56 UTC)~~~~~~Node |127.0.0.1:3000Namespace |testType |background-opsProgress% |23.0 %Transaction ID |16343191619686632220Time Since Done |00:00:00active-threads |1from |192.168.127.1+58284net-io-bytes |30.000 Bops-active |4recs-failed |0.000recs-filtered-bins|0.000recs-filtered-meta|0.000recs-succeeded |23.069 Krecs-throttled |23.073 Krps |10.000 Krun-time |00:00:02set |asadm_jobs_demo_postssocket-timeout |00:00:10status |active(ok)Number of rows: 20Pass multiple trid values to compare jobs side by side. The following capture shows one active and one recently-completed background-ops query against the same set; the second job used a secondary index, so sindex-name is populated for it.
Admin+> show jobs queries trid 16343191619686632220 15914126939329829104~~~~~~~~~~~~~~~~~~~~Query Jobs (2026-04-22 04:21:59 UTC)~~~~~~~~~~~~~~~~~~~~Node |127.0.0.1:3000 |127.0.0.1:3000Namespace |test |testType |background-ops |background-opsProgress% |49.0 % |100.0 %Transaction ID |16343191619686632220 |15914126939329829104Time Since Done |00:00:00 |00:00:02active-threads |1 |0from |192.168.127.1+58284 |192.168.127.1+58284net-io-bytes |30.000 B |30.000 Bops-active |0 |0recs-failed |0.000 |0.000recs-filtered-bins|0.000 |0.000recs-filtered-meta|0.000 |0.000recs-succeeded |49.362 K |20.200 Krecs-throttled |49.363 K |20.200 Krps |10.000 K |10.000 Krun-time |00:00:04 |00:00:02set |asadm_jobs_demo_posts |asadm_jobs_demo_postssindex-name |-- |asadm_jobs_demo_author_idxsocket-timeout |00:00:10 |00:00:10status |active(ok) |done(ok)Number of rows: 21| Query shape | sindex-name in show jobs queries |
|---|---|
| Secondary-index query with an SI filter predicate | Name of the secondary index used, for example asadm_jobs_demo_author_idx. |
| Primary-index query that scans a namespace or a specific set with no SI filter | --, because the server does not emit the field. |
| Primary-index query against a set that has a set index on it | --. The set index accelerates the scan internally, but query-show does not report it on the job, and the Type remains basic / background-ops / background-udf the same as any other PI query. |
- To confirm that a given set is indexed at the set level, use
show sindexand look for rows withIndex Typeofset, rather than inferring fromshow jobs queries. - Omit
tridto list all tracked jobs. The unfilteredshow jobs queriesview produces one column per job per node and can become very wide on a busy cluster; combine it withpager onor withliketo narrow the output. - The legacy
show jobs scansandshow jobs sindex-buildersubcommands are still accepted byasadmfor compatibility with older clusters but are rejected against Database 6.0 and later, where scans are part of the unified query subsystem andsindex-builderjobs no longer exist.
latencies
The show latencies command displays latency characteristics of reads, writes, queries, replication, and UDFs.
Change the number of latency buckets shown using the -b flag. Use the -e flag to set the exponential increment used to calculate the value assigned to each latency bucket. If configuration-enabled-benchmarks are enabled, you can view them with the -v flag.
Admin> show latencies -v -b 8 -e 2 like read~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Latency (2026-04-22 20:27:07 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace|Histogram| Node|ops/sec|>1ms|>4ms|>16ms|>64ms|>256ms|>1024ms|>4096ms|>16384mstest |read |10.0.0.1:3000| 4717.7|0.02|0.01| 0.0| 0.0| 0.0| 0.0| 0.0| 0.0test |read |10.0.0.2:3000| 4763.9| 0.0| 0.0| 0.0| 0.0| 0.0| 0.0| 0.0| 0.0test |read |10.0.0.3:3000| 4732.8|0.03|0.02| 0.01| 0.0| 0.0| 0.0| 0.0| 0.0test |read |10.0.0.4:3000| 4707.1|0.01| 0.0| 0.0| 0.0| 0.0| 0.0| 0.0| 0.0 | | |18921.5|0.01|0.01| 0.0| 0.0| 0.0| 0.0| 0.0| 0.0Number of rows: 4The following example looks at the latency of writes-master with the -v option if they have been enabled. For more information, see Write transaction analysis:
Admin> show latencies -v like write-master~~~~~~~~~~~Latency (2026-04-22 20:27:07 UTC)~~~~~~~~~~~Namespace| Histogram| Node|ops/sec|>1ms|>8ms|>64mstest |write-master|10.0.0.1:3000| 0.0| 0.0| 0.0| 0.0test |write-master|10.0.0.2:3000| 0.0| 0.0| 0.0| 0.0test |write-master|10.0.0.3:3000| 0.0| 0.0| 0.0| 0.0test |write-master|10.0.0.4:3000| 0.0| 0.0| 0.0| 0.0 | | | 0.0| 0.0| 0.0| 0.0Number of rows: 4The show latencies command supports for modifier to display namespace wise latency. It also shows aggregate latency for input namespaces filtered by for.
Admin> show latencies for test like write~~~~~~~~~~~Latency (2026-04-22 20:35:07 UTC)~~~~~~~~~~~Namespace|Histogram| Node|ops/sec|>1ms|>8ms|>64mstest |write |10.0.0.1:3000| 2059.7| 0.5|0.02| 0.0test |write |10.0.0.2:3000| 2088.2| 0.5| 0.0| 0.0test |write |10.0.0.3:3000| 2075.2|0.53|0.01| 0.0test |write |10.0.0.4:3000| 2027.9|0.45| 0.0| 0.0 | | | 8251.0| 0.5|0.01| 0.0Number of rows: 4The rows without namespace name or histogram show aggregate latency. Though not visible here, these rows are displayed with blue font.
mapping
The show mapping command displays mapping from IP to Node-ID and Node-ID to IPs.
By default it displays both maps, but
sub-commands ip, and node will confine the output to
a single map. You can also use like modifier to input substring of expected IP or Node-ID.
Admin> show mapping ip like 231 233~IP to NODE-ID Mappings (2020-12-18 00:49:14 UTC)~ IP| Node ID172.16.245.231:3000|BB9010016AE4202172.16.245.233:3000|BB9020016AE4202Number of rows: 2Admin> show mapping node like BB~NODE-ID to IPs Mappings (2020-12-18 00:50:43 UTC)~ Node ID| IPBB9010016AE4202| 10.0.0.1:3000Number of rows: 1The output displays all available endpoints for Node.
pmap
The show pmap command displays partition map analysis of the Aerospike cluster.
With the test namespace configured at replication-factor 2 on a balanced four-node cluster, each node owns 1024 primary partitions and 1024 secondary (replica) partitions. The total row at the bottom confirms the full 4096 partitions are covered with no unavailable or dead partitions.
Admin> show pmap~~~~~~~~~~~Partition Map Analysis (2026-04-22 20:27:06 UTC)~~~~~~~~~~~Namespace| Node| Cluster Key|~~~~~~~~~~~~Partitions~~~~~~~~~~~~ | | |Primary|Secondary|Unavailable|Deadtest |10.0.0.1:3000|749E1E79EBBE| 1024| 1024| 0| 0test |10.0.0.2:3000|749E1E79EBBE| 1024| 1024| 0| 0test |10.0.0.3:3000|749E1E79EBBE| 1024| 1024| 0| 0test |10.0.0.4:3000|749E1E79EBBE| 1024| 1024| 0| 0test | | | 4096| 4096| 0| 0Number of rows: 4- Primary Partitions: Total number of primary partitions for a specific namespace on that node.
- Secondary Partitions: Total number of secondary partitions for a specific namespace on that node.
- Unavailable Partitions: The number of partitions that are unavailable when roster nodes are missing.
- Dead Partitions: The number of partitions that are unavailable when all roster nodes are present.
racks
The show racks command displays a namespaces’ rack-ids and the nodes assigned to each.
This is particularly useful in rack-aware configurations.
The following output is captured on a four-node cluster where the test namespace is split across two racks: nodes 1 and 2 are assigned to rack 1 and nodes 3 and 4 are assigned to rack 2.
Admin> show racks~~~~~~~Racks (2026-04-22 20:27:05 UTC)~~~~~~~~Namespace|Rack| Nodes | ID|test | 1|BB98FDAA7D6B66E,BB96B7778129A2Etest | 2|BB9B34F06AFFE56,BB9B12EDA4F90DANumber of rows: 2roles
Access control permissions: user-admin
The show roles command displays roles along with associated privileges, allowlists, and quotas as
returned by the principal node. show roles can be used in conjunction with manage acl roles
to perform role administration.
Admin+> show roles~~~~~~~~~~~~~~~~~~~~~~~~~~~Roles (2021-04-21 22:28:01 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Role| Privileges|Allowlist|~~~Quotas~~ | | | Read|Writeread | read| --|-- |--read-write | read-write| --|-- |--read-write-udf| read-write-udf| --|-- |--reader | read| 1.1.1.1|10000|1root | user-admin, sys-admin, data-admin, read-write| --|-- |--superuser |user-admin, sys-admin, data-admin, read-write-udf| --|-- |--sys-admin | sys-admin| --|-- |--user-admin | user-admin| --|-- |--write | write| --|-- |--writer | read-write| 2.2.2.2|1 |10000Number of rows: 10roster
The show roster command displays the current and pending roster as well as the observed nodes.
To make viewing easier, run the pager on command first. show roster can be used in conjunction with manage roster
to modify the pending roster. To filter output based on namespace use the for modifier. To filter output based on
node use the with modifier. To display any differences between values in any given column use the diff modifier.
Admin> show roster~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Roster (2021-10-21 20:12:29 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node| Node ID|Namespace| Current Roster| Pending Roster| Observed Nodes10.0.0.1:3000|BB9010016AE4202 |bar |BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@4|BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@4|BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@410.0.0.2:3000|BB9020016AE4202 |bar |BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@4|BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@4|BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@410.0.0.4:3000|*BB9040016AE4202|bar |BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@4|BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@4|BB9040016AE4202@4, BB9020016AE4202@4, BB9010016AE4202@410.0.0.1:3000|BB9010016AE4202 |test |BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@2|BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@2|BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@210.0.0.2:3000|BB9020016AE4202 |test |BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@2|BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@2|BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@210.0.0.4:3000|*BB9040016AE4202|test |BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@2|BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@2|BB9040016AE4202@2, BB9020016AE4202@2, BB9010016AE4202@2Number of rows: 6show sindex
The show sindex command displays secondary indexes and set indexes along with their static metadata, as reported by the principal node’s sindex-list: info call. It is typically used together with manage sindex when creating or removing indexes.
The Index Type column reflects how the index was created and takes one of the following values:
Index Type | Created by / applies to |
|---|---|
default | Secondary index on a scalar bin value. |
list | Secondary index that indexes list elements of a bin. |
map_keys | Secondary index that indexes map keys of a bin. |
map_values | Secondary index that indexes map values of a bin. |
set | Set index (Database 8.1.2+). |
Fields that do not apply to a given index render as --. For a set index, Bin, Bin Type, and State all render as -- because the server omits those keys from the sindex-list: entry. The Context and Expression columns only appear when at least one index in the cluster uses a CDT context or an expression; otherwise they are omitted entirely. Set indexes and secondary indexes share the sindex-admin privilege (Database 8.1.2+) and both appear in this output.
The following capture shows a cluster that has a plain numeric bin index, a CDT list index, an expression index, and a set index coexisting in the same namespace:
Admin+> show sindex~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Secondary Indexes (2026-04-22 18:33:10 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Index Name|Namespace| Set| Bin| Bin| Index|State| Expression | | | | Type| Type| |demo_comments_set_idx |test |asadm_jobs_demo_comments| --|-- |set |-- |--asadm_jobs_demo_author_idx |test |asadm_jobs_demo_posts | author_id|numeric|default|RW |--demo_author_mod100_idx |test |asadm_jobs_demo_posts | null|numeric|default|RW |mod(bin_int("author_id"), 100)content_comments_by_commenter|test |content_comments |commenters|string |list |RW |--Number of rows: 4In the row for demo_author_mod100_idx the Bin column is null: expression indexes are not tied to a single bin, so the server reports bin=null in sindex-list: and asadm renders that verbatim. The Expression column is always present once at least one expression index exists and shows the expression in readable form.
statistics
The show statistics command displays all server statistics from several
server components. By default it returns statistics for the following:
- bins
- namespace
- service
- sets
- sindex
- xdr
Use the bins, namespace, service, sets, sindex, and xdr sub-commands to limit the output to
a single context.
See details and additional subcommands for show statistics xdr.
You can also set -t parameter to get an extra aggregate column for total across columns. Total column displays
sum of statistics with numeric values.
Admin> show statistics service like batch_index_initiate batch_index_complete batch_index_error batch_index_timeout batch_index_delay -t~~~~~~~~~~~~~~~~~Service Statistics (2026-04-22 20:36:02 UTC)~~~~~~~~~~~~~~~~~Node |10.0.0.1:3000|10.0.0.2:3000|10.0.0.3:3000|10.0.0.4:3000|batch_index_complete|0 |0 |0 |0 |0batch_index_delay |0 |0 |0 |0 |0batch_index_error |0 |0 |0 |0 |0batch_index_initiate|0 |0 |0 |0 |0batch_index_timeout |0 |0 |0 |0 |0Number of rows: 6For large clusters, use the -flip option to flip the output for readability.
Admin> show statistics namespace for test like partition-tree -flip~test Namespace Statistics (2026-04-22 20:27:11 UTC)~ Node|partition-tree-sprigs10.0.0.1:3000| 25610.0.0.2:3000| 25610.0.0.3:3000| 25610.0.0.4:3000| 256Number of rows: 4statistics xdr
The show statistics xdr command displays all the available statistics information related to XDR. By default,
this command displays XDR datacenter statistics and XDR namespace statistics. You may also provide one of the sub-commands: dc and namespace to limit the output to a specific context.
The show statistics xdr dc command displays a new table for each configured datacenter.
The command also supports the for modifier to filter by datacenter.
Admin> show statistics xdr dc for dc2 like retry~~~~~~~~~XDR dc2 DC Statistics (2023-02-16 23:56:28 UTC)~~~~~~~~~~Node |172.17.0.4:3000|172.17.0.5:3000|172.17.0.6:3000retry_conn_reset|0 |0 |0retry_dest |0 |0 |0retry_no_node |0 |0 |0Number of rows: 4The show statistics xdr namespace command displays a new table for each configured xdr namespace. The command also supports the for modifier to filter first by namespace and then by datacenter.
Admin> show statistics xdr namespace like retry~~~~~~~~~~~~~~~~~~~~~~XDR test Namespace Statistics (2023-02-16 23:57:32 UTC)~~~~~~~~~~~~~~~~~~~~~~~Datacenter |dc1 |dc1 |dc1 |dc2 |dc2 |dc2Node |10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000|10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000retry_conn_reset|0 |0 |0 |0 |0 |0retry_dest |0 |0 |0 |0 |0 |0retry_no_node |0 |0 |0 |0 |0 |0Number of rows: 5
~~~~~~~~~~~~~~~~~~~~~~XDR bar Namespace Statistics (2023-02-16 23:57:32 UTC)~~~~~~~~~~~~~~~~~~~~~~~Datacenter |dc1 |dc1 |dc1 |dc2 |dc2 |dc2Node |10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000|10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000retry_conn_reset|0 |0 |0 |0 |0 |0retry_dest |0 |0 |0 |0 |0 |0retry_no_node |0 |0 |0 |0 |0 |0Number of rows: 5To instead display a new table for each configured datacenter use the --by-dc flag.
Admin> show statistics xdr namespace like retry --by-dc~~~~~~~~~~~~~~~~~~~~~~XDR dc1 Namespace Statistics (2023-02-16 23:57:32 UTC)~~~~~~~~~~~~~~~~~~~~~~~Namespace |test |test |test |bar |bar |barNode |10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000|10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000retry_conn_reset|0 |0 |0 |0 |0 |0retry_dest |0 |0 |0 |0 |0 |0retry_no_node |0 |0 |0 |0 |0 |0Number of rows: 5
~~~~~~~~~~~~~~~~~~~~~~XDR dc2 Namespace Statistics (2023-02-16 23:57:32 UTC)~~~~~~~~~~~~~~~~~~~~~~~Namespace |test |test |test |bar |bar |barNode |10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000|10.0.0.4:3000|10.0.0.5:3000|10.0.0.6:3000retry_conn_reset|0 |0 |0 |0 |0 |0retry_dest |0 |0 |0 |0 |0 |0retry_no_node |0 |0 |0 |0 |0 |0Number of rows: 5stop-writes
The show stop-writes command in the asadm tool returns comprehensive information about stop-writes configuration parameters, metrics, and their associated namespace and test contexts. This command helps determine the proximity to reaching the stop-writes threshold at different levels: service context (global), namespace context, or set context. It also helps identify the reasons for being in the stop-writes state.
show stop-writes displays the following table which is ordered based on the proximity to breaching the configured stop-writes threshold. For instance, the stop-writes-count configuration for the namespace test and set testset is closest to reaching the limit of 10,000 records and is positioned at the bottom of the table. This arrangement helps in effectively addressing the issue by providing the relevant configuration details and the metric that might potentially exceed the threshold. Additionally, the table presents the current proximity to the configured threshold, actual usage, and the threshold itself, offering a clear understanding of the current status. A -- threshold means none is configured.
Admin> show stop-writes~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Stop Writes (2023-05-23 23:01:01 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Show all stop writes - add 'for NAMESPACE [SET]' for a shorter list. Config|Namespace| Set| Node|Stop-Writes| Metric| Usage%| Usage|Thresholdstop-writes-size |test |testset|172.17.0.5:3000|False |memory_data_bytes | --|123.005 KB| --stop-writes-size |test |testset|172.17.0.4:3000|False |memory_data_bytes | --|123.373 KB| --stop-writes-size |test |testset|172.17.0.3:3000|False |memory_data_bytes | --|123.246 KB| ---- |test |-- |172.17.0.5:3000|False |cluster_clock_skew_ms| --| 00:00:00| ---- |bar |-- |172.17.0.5:3000|False |cluster_clock_skew_ms| --| 00:00:00| ---- |test |-- |172.17.0.4:3000|False |cluster_clock_skew_ms| --| 00:00:00| ---- |bar |-- |172.17.0.4:3000|False |cluster_clock_skew_ms| --| 00:00:00| ---- |test |-- |172.17.0.3:3000|False |cluster_clock_skew_ms| --| 00:00:00| ---- |bar |-- |172.17.0.3:3000|False |cluster_clock_skew_ms| --| 00:00:00| --stop-writes-pct |bar |-- |172.17.0.3:3000|False |memory_used_bytes | 0.0 %| 0.000 B | 3.600 GBstop-writes-pct |bar |-- |172.17.0.4:3000|False |memory_used_bytes | 0.0 %| 0.000 B | 3.600 GBstop-writes-pct |bar |-- |172.17.0.5:3000|False |memory_used_bytes | 0.0 %| 0.000 B | 3.600 GBstop-writes-pct |test |-- |172.17.0.5:3000|False |memory_used_bytes | 1.74 %|728.567 KB|40.960 MBstop-writes-pct |test |-- |172.17.0.3:3000|False |memory_used_bytes | 1.74 %|729.996 KB|40.960 MBstop-writes-pct |test |-- |172.17.0.4:3000|False |memory_used_bytes | 1.74 %|730.748 KB|40.960 MBstop-writes-sys-memory-pct|bar |-- |172.17.0.3:3000|False |system_free_mem_pct |28.89 %| 26.0 %| 90.0 %stop-writes-sys-memory-pct|test |-- |172.17.0.3:3000|False |system_free_mem_pct |28.89 %| 26.0 %| 90.0 %stop-writes-sys-memory-pct|bar |-- |172.17.0.4:3000|False |system_free_mem_pct |28.89 %| 26.0 %| 90.0 %stop-writes-sys-memory-pct|test |-- |172.17.0.4:3000|False |system_free_mem_pct |28.89 %| 26.0 %| 90.0 %stop-writes-sys-memory-pct|bar |-- |172.17.0.5:3000|False |system_free_mem_pct |28.89 %| 26.0 %| 90.0 %stop-writes-sys-memory-pct|test |-- |172.17.0.5:3000|False |system_free_mem_pct |28.89 %| 26.0 %| 90.0 %stop-writes-count |test |testset|172.17.0.5:3000|False |objects |96.89 %| 9.689 K| 10.000 Kstop-writes-count |test |testset|172.17.0.3:3000|False |objects |97.08 %| 9.708 K| 10.000 Kstop-writes-count |test |testset|172.17.0.4:3000|False |objects |97.18 %| 9.718 K| 10.000 KNumber of rows: 24udfs
The show udfs command displays user-defined function (UDF) modules as returned by the principal node. To learn about adding or removing UDF modules, see manage udfs.
Admin> show udfs~~~~~~~~UDF Modules (2026-04-22 18:55:55 UTC)~~~~~~~~~Filename| Hash|Typedemo.lua|f74b1e9d8c7bddf3bb0f8d0b5265fe772507f4df|LUANumber of rows: 1To view the contents of a UDF module, use the show udfs FILENAME command.
Admin> show udfs demo.luaUDF Content: demo.lua (2026-04-22 18:56:24 UTC)
Filename: demo.lua
Type: LUA
Content:-- Lightweight UDF used by the load harness to exercise background-udf query jobs.-- Registered as module "asadm_jobs_demo".function touch_score(rec, bump) local v = rec['score'] if v == nil then v = 0 end rec['score'] = v + bump aerospike:update(rec)enduser-agents
The show user-agents command returns a list of all user agents currently connected, as well as an entry for “unknown” connections. In that list, each entry has an associated count. Supports the with modifier to limit information to a subset of nodes.
Admin> show user-agents~User Agent Information (2025-08-01 22:40:26 UTC)~ Node| Client Version| App ID|Count10.1.1.1:3000 | java-8.1.1 | not-set | 10310.1.1.1:3000 | python-16.0.1-alpha1 | analytics-engine | 110.1.1.1:3000 | unknown | unknown | 123410.1.1.2:3000 | java-8.1.1 | payment-service | 2010.1.1.2:3000 | python-16.0.1-alpha1 | analytics-engine | 310.1.1.2:3000 | unknown | unknown | 4321Number of rows: 6Admin> show user-agents with 10.1.1.1~User Agent Information (2025-08-01 22:40:26 UTC)~ Node| Client Version| App ID|Count10.1.1.1:3000 | java-8.1.1 | not-set | 10310.1.1.1:3000 | python-16.0.1-alpha1 | analytics-engine | 110.1.1.1:3000 | unknown | unknown | 1234Number of rows: 3users
Access control permissions: user-admin
The show users [user] command displays users along with their associated roles as
returned by the principal node. Optionally, you can display a single user by providing a username as the first argument.
show users can be used in conjunction with manage acl users to perform user administration.
Admin+> show users~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Users (2025-08-19 17:26:09 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To see individual users metrics run 'show users statistics USERNAME' User| Roles|~Read~|~Write~| Auth Mode | | Quota| Quota|admin |data-admin,read-write,read-write-udf,sindex-admin,sys-admin,user-admin|0 |0 |password,PKIauditor_01 | readonly_auditor|100 |1 |password,PKIbackup_svc | backup_operator|500 |500 |password,PKIdata_scientist| analytics_user,readonly_auditor|0 |0 |password,PKIdevops_lead | app_developer,monitoring_agent|0 |0 |password,PKIhft_bot | high_frequency_trader|50000 |25000 |password,PKIjohn_dev | app_developer|5000 |2000 |password,PKIprometheus | monitoring_agent|1000 |1 |password,PKIsarah_analyst | analytics_user|10000 |1 |password,PKINumber of rows: 9users statistics
Access control permissions: user-admin
The show users statistics [user] command displays users, number of user connections, and quota related metrics across all nodes in the cluster.
You can use this to see the live activity of your users and find out which users might be close to or exceeding their assigned quotas. In addition
to viewing users per node, there is also an additional aggregate line to display usage for the entire cluster. Optionally, you can retrieve a single user
by providing a username as the first argument. show users statistics can be used in conjunction with show users and manage acl users
to perform user administration.
Admin+> show users stat~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Users Statistics (2025-08-19 21:49:04 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ User| Node|Connections|~~~~~~~~~~~~~~~~~~~~Read~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~Write~~~~~~~~~~~~~~~~~~~ | | | Quota|Usage%| Single| PI/SI| PI/SI| Quota|Usage%| Single| PI/SI| PI/SI | | | | | Record| Query| Query| | | Record| Query| Query | | | | | TPS|Limited|Limitless| | | TPS|Limited|Limitless | | | | | | RPS| | | | | RPS|admin |172.17.0.3:3000| 2.000 | 0.000 | --| 0.000 |0.000 | 0.000 | 0.000 | --| 0.000 |0.000 | 0.000admin |172.17.0.4:3000| 2.000 | 0.000 | --| 0.000 |0.000 | 0.000 | 0.000 | --| 0.000 |0.000 | 0.000admin |172.17.0.5:3000| 2.000 | 0.000 | --| 0.000 |0.000 | 0.000 | 0.000 | --| 0.000 |0.000 | 0.000admin | | 6.000 | 0.000 | 0.0 %| 0.000 |0.000 | 0.000 | 0.000 | 0.0 %| 0.000 |0.000 | 0.000reader |172.17.0.3:3000| 13.000 |10.000 K|5.93 %|593.000 |0.000 | 0.000 | 1.000 | 0.0 %| 0.000 |0.000 | 0.000reader |172.17.0.4:3000| 13.000 |10.000 K|5.15 %|515.000 |0.000 | 0.000 | 1.000 | 0.0 %| 0.000 |0.000 | 0.000reader |172.17.0.5:3000| 13.000 |10.000 K| 4.7.0 %|470.000 |0.000 | 0.000 | 1.000 | 0.0 %| 0.000 |0.000 | 0.000reader | | 39.000 |30.000 K|5.26 %| 1.578 K|0.000 | 0.000 | 3.000 | 0.0 %| 0.000 |0.000 | 0.000root |172.17.0.3:3000| --| 0.000 | --| 0.000 |0.000 | 0.000 | 0.000 | --| 0.000 |0.000 | 0.000root |172.17.0.4:3000| --| 0.000 | --| 0.000 |0.000 | 0.000 | 0.000 | --| 0.000 |0.000 | 0.000root |172.17.0.5:3000| --| 0.000 | --| 0.000 |0.000 | 0.000 | 0.000 | --| 0.000 |0.000 | 0.000root | | --| 0.000 | 0.0 %| 0.000 |0.000 | 0.000 | 0.000 | 0.0 %| 0.000 |0.000 | 0.000superuser|172.17.0.3:3000| 14.000 | 0.000 | --|263.000 |0.000 | 0.000 | 0.000 | --|271.000 |0.000 | 0.000superuser|172.17.0.4:3000| 12.000 | 0.000 | --|225.000 |0.000 | 0.000 | 0.000 | --|257.000 |0.000 | 0.000superuser|172.17.0.5:3000| 14.000 | 0.000 | --|227.000 |0.000 | 0.000 | 0.000 | --|226.000 |0.000 | 0.000superuser| | 40.000 | 0.000 | 0.0 %|715.000 |0.000 | 0.000 | 0.000 | 0.0 %|754.000 |0.000 | 0.000writer |172.17.0.3:3000| 14.000 | 1.000 | 0.0 %| 0.000 |0.000 | 0.000 |10.000 K|5.29 %|529.000 |0.000 | 0.000writer |172.17.0.4:3000| 12.000 | 1.000 | 0.0 %| 0.000 |0.000 | 0.000 |10.000 K|4.56 %|456.000 |0.000 | 0.000writer |172.17.0.5:3000| 14.000 | 1.000 | 0.0 %| 0.000 |0.000 | 0.000 |10.000 K|4.45 %|445.000 |0.000 | 0.000writer | | 40.000 | 3.000 | 0.0 %| 0.000 |0.000 | 0.000 |30.000 K|4.77 %| 1.430 K|0.000 | 0.000Number of rows: 15summary
The summary command displays a summary of the cluster.
This command accepts remote server credentials to collect and summarize system statistics.
By default, it collects Aerospike data from all nodes, but collects system statistics only from the localhost, assuming the localhost is a node of a connected cluster.
To enable remote system statistics collection, use the --enable-ssh option.
This command accepts more SSH credentials through the following options: --ssh-user, --ssh-pwd, --ssh-port, and --ssh-key.
You can also provide all credentials through a file by using the option --ssh-cf.
For more information, see help summary.
Admin> summary~~~~~~~~~~~~~~~~~~~~~~Cluster Summary~~~~~~~~~~~~~~~~~~~~~~~Migrations |FalseCluster Name |mydcServer Version |E-8.1.0.1OS Version |--Cluster Size |3Devices Total |3Devices Per-Node |1Devices Equal Across Nodes|TrueShmem Index Used |122.119 MBDevice Total |12.000 GBDevice Used |122.123 MBDevice Used% |0.99 %Device Avail |11.760 GBDevice Avail% |98.0 %License Usage Latest |(61.062 MB) ?Namespaces Active |1Namespaces Total |1Active Features |KVS,PIndex Query,Index-on-shmemNumber of rows: 18
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Summary~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace|~~~~Drives~~~~|~~~~~~~~~Device~~~~~~~~|Replication|Cache| Master|Compression|~License~ |Total|Per-Node| Total| Used%|Avail%| Factors|Read%|Objects| Ratio|~~Usage~~ | | | | | | | | | | Latesttest | 3| 1|12.000 GB|0.99 %|98.0 %| 2|0.0 %|1.000 M| 1.0|(61.062 MB) ?Number of rows: 1
The license usage calculation is inaccurate due to compression.watch
Place the watch command before another asadm command, and you can add two
optional fixed-position arguments. The first position is the number of seconds
to wait between iterations and the second position is the number of iterations
to execute.
The following example runs info network three times with a five-second sleep between iterations.
Admin> watch 5 3 info network[ 2026-04-22 20:27:11 'info network' sleep: 5.0s iteration: 1 ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Network Information (2026-04-22 20:27:11 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node| Node ID| IP| Build|Migrations|~~~~~~~~~~~~~~~~~~Cluster~~~~~~~~~~~~~~~~~~|Client| Uptime | | | | |Size| Key|Integrity| Principal| Conns|10.0.0.1:3000| BB98FDAA7D6B66E|10.0.0.1:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 19|00:04:3910.0.0.2:3000| BB96B7778129A2E|10.0.0.2:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:3910.0.0.3:3000| BB9B12EDA4F90DA|10.0.0.3:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:3910.0.0.4:3000|*BB9B34F06AFFE56|10.0.0.4:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 19|00:04:39Number of rows: 4
[ 2026-04-22 20:27:16 'info network' sleep: 5.0s iteration: 2 ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Network Information (2026-04-22 20:27:16 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node| Node ID| IP| Build|Migrations|~~~~~~~~~~~~~~~~~~Cluster~~~~~~~~~~~~~~~~~~|Client| Uptime | | | | |Size| Key|Integrity| Principal| Conns|10.0.0.1:3000| BB98FDAA7D6B66E|10.0.0.1:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:4410.0.0.2:3000| BB96B7778129A2E|10.0.0.2:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 17|00:04:4410.0.0.3:3000| BB9B12EDA4F90DA|10.0.0.3:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 17|00:04:4410.0.0.4:3000|*BB9B34F06AFFE56|10.0.0.4:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:44Number of rows: 4
[ 2026-04-22 20:27:21 'info network' sleep: 5.0s iteration: 3 ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Network Information (2026-04-22 20:27:21 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node| Node ID| IP| Build|Migrations|~~~~~~~~~~~~~~~~~~Cluster~~~~~~~~~~~~~~~~~~|Client| Uptime | | | | |Size| Key|Integrity| Principal| Conns|10.0.0.1:3000| BB98FDAA7D6B66E|10.0.0.1:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:4910.0.0.2:3000| BB96B7778129A2E|10.0.0.2:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 17|00:04:4910.0.0.3:3000| BB9B12EDA4F90DA|10.0.0.3:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 17|00:04:4910.0.0.4:3000|*BB9B34F06AFFE56|10.0.0.4:3000|E-8.1.2.0| 0.000 | 4|749E1E79EBBE|True |BB9B34F06AFFE56| 18|00:04:49Number of rows: 4Configure SSH
The asadm collect* commands use SSH and SFTP protocols to run commands and download files from remote Aerospike hosts.
These commands produce vital information for Aerospike support to troubleshoot problems.
Requirements:
- SSH and SFTP installed and configured on the remote host.
- SSH between the host and remote is configured using user/password or public/private key authentication.
- If using user/password authentication all remote hosts must use the same credentials.
You can configure asadm to use SSH in a few ways:
Use common SSH configuration files
Using pre-existing SSH configuration files is the easiest way to configure asadm
because most likely you configured your SSH configuration file when setting
up SSH between the local and remote hosts. By using the
configuration files, you can access many additional features supported by the
SSH protocol, and avoid typing in flags every time you run an asadm command.
To automatically connect to your remote hosts using SSH, add one or more sections to your ~/.ssh/config or
/etc/ssh/ssh_config files to tell asadm and SSH how to connect to the remote.
Following is a basic example of a section that you can add to your SSH configuration file:
Host AEROSPIKE-HOST0 AEROSPIKE-HOST1 User REMOTE-USER0 IdentityFile PATH-TO-PRIVATE-KEY0Host AEROSPIKE-HOST2 User REMOTE-USER1 IdentityFile PATH-TO-PRIVATE-KEY1If you need to use different username, keys, or other information, add another host section for each.
An easy way to confirm if your SSH is properly
configured is to run ssh REMOTE-DESTINATION and check for successful
authentication.
After adding the correct options to your SSH configuration file, you can configure the
command by enabling SSH with --enable-ssh.
Admin> collectlogs --enable-sshFull list of supported OpenSSH client options
- AddressFamily:- BindAddress- CASignatureAlgorithms- CertificateFile- ChallengeResponseAuthentication- Ciphers- Compression- ConnectTimeout- EnableSSHKeySign- ForwardAgent- ForwardX11Trusted- GlobalKnownHostsFile- GSSAPIAuthentication- GSSAPIDelegateCredentials- GSSAPIKeyExchange- HostbasedAuthentication- HostKeyAlgorithms- HostKeyAlias- Hostname- IdentityAgent- IdentityFile- KbdInteractiveAuthentication- KexAlgorithms- MACs- Match- PasswordAuthentication- PreferredAuthentications- Port- ProxyCommand- ProxyJump- PubkeyAuthentication- RekeyLimit- RemoteCommand- RequestTTY- SendEnv- ServerAliveCountMax- ServerAliveInterval- SetEnv- TCPKeepAlive- User- UserKnownHostsFileFor more information on the configuration file format, run man ssh_config.
Use command line flags
This requires all remote hosts to use the same user/password or user/key pair to log in. If remote hosts use different user/key credentials for authentication, you can use SSH configuration files.
To log in to a remote host using a username and password, use --enable-ssh, --ssh-user, and
--ssh-pwd.
Admin> collectinfo --enable-ssh --ssh-user root --ssh-pwd rootTo log in to a remote host using your ssh key, use --enable-ssh,
--ssh-user, and --ssh-key.
Admin> collectinfo --enable-ssh --ssh-user root --ssh-key