# How to get switch, storage fan, temp status info?

**URL:** <https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779>\
**Category:** Logstash\
**Created:** [December 21, 2018, 3:51am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779 "2018-12-21T03:51:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dh77hd](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dh77hd](https://discuss.elastic.co/u/dh77hd)\
**Post date:** [December 21, 2018, 3:51am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779/1 "2018-12-21T03:51:49Z")

</div>

Hi.  
I want to get switch, storage fan, temp, power status.

How to get that information?

That infor is like below.

```
Fan:
------------------------------------------------------
Fan Model Hw Status
------------------------------------------------------
Fan-1 N3K-C3048-FAN -- ok
PS-1 N2200-PAC-400W -- ok
PS-2 N2200-PAC-400W -- ok
```

---

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [December 21, 2018, 4:18am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779/2 "2018-12-21T04:18:01Z")

</div>

Where is this data? Do you have a system monitoring tool that has this data? If yes, how can you export or forward the data?

---

<div class="post-metadata">

**Author:** ![dh77hd](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dh77hd](https://discuss.elastic.co/u/dh77hd)\
**Post date:** [December 21, 2018, 4:21am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779/3 "2018-12-21T04:21:15Z")

</div>

This data is cisco switch command result.

I typed command 'show environment fan' in switch.

---

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [December 21, 2018, 4:30am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779/4 "2018-12-21T04:30:56Z")

</div>

Could you try setting up SNMP traps to capture this information?

Logstash has an SNMP input, so you can use that to consume the data.

---

<div class="post-metadata">

**Author:** ![dh77hd](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dh77hd](https://discuss.elastic.co/u/dh77hd)\
**Post date:** [December 21, 2018, 4:35am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779/5 "2018-12-21T04:35:25Z")

</div>

I already set up SNMP input and switch SNMP config  
snmp{  
get =\> ["1.3.6.1.4.1.9.9.91.1.1.1.1.4"]  
hosts =\> [{host =\> "SWITCH-IP/161" community =\> "public"}]  
}

I used OID in cisco MIB. But, I can't get that information.  
This is the data that I got.  
error: no such instance currently exists at this OID

---

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [December 21, 2018, 5:40am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779/6 "2018-12-21T05:40:57Z")

</div>

Sorry, not much of an experience on setting up SNMP traps, but reading the error it seems that the traps are not working correctly.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 18, 2019, 5:41am UTC](https://discuss.elastic.co/t/how-to-get-switch-storage-fan-temp-status-info/161779/7 "2019-01-18T05:41:04Z")

</div>

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