- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- snmpwalk parameters
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 12:43 AM
тАО07-14-2005 12:43 AM
on my Debian Sarge Stable I cannot do:
# snmpwalk 192.168.0.3 public
this command was working in the older versions of linux
but if I put some options:
snmpwalk -sO -c public -v 1 192.168.0.3
it seems to work.
knows someone why ?
and what mean exactly these options:
-sO -c -v 1 ?
kind regards
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 12:57 AM
тАО07-14-2005 12:57 AM
SolutionThe -v 1 says you are using version 1 of the snmp utility.
The -sO I am not sure. I see a -0s which means to retrive all the variables under system OID (object identifier):
sysDescr.0
sysObjectID.0
sysUpTime.0
sysContact.0
sysName.0
sysLocation.0
sysServices.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 01:01 AM
тАО07-14-2005 01:01 AM
Re: snmpwalk parameters
As for the others... '-c' is the community to query.
'-v 1' says to use SNMP version 1 protocol.
What does 'snmpwalk -v1 192.168.0.3 public' do? I'd expect it would probably still need to have the '-c' though (I honestly haven't used snmp much).
See 'man snmpcmd' for details on the se flags.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 02:28 AM
тАО07-14-2005 02:28 AM
Re: snmpwalk parameters
# snmpwalk -v1 192.168.0.3 public
dosn't work, but
# snmpwalk -v1 -c public 192.168.0.3
works.
It seems, it needs to work both options:
-v1 and -c
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 02:44 AM
тАО07-14-2005 02:44 AM
Re: snmpwalk parameters
I do 'snmpwalk -v1 -c secret 1.1.1.1'
My belief is that this will also work;
snmpwalk -v2c -c secret 1.1.1.1
Using version 2 of snmp
The 'secret' is my community name.
Can also do 'snmpwalk -v2c -c secret 1.1.1.1 system
This will output only the OID info for system.
SNMPv2-MIB::sysDescr.0
SNMPv2-MIB::sysObjectID.0
SNMPv2-MIB::sysUpTime.0
SNMPv2-MIB::sysContact.0
SNMPv2-MIB::sysName.0
SNMPv2-MIB::sysLocation.0
SNMPv2-MIB::sysServices.0
SNMPv2-MIB::sysORLastChange.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 03:50 AM
тАО07-14-2005 03:50 AM
Re: snmpwalk parameters
# snmpwalk -v2c -c secret 1.1.1.1
is not working under Debian Sarge or freeBSD 5.4
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 04:32 AM
тАО07-14-2005 04:32 AM
Re: snmpwalk parameters
I have changed mine and by habit I use use the 'secret' in postings.
# snmpwalk -v2c -c public 1.1.1.1
Substitute the 1.1.1.1 IP address with a valid IP from your environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 04:45 AM
тАО07-14-2005 04:45 AM
Re: snmpwalk parameters
bsd# snmpwalk -v2c -c public 192.168.0.3
Timeout: No Response from 192.168.0.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 04:51 AM
тАО07-14-2005 04:51 AM
Re: snmpwalk parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2005 10:32 PM
тАО07-17-2005 10:32 PM
Re: snmpwalk parameters
Nobody has cleared up your original question though...
"knows someone why?"
Check the snmp package that you have installed. On your "older" versions, you're using the older ucd-snmp packages. On your new Debian system, you're using net-snmp.
You can use snmpconf to create your own "snmp.conf" file that specifies default values (i.e. output, version, and community string options). Place this file in your $HOME/.snmp directory. This makes things much simpler: your snmpwalk command could then be as simple as: "snmpwalk
Do a "man 5 snmp_config" for more info.
Enjoy,
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 04:33 AM
тАО07-18-2005 04:33 AM
Re: snmpwalk parameters
Side note: Beware that snmp, at least older versions does some of its authentication in a way that is shall we say less than secure.
You need to be current on patching and make sure you keep on eye on snmp exploits and such while using the product.
SEP
Rapid City, SD
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com