snmpwalk xyz.network.local

  • snmpwalk -v1 -c community xyz.network.local …
  • snmpget -v 2c –c community xyz.network.local …
  • rnetstat –ix xyz.network.local

Interface description

server:~ $ snmpwalk -v1 -c community 1.2.3.4 ifDescr<b>
</b>
IF-MIB::ifDescr.121 = STRING: F1

IF-MIB::ifDescr.122 = STRING: F2

 

Status of Interfaces

server:~ $ snmpwalk -v1 -c community 1.2.3.4 ifOperStatus<b>
</b>
<pre>IF-MIB::ifOperStatus.121 = INTEGER: down(2)
IF-MIB::ifOperStatus.122 = INTEGER: down(2)

 

System uptime

server:~ $ snmpwalk -v1 -c community 1.2.3.4 sysUpTime<b>
</b>
<pre>
DISMAN-EVENT-MIB: ysUpTimeInstance = Timeticks: (2810688787) 325 days, 7:28:07.87

 

Interface IP addresses

server:~ $ snmpwalk -v1 -c community 1.2.3.4 ipAdEntAddr&nbsp;<b>
</b>
<pre>IP-MIB::ipAdEntAddr.10.6.221.234 = IpAddress: 10.6.221.234
IP-MIB::ipAdEntAddr.10.100.255.253 = IpAddress: 10.100.255.253
IP-MIB::ipAdEntAddr.10.213.78.234 = IpAddress: 10.213.78.234
IP-MIB::ipAdEntAddr.172.21.196.242 = IpAddress: 172.21.196.242
IP-MIB::ipAdEntAddr.192.168.125.3 = IpAddress: 192.168.125.3

 

Last change of interfaces

server:~ $ snmpwalk -v1 -c community 1.2.3.4 ifLastChange

<pre>
IF-MIB::ifLastChange.1 = Timeticks: (1437843835) 166 days, 10:00:38.35
IF-MIB::ifLastChange.2 = Timeticks: (5575) 0:00:55.75
IF-MIB::ifLastChange.3 = Timeticks: 0:00:00.00
IF-MIB::ifLastChange.4 = Timeticks: 0:00:00.00
IF-MIB::ifLastChange.5 = Timeticks: (1454772557) 168 days, 9:02:05.57
IF-MIB::ifLastChange.6 = Timeticks: (4301) 0:00:43.01
IF-MIB::ifLastChange.7 = Timeticks: (4227) 0:00:42.27
IF-MIB::ifLastChange.8 = Timeticks: (4343) 0:00:43.43

 

TCP connection state – who is connected on which port

server:~ $<b>snmpwalk -c community 1.2.3.4 tcpConnState </b><b>
</b>
<pre>tcp.tcpConnTable.tcpConnEntry.tcpConnState.0.0.0.0.23.0.0.0.0.0 : INTEGER: listen
tcp.tcpConnTable.tcpConnEntry.tcpConnState.0.0.0.0.80.0.0.0.0.0 : INTEGER: listen
tcp.tcpConnTable.tcpConnEntry.tcpConnState.0.0.0.0.1506.0.0.0.0.0 : INTEGER: listen
tcp.tcpConnTable.tcpConnEntry.tcpConnState.0.0.0.0.1513.0.0.0.0.0 : INTEGER: listen

 

Other options

ifAdminStatus
ifOperStatus
ifPhysAddress  (mac address)
ifSpeed
ifType
sysContact.0
sysName.0
sysLocation.0

Leave a Reply