Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can any one help me with writing a script to get ifInOctets and ifOutOctets from a server 10.38.2.24 ?

I need help

share|improve this question

closed as off-topic by HBruijn, EEAA, Sven, Michael Hampton Jul 19 '14 at 5:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – EEAA, Sven, Michael Hampton
If this question can be reworded to fit the rules in the help center, please edit the question.

snmpget -v 2c -c PUBLIC 10.38.2.24 1.3.6.1.2.1.2.2.1.10

snmpget -v 2c -c PUBLIC 10.38.2.24 1.3.6.1.2.1.2.2.1.16

-c communityname, default to PUBLIC

-v version, probably 2c

SNMPget: Net-SNMP

share|improve this answer
1  
Probably want snmpwalk instead of snmpget to get all the interfaces of each (arguments would be the same) – Kyle Brandt Jul 18 '14 at 21:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.