Added the ability to parse nicknames from a Cisco Show Zone. In short: blindly parse a “show zone” output, and if the text stream isn’t overly butchered, nicknames will be detected and imported to the VICT space for writing using -n file.csv
or --nicknameout=file.csv
in fibrechannel-parsers version 0.3.39, a parser was added for the result of a cisco show zone:
zone name SANASVR001_FabA vsan 100 fcalias name Oracle_123466 vsan 100 pwwn 10:00:00:00:c9:12:34:66 fcalias name HDS0123457_CL7F vsan 100 pwwn 50:06:0e:80:12:34:56:78
This differs from a show device-alias database
or a show fcalias
in that the zone entries are present, and may contain vsan verbs. Implemented as a stream, it should be a bit more robust and accepting than a pure-scripted variant, so that content provided by (oh, my favorite!) a user cutting a session out to log and submitting that (because it’s just as good… nah, with the ANSI markers and color formatting, it’s better!). This isn’t a substitution for ignoring the very detail when (not) reading directions, but it should give us a fighting chance.
The addition is available in the same array of parsers, so it works without any new user-config. For example, list like the parsing of cisco device-alias database as a simple text stream (from FTP, HTTP, or FILE:// URLs), a simple --nickname=
or -N
will work:
java -jar vict.jar --nickname=file:///file/name.txt
(or the convenience fallback)
java -jar vict.jar --nickname=/file/name.txt
(or in short-form options)
java -jar vict.jar -N name.txt
(or in Windows)
VICT.BAT -N name.txt
The matching actions in the main toolkit using the fibrechannel-parsers project involves a test case to ensure the code is resident and functioning; by that method, whatever version of fibrechannel-parsers is found during the build will offer at minimum a functioning version of this extension.