# How to run "summary" command outside of asadm prompt?

**URL:** <https://discuss.aerospike.com/t/how-to-run-summary-command-outside-of-asadm-prompt/8149>\
**Category:** General Discussion\
**Tags:** query\
**Created:** [January 14, 2021, 7:12pm UTC](https://discuss.aerospike.com/t/how-to-run-summary-command-outside-of-asadm-prompt/8149 "2021-01-14T19:12:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmurakon](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kmurakon](https://discuss.aerospike.com/u/kmurakon)\
**Post date:** [January 14, 2021, 7:12pm UTC](https://discuss.aerospike.com/t/how-to-run-summary-command-outside-of-asadm-prompt/8149/1 "2021-01-14T19:12:35Z")

</div>

We have a requirement to get the aerospike cluster details via a shell script, so trying to find a way to run “summary” command outside of “Admin\>” prompt i.e. without running asadm and to enter “Admin\>” prompt.

Below is working but hard to script

```auto
aerospike@xxxx [/home/aerospike]
==>asadm
Seed: [('127.0.0.1', 3000, 'xxxx')]
Config_file: /home/aerospike/.aerospike/astools.conf, /etc/aerospike/astools.conf
Aerospike Interactive Shell, version 0.3.3

Enter Password:
Found 3 nodes
Online:  

Admin> summary

```

=======

Is there any way we can run it out side asadm like asinfo -v “summary” ?

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [January 14, 2021, 7:30pm UTC](https://discuss.aerospike.com/t/how-to-run-summary-command-outside-of-asadm-prompt/8149/2 "2021-01-14T19:30:16Z")

</div>

The summary command is implemented in asadm, so you will have to use asadm to run that particular command. That said are you familiar with the “`-e`” option?

> -e --execute Execute a single or multiple asadm commands and exit.  
> The input value is either string of ‘;’ separated asadm  
> commands or path of file which has asadm commands (ends with ‘;’).

You can invoke the “summary” command by issuing:

```auto
asadm -h "127.0.0.1" -e "summary"

```

(Note that the host address, “`-h "127.0.0.1`”, is only is only needed when Aerospike is running on a remote machine.)

---

<div class="post-metadata">

**Author:** ![kmurakon](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kmurakon](https://discuss.aerospike.com/u/kmurakon)\
**Post date:** [January 15, 2021, 7:47am UTC](https://discuss.aerospike.com/t/how-to-run-summary-command-outside-of-asadm-prompt/8149/3 "2021-01-15T07:47:06Z")

</div>

Awesome, thanks for a quick response and the asadm with -e option works great.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [January 15, 2022, 7:47am UTC](https://discuss.aerospike.com/t/how-to-run-summary-command-outside-of-asadm-prompt/8149/4 "2022-01-15T07:47:08Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
