Hi!

We've several SOHOxx and uBR9xx Routers in our network. As ZipTie 2008.04c doesn't recognize these model names, i added some code to Parser.pm (parse_chassis subroutine) in the Cisco IOS Adapter (ziptie.cisco.ios_2008.4.2v200806231944):

if ( $in->{version} =~ /^(?:Product\/)?Model number\s*:\s*(\S+)/mi )
{
$chassisAsset->{'core:factoryinfo'}->{'core:modelNumber'} = $1;
}
elsif ( $in->{version} =~ /^cisco\s+((?:WS-C|Cat|AS|C|VG)?\d{3,4}\S*\b)\S*\b/mi )
{
$chassisAsset->{'core:factoryinfo'}->{'core:modelNumber'} = $1;
}
elsif ( $in->{version} =~ /^cisco\s+((?:SOHO)?\d{2}\S*\b)\S*\b/mi )
{
$chassisAsset->{'core:factoryinfo'}->{'core:modelNumber'} = $1;
}
elsif ( $in->{version} =~ /^cisco\s+((?:uBR)?\d{3}\S*\b)\S*\b/mi )
{
$chassisAsset->{'core:factoryinfo'}->{'core:modelNumber'} = $1;
} ...

I'm fairly new to ziptie, so i post this here.

Regards,
Markus

Thanks for the patch Markus.

Thanks for the patch Markus. I checked it into CVS so it will be part of our next release of ZipTie.

http://fisheye.ziptie.org/browse/ZipTie/ziptie.adapters.cisco.ios/script...

From now on when you have a bug that you have fixed like this please open a bug report at http://bugs.ziptie.org. We like to track our bugs there.

Thanks again!
Ryan