VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1[2] ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 22:59:39 01/15/07 Mon
Author: Anandan
Subject: Net Snmp Commands
In reply to: Anandan 's message, "Networking - Software tools" on 05:41:31 01/10/07 Wed

Here we will describe briefly about snmp commands:
Basic Snmp commands are snmpget, snmpset, snmpgetnext, snmpwalk.
Advanced commands are: snmptable, snmptranslate, snmpnetstat, snmpstatus.
1. Snmpget:
If you have a system running snmp agent, assume its ipAddress as 100.100.100.3 then try this command -
snmpget 100.100.100.3 public .1.3.6.1.2.1.1.1.0
to get the system Description
If you get a wrong message as reply, you might be using a different version, try the following options, you should get reply for atleast one.
snmpget 100.100.100.3 -cpublic .1.3.6.1.2.1.1.1.0
snmpget 100.100.100.3 -v1 -cpublic .1.3.6.1.2.1.1.1.0

One can use the system name if there is no problem with DNS
snmpget -v1 -cpublic xyz.abcCorp.com .1.3.6.1.2.1.1.1.0
Instead of dotted digits for the mib OIDs, one can use prefixes as given below:
snmpget 100.100.100.3 -v1 -cpublic iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0

It is possible to use both numbers and names as given here
snmpget 100.100.100.3 -v1 -cpublic .1.3.6.internet.mgmt.2.1.1.sysDescr.0

Also if the MIB is known, one can do a random-access lookup for unique node names:
snmpget 100.100.100.3 -v1 -cpublic upsBasicIdentModel.0

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-8
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.