Hi,
First of all, thanks for such a great piece of software. It's really
easy with smidump and the rest of the code.
I'm developing a new mode for scli. It's temporary called
"ciscobridge", it should support most IOS switchs from cisco and I would
like this mode to be included in the scli source.
The main difference with other switchs is that you must append the
VLANID to the SNMP community for getting that VLAN information, like the
forwarding table. For example, "scli host public@69".
My needs are:
1) get the MAC addres ("show mac-address-table") and description
("configure terminal -> interface fast 0/20 -> description") by VLAN &
IFACE
2) show if a port is in trunk mode
3) change an interface to a vlan, change description of an interface
I've got 1) done, I would like someone try the beast and give some
ideas of what could be done or what is needed.
The source code is here, just for testing:
http://sistemas.dfi.uchile.cl/~amartoq/tmp/scli/
Thanks,
PS: Sample outputs here
$ ./scli host
(host) scli > show ciscobridge vlan
VLAN NAME STATUS PORTS
1 default operat
69 TEST operat Fa0/3 Fa0/5 Fa0/6 Fa0/7
(host) scli > show ciscobridge macaddresstable
PORT STATUS ADDRESS VLAN IFNAME DESCRIPTION
0 mgmt ff:ff:ff:ff:ff:ff 1
13 learned 00:05:5d:94:c0:a9 1 Fa0/1 punto 5 oficina sistemas
$ telnet host
User Access Verification
Password:
host>enable
Password:
host#show vlan
VLAN Name Status Ports
---- -------------------------------- ---------
-------------------------------
1 default active
69 TEST active Fa0/3, Fa0/5, Fa0/6,
Fa0/7
host#show mac-address-table
Dynamic Address Count: 2
Secure Address Count: 0
Static Address (User-defined) Count: 0
System Self Address Count: 49
Total MAC addresses: 51
Maximum MAC addresses: 2048
Non-static Address Table:
Destination Address Address Type VLAN Destination Port
------------------- ------------ ---- --------------------
0005.5d94.c0a9 Dynamic 1 FastEthernet0/1
--
Aldrin