# Is there way to get the records are in a set?

**URL:** <https://discuss.aerospike.com/t/is-there-way-to-get-the-records-are-in-a-set/288>\
**Category:** Feature Discussion\
**Created:** [August 16, 2014, 1:06am UTC](https://discuss.aerospike.com/t/is-there-way-to-get-the-records-are-in-a-set/288 "2014-08-16T01:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [August 16, 2014, 1:06am UTC](https://discuss.aerospike.com/t/is-there-way-to-get-the-records-are-in-a-set/288/1 "2014-08-16T01:06:06Z")

</div>

by peter » Wed Jul 16, 2014 4:52 pm

Yes there is, by using an “info” call. Try this from the linux command prompt\

```auto
CODE: SELECT ALL
asinfo -v “sets<your namespace>”

```

This will return a string with data about each set. The “objects” value is the number of objects in a set. You can call this from the client API, parse the string that is returned and get the number of objects

---

<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:** [August 16, 2014, 1:06am UTC](https://discuss.aerospike.com/t/is-there-way-to-get-the-records-are-in-a-set/288/2 "2014-08-16T01:06:34Z")

</div>

by Hanson » Tue Jul 29, 2014 7:26 pm

Shall be:

```auto
CODE: SELECT ALL
asinfo -v “sets/<your namespace>”
or:
asinfo -v “sets/<your namespace>/<your set name>”

Examples:
[root@localhost data]# asinfo -v "sets/test"
requested value sets/test
value is ns_name=test:set_name=testset:n_objects=29110779:set-stop-write-count=0:set-evict-hwm-count=0:set-enable-xdr=use-default:set-delete=false;ns_name=test:set_name=mytable:n_objects=1:set-stop-write-count=0:set-evict-hwm-count=0:set-enable-xdr=use-default:set-delete=false;
[root@localhost data]# asinfo -v "sets/test/testset"
requested value sets/test/testset
value is n_objects=29110779:set-stop-write-count=0:set-evict-hwm-count=0:set-enable-xdr=use-default:set-delete=false;

```
