09-18-2012 06:43 AM
Hi Vinod,
I used the below syntax to check the snmpwalk to an interface of a cisco 7606-s router from an LMS 4.0 version cli.
NMSROOT/Objects/jt/bin>snmpwalk -v 2c -c <snmp-string> <ip-addr> 1.3.6.1.2.1.31.1.1.1.6
Timeout no response from <ip_address>
This is the error im getting in cli prompt. But i could see that reports are generating.
If i try with the loopback ip address, i get proper snmpwalk outputs.
Any idea what could be the reason. I have increased the timeout and retry options..
09-19-2012 03:16 AM
Seems the LMS cannot reach the IP you are trying, but the Loopback is reachable. Also, you may have some security policy, per your ASA/FW which may restrict port 161 to other interface IP of the device and allows for loopback IP.
Please check if ping works for this failing IP?
If above is not the case, you may want to check if the packets reach the device or not. You can check this by looking show snmp ouput and chekcing the input packet count.
-Thanks
09-19-2012 06:14 AM
The reports are coming properly after I delete and add it in Common Services and then to HUM pollers.. But still the snmpwalk to these ip address are failing. These ports are part of VRF configuration. Is there anything related to Vrf and snmp ?
10-19-2012 12:19 AM
Only the loopback ip addresses would be reachable via snmpwalk command and other interfaces wont be able to reach.
The command to execute the snmp walk would be as given below for an HCInOctects.
NMSROOT/Objects/jt/bin>snmpwalk -v 2c -c
ifDescr MIB is 1.3.6.1.2.1.2.2.1.2
ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6
ifHCOutOctets 1.3.6.1.2.1.31.1.1.1.10
Example :- to check the ifHCInOctects
NMSROOT/Objects/jt/bin>snmpwalk -v 2c -c public 10.1.1.100 1.3.6.1.2.1.31.1.1.1.6.1
where .1 in the end stands for Gi1/1 from the output of beow ifDescr snmpwalk
NMSROOT/Objects/jt/bin>snmpwalk -v 2c -c public 10.1.1.100 1.3.6.1.2.1.2.2.1.2
where 10.1.1.100 stands for the loopback ip address of router or the ip address as configured in CommonServices for the device.
The same is applicable for ifHCInOctects.
If you want to know more about ifHCInOctects/ifHCOutOctects, please go thru the below link
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_q_and_a_item09186a00800b69ac.shtml
regards
Rajesh
NMSROOT/Objects/jt/bin>snmpwalk -v 2c -c |
ifDescr MIB is 1.3.6.1.2.1.2.2.1.2 |
ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6 |
ifHCOutOctets 1.3.6.1.2.1.31.1.1.1.10 |
NMSROOT/Objects/jt/bin>snmpwalk -v 2c -c public 172.16.65.165 1.3.6.1.2.1.31.1.1.1.6.1 |
where .1 stands for Gi1/1 from ifDescr |
NMSROOT/Objects/jt/bin>snmpwalk -v 2c -c public 172.16.65.165 1.3.6.1.2.1.2.2.1.2 |
02-26-2022 08:07 AM
02-26-2022 10:31 AM
Привет,
попробуйте синтаксис ниже:
snmpwalk -t 10 -v 2c -c NfRcBrJvV 10.228.0.254
02-27-2022 07:39 AM
не получилось, это из мой ПК убунту 18,04
parvin@parvin-system:~$ snmpwalk -t 10 -v 2c -c NfRcBrJvV 10.228.0.254
Timeout: No Response from 10.228.0.254
R01#show run | s snmp
match protocol snmp
snmp-server community NfRcBrJvV RO SNMP_RO
snmp-server community yu0agooC RW SNMP_RW
snmp-server ifindex persist
snmp-server source-interface informs GigabitEthernet0/1.11
snmp-server tftp-server-list TFTP
snmp-server file-transfer access-group TFTP protocol tftp
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide