Steps to disable pulling vlan.dat and vlan text in CiscoIOSSwitch
search cancel

Steps to disable pulling vlan.dat and vlan text in CiscoIOSSwitch

book

Article ID: 331176

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

This article explains the steps to disable pulling vlan.dat and vlan text in CiscoIOSSwitch

Environment

NCM 10.1.X

Resolution

The following changes are required on both the Application Server and Device Server:

1) On both the AS and DS, enter the following command at CLI :
source /etc/voyence.conf

2) Browse to the following location: 
cd $VOYENCE_HOME/custompackage/pkgxml/CiscoIOSSwitch and edit file CiscoIOSSwitch.pkg file
(If this file and location does not exist, you can copy over from $VOYENCE_HOME/package)

3) In the file CiscoIOSSwitch.pkg, search for the pattern vlan.dat and vlan text and comment them with <!-- and -->
<!--
<ConfigurationUnit type="ConfigFile" revisionable="true" cuid="vlan.dat"
snmp_supported="false" required-for-completeness="false">

<File activate-on-reload="true" category-ref="IOSVlan" name="vlan.dat" primary="false" recurse="false" rollback="true" default="false"/>
<PullMechanisms>
<PullMechanism default="true">6</PullMechanism>
<PullMechanism>8</PullMechanism>
<PullMechanism>9</PullMechanism>
</PullMechanisms>
<Destinations>
<DestRef display-name="$ConfigFile.Location" name="vlan-config" ro llback="true" default="true"/>
<DestRef name="flash vlan-config"/>
 <DestRef name="const_nvram vlan-config"/>
<DestRef name="cat4000_flash vlan-config"/>
<DestRef name="nvram vlan-config"/>
</Destinations>
</ConfigurationUnit>
-->

<!--
** File
-->

<!--
<ConfigurationUnit type="ConfigFile" revisionable="true" cuid="vlan text" snmp_supported="false" required-for-completeness="false">
<File activate-on-reload="true" category-ref="IOSVlanText" name="vlan text" primary="false" recurse="false" default="false"/>
<PullMechanisms>
 <PullMechanism default="true">2</PullMechanism>
<PullMechanism>3</PullMechanism>
</PullMechanisms>
</ConfigurationUnit>
-->
</ConfigurationUnits>
</DevicePackage>

 
4)  Above steps are to be performed in both AS and DS

5)  Restart vcmaster as systemctl restart vcmaster after making the changes
 


Additional Information

1. Above steps are applicable for Cisco IOS Switch device class, To disable the pull of vlan.dat and vlan text for other device classes, navigate to the corresponding .pkg file (in the path $VOYENCE_HOME/custompackage/pkgxml/<device vendor>/<.pkg file> ) and make the above changes.

2. Few device classes doesn't support vlan , in such cases there won't be any entry of vlan.dat and vlan text in the .pkg file