Cisco switch

From Federal Burro of Information
Jump to navigationJump to search

A basic Config

no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname quadratic-sw1
!
no logging monitor
enable secret 5 $1$l3pO$AFb1SR.o2.BkpM4Yf4TU60
enable password Cisco
!
username dthornton privilege 15 secret 5 $1$pGYr$VsuKI.bHNVEkVZCs8j.Dr.
clock timezone est -5
clock summer-time edt recurring
ip subnet-zero
!
no ip domain-lookup
vtp mode transparent
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
 description management port
 switchport mode trunk
!
interface FastEthernet0/2
 description Test port
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/24
!
interface Vlan1
 ip address 192.168.1.11 255.255.255.0
 no ip route-cache
!
ip default-gateway 192.168.1.254
no ip http server
logging facility local1
logging 192.168.1.64
snmp-server community public RO
snmp-server enable traps snmp warmstart linkdown linkup coldstart
snmp-server enable traps config
snmp-server host 192.168.1.64 public
!
line con 0
line vty 0 4
 password Cisco
 login
line vty 5 15
 exec-timeout 0 0
 password Cisco
 login
 transport input telnet
 transport output telnet
!
!
end

What mibs does my cisco device support?

check it out!!!!

http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml

now dump the result to a textfile extract and masage the urls, for bulk down load:

for i in `grep ftp textfile | perl -n -e 'if (/ftp:\/\/(.*)"/){print "http://".$1."\n"}'`;
do
wget $i;
done

Missing some dependencies? hunt them down by fiddling with this url: http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=CISCO-ST-TC

more mibs? http://www.simpleweb.org/ietf/mibs/modules/IETF/txt/MIBNAME

still more? http://demonic.cc/?p=20