Hi All,
You probably hear this everyday, but "I'm a newbie to SNMP." Now we've got that confession over with, I have a small project which I was hoping someone could spend a few minutes helping me with please:
My boss wants a bash script (or Java app) to find the total number of ports on our Network Switches (so we can tell this to Cisco for our maintainance contract).
We use HPOpenView in our organisation, and I've managed to locate something called "snmpwalk". Now, as soon as I try a command in UNIX such as "snmpwalk my_2924_switch" I get an error complaining of a missing 'hpovlib.so' file (or something similar). Any ideas anyone? Is this normal? Would it affect any attempt to write a script to find the total number of switch ports?
Basically I have 2 further problems, as follows:
[red]
1. How do I 'trawl' the network to find all the switches, so that I can then use SNMP to find how many ports each has?
2. When I have a list of switches, how do I know what SNMP query string to use? mgmt.interfaces.x.x.x.x?? And to which command would this parameter be passed (I don't seem to have snmpget, just [a faulty] snmpwalk)?
[/red]
I appreciate that everyone has other things to do besides answer these questions, but if you take the time. Thank you very much ;-)
James.
You probably hear this everyday, but "I'm a newbie to SNMP." Now we've got that confession over with, I have a small project which I was hoping someone could spend a few minutes helping me with please:
My boss wants a bash script (or Java app) to find the total number of ports on our Network Switches (so we can tell this to Cisco for our maintainance contract).
We use HPOpenView in our organisation, and I've managed to locate something called "snmpwalk". Now, as soon as I try a command in UNIX such as "snmpwalk my_2924_switch" I get an error complaining of a missing 'hpovlib.so' file (or something similar). Any ideas anyone? Is this normal? Would it affect any attempt to write a script to find the total number of switch ports?
Basically I have 2 further problems, as follows:
[red]
1. How do I 'trawl' the network to find all the switches, so that I can then use SNMP to find how many ports each has?
2. When I have a list of switches, how do I know what SNMP query string to use? mgmt.interfaces.x.x.x.x?? And to which command would this parameter be passed (I don't seem to have snmpget, just [a faulty] snmpwalk)?
[/red]
I appreciate that everyone has other things to do besides answer these questions, but if you take the time. Thank you very much ;-)
James.