Forum Discussion
dragonflymr
Mar 27, 2017Cirrostratus
How to remove iStats keys
Hi,
I know that it's possible to reset iStats keys to 0 but is there a way to remove keys that are no longer needed?
Piotr
Kai_Wilke
Mar 29, 2017MVP
Hi Piotr,
this one will work too...
[user@unit:Active:Standalone] tmp istats dump
/var/tmstat/cluster.tm2 [READONLY]: nextBlockId=384, last update at 2017-03-29 14:53:35
all facts:
[user@unit:Active:Standalone] tmp istats set "aaa aaa string aaa" 1
[user@unit:Active:Standalone] tmp istats set "aaa aaa gauge aaa" 1
[user@unit:Active:Standalone] tmp istats set "aaa aaa counter aaa" 1
[user@unit:Active:Standalone] tmp istats set "aaa aaa min aaa" 1
[user@unit:Active:Standalone] tmp istats set "aaa aaa max aaa" 1
[user@unit:Active:Standalone] tmp istats dump
/var/tmstat/cluster.tm2 [READONLY]: nextBlockId=1504, last update at 2017-03-29 14:54:05
all facts:
[ aaa=aaa ][aaa] = 1 (2017-03-29 14:54:00)
[ aaa=aaa ][aaa] = 1 (2017-03-29 14:54:00)
[ aaa=aaa ][aaa] = 1 (2017-03-29 14:54:01)
[ aaa=aaa ][aaa] = 1 (2017-03-29 14:54:00)
[ aaa=aaa ][aaa] = 1 (2017-03-29 14:54:00)
[user@unit:Active:Standalone] tmp bigstart stop istatsd
[user@unit:Active:Standalone] tmp rm -rf /var/tmstat2/cluster/*
[user@unit:Active:Standalone] tmp rm -rf /var/tmstat2/blade/*
[user@unit:Active:Standalone] tmp bigstart start istatsd
[user@unit:Active:Standalone] tmp istats dump
/var/tmstat/cluster.tm2 [READONLY]: nextBlockId=384, last update at 2017-03-29 14:53:35
all facts:
[user@unit:Active:Standalone] tmp
Cheers, Kai
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects