| Author |
Message |
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 17/06/2009 09:00:01
|
Oded M
VP Product

Joined: 28/05/2008
Messages: 892
Offline
|
Dear SysAid Lab members !
For those of you who want to make the most out of the SNMP network scanning - I would like to forward all of your attention to an open source command line tool for snmp queries you can use to learn a lot about your devices and then configure SysAid to extract and save that information.
This net-snmp tool will allow you to be able to send simple queries to your SNMP devices and receive the values.
Learn more about the tool [url=http://sourceforge.net/project/showfiles.php?group_id=12694&package_id=162885&release_id=637301]Here[/url]
Download the third link on the above download page or click this direct link : [url=http://downloads.sourceforge.net/net-snmp/net-snmp-5.4.2.1-1.win32.exe?modtime=1225732382&big_mirror=1]net-snmp-5.4.2.1-1.win32.exe [/url]
Perform a default installation – next next….
Open a command line prompt in Windows: (cmd)
The following command lines are usefull:
Get value of a single OID:
snmpget -v1 -c public OID
Example : snmpget -v1 -c public 192.168.1.1 1.3.6.1.2.1.43.5.1.1.1.1.0
Get all values of a sub tree:
snmpwalk -v 1 -c public mib-2
snmpwalk -v 1 -c public private
snmpwalk -v 1 -c public mgmt
The outputs are long so you can add "> file1.txt" to the end of each command : snmpwalk -v 1 -c public mgmt > mgmt.txt
If you find OID-s of interesting information for printers like page counter , toner level , or any other interesting information for network devices – please post them here !
Good Luck !
Oded
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 17/06/2009 09:37:37
|
Guillaume
SysAider

Joined: 12/05/2009
Messages: 2
Offline
|
Hey ! Nice to know !! Thanks!
Good Call !
|
Guillaume, IT. |
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 28/09/2009 11:07:41
|
TRS-80
SysAider

Joined: 25/09/2009
Messages: 7
Location: Nashville, TN
Offline
|
Thank you for this tool. Previously, I had to log on to a linux box to get this functionality. Now I can do this from my pc.
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 22/06/2010 09:31:37
|
Lev
SysAid Mod

Joined: 18/08/2008
Messages: 508
Location: Haifa, Israel
Offline
|
Here are some OID's i have found:
1.3.6.1.2.1.43.10.2.1.4.1.1 HP Printer Total Page Count
1.3.6.1.2.1.47.1.1.1.1.11.1 ProCurve Serial
1.3.6.1.2.1.43.5.1.1.17.1 HP Printer Serial
If some body will give an idea for OID's I'll try to find them.
Those 2 free tools can help you as well.
HiliSoft - MIB browser
Script Logic - sl360 tool suit (there are nice free tools not only for SNMP)
Lev
|
DONT !!! DONT TOUCH THE KEYBOARD !!! |
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 28/02/2012 16:45:10
|
kamika
SysAider
Joined: 28/02/2012
Messages: 1
Offline
|
hi,
I installed succefully the net-snmp.exe but when I tried to tape some comands in the cmd like snmpget or snmpwalk I get a message like that:
'snmpget' is not recognized as internal command
or external, operable program or batch file.
plz can anyone help me and thanks
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 30/08/2012 12:31:59
|
marijan_zg
SysAider
Joined: 30/08/2012
Messages: 2
Offline
|
kamika wrote:hi,
I installed succefully the net-snmp.exe but when I tried to tape some comands in the cmd like snmpget or snmpwalk I get a message like that:
'snmpget' is not recognized as internal command
or external, operable program or batch file.
plz can anyone help me and thanks
position you cursor to the folder that you install SNMP.
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 30/08/2012 12:39:06
|
marijan_zg
SysAider
Joined: 30/08/2012
Messages: 2
Offline
|
I found OID for RICOH counter:
C:\snmp\bin>snmpget -v1 -c public 192.168.1.81 .1.3.6.1.2.1.43.10.2.1.4.1.1
SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 = Counter32: 45069
I used:
C:\snmp\bin>snmpwalk -v 2c -c public 192.168.1.80 >80.txt
after that open 80.txt and compare counter from machine and txt file
note* in snmpwalk I use ver 2 of snmp protocol.
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 09/04/2013 21:11:14
|
SNMP-for-life
SysAider
Joined: 09/04/2013
Messages: 1
Offline
|
Provided is a whitepaper I wrote a while back on Net-SNMP and using SNMP at the Command Line - CLI
I also have a section in here about using NET-SNMP in scripts
http://www.tobiassystems.com/?page_id=944
Hopefully this helps everyone
|
|
|