Cisco
Located in /Cisco.php (line 40)
Class Constructor
List VLANs available through STP
Close an active connection
Establish a connection to the device
Disable (exit privileged user mode if enabled)
Enable (enter privileged user mode)
Ping (execute an IOS "ping $host" command)
Show ARP (execute an IOS "show arp" command)
Result Array:
Array ( [n] => Array ( [ip] => string [mac_address] => string [age] => string ) )
[..]
Show Interface (execute an IOS "show int $int" command)
Result Array:
Array ( [n] => Array ( [interface] => string [status] => string [description] => string [mtu] => string [bandwidth] => string [dly] => string [duplex] => string [speed] => string [type] => string [in_rate] => string [in_packet_rate] => string [out_rate] => string [out_packet_rate] => string [in_packet] => string [in] => string [broadcast] => string [runt] => string [giant] => string [throttle] => string [in_error] => string [crc] => string [frame] => string [overrun] => string [ignored] => string [watchdog] => string [multicast] => string [pause_in] => string [in_dribble] => string [out_packet] => string [out] => string [underrun] => string [out_error] => string [collision] => string [reset] => string [babble] => string [late_collision] => string [deferred] => string [lost_carrier] => string [no_carrier] => string [pause_out] => string [out_buffer_fail] => string [out_buffer_swap] => string ) )
[..]
Show Interfaces Status (execute an IOS "show int status" command)
Result Array:
Array ( [n] => Array ( [interface] => string [description] => string [status] => string [vlan] => string [duplex] => string [speed] => string [type] => string ) )
[..]
Show IPv6 Neighbor Table (execute an IOS "show ipv6 neighbors" command)
This is the IPv6 equivilant of the ARP table.
Result Array:
Array ( [n] => Array ( [ipv6] [mac_address] [age] ) )
[..]
Show IPv6 Routers (execute an IOS "show ipv6 routers" command)
Used to detect IPv6 RA (Router Advertisement)
Result Array:
Array ( [n] => Array ( [router] [prefix] ) )
[..]
Show Logging (execute an IOS "show log" command)
Result Array:
Array ( [n] => Array ( [timestamp] => string [type] => string [message] => string ) )
[..]
Show MAC address-table (execute an IOS "show mac address-table" command)
This command is modified to ignore trunk ports. This keeps the reported address table isolated to the local switch, provided all uplinks are configured as trunk ports.
Support for XL-series switches is included (e.g. 3500-XL)
Result Array:
Array ( [n] => Array ( [mac_address] => string [interface] => string ) )
[..]
Traceroute (execute an IOS "traceroute $host" command)
List Trunk Interfaces
Documentation generated on Thu, 09 Apr 2009 22:06:34 -0400 by phpDocumentor 1.4.2