Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SNMP Recon Script
#2
Ok I managed to achieve the desired results by adding this code within snmpdevices.pl


# Resolve the address
my $host_name = gethostbyaddr(inet_aton($addr), AF_INET);

        my $sysname =`/usr/bin/snmpwalk -OUEvqt -c $target_community  -v2c $addr  SNMPv2-MIB:ConfusedysName.0`;
        $host_name = $sysname unless defined ($host_name);


The only issues is the agent does not show up on the gis map  but it does show on the network topology map any ideas... This is my first attempt at perl so keep in mind im not an expert

 Reply
Messages In This Thread
SNMP Recon Script - by gmonk63 - 11-11-2011, 06:59 PM
Re: SNMP Recon Script - by gmonk63 - 11-12-2011, 11:25 PM


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes