Nov 142013
 

I wanted to rename a whole bunch of models to transform their names into all lowercase with just the hostname rather than the FQDN.
I used this script to do it with bash and vnmsh. The script will loop through all models found by the query with a model type handle, and then renames then with a vnmsh update command.


#!/bin/bash
export CLIMNAMEWIDTH=70
OldIFS=$IFS
IFS=$'\n'
WORKPATH="/opt/CA/Spectrum/vnmsh"

$WORKPATH/connect

## Pingable
MDLLIST=`$WORKPATH/show models mth=0x10290`
MDLLIST=`echo "$MDLLIST" | grep -vi mname`

for x in $MDLLIST; do
MDLHANDLE=`echo $x | awk -F '[ |.]+' ' { print $1 } '`
MDLNAME=`echo $x | awk -F '[ |.]+' ' { print tolower($2) }'`
echo $MDLHANDLE
echo $MDLNAME

$WORKPATH/update mh=$MDLHANDLE attr=0x1006e,val=$MDLNAME
done
$WORKPATH/disconnect
IFS=$OldIFS

Share
Oct 162012
 

I recently wanted to disable fast polling for all the devices that had fast polling. After I couldn’t find a way to easily to do it in the GUI, I turned to the command line to do it.

The following command will find all devices that have fast polling enabled, and then set the polling to normal.

nhListElements.bat -where "pollRate matches fast" | nhModify Elements -fieldName pollRate -value Normal

Share
Oct 022012
 

I had an issue in my environment where some network device’s configuration backups were failing most of the time.
It would come up with an error saying “Unable to write to the device. Either the device is not responding or the set SNMP community string is not correct”

When I did a Wireshark cap of the SNMP traffic, I noticed that the switch was still returning responses after the backup had failed already.
Increasing the DCM Timeout under CA Spectrum Modeling Information resolved the issue as it gave Spectrum more time to receive the reponses before it decided to time out.

Share
Aug 032012
 

One of the other issues I’ve had with integrating OneClick with Business Objects is this error :

Error importing SRM content: Required dependencies not found on target system : [AQuGhZ2EfP1NkSXoQTUcKz0, AQck.q67O5dHtfsJTBBtsU0]

To fix this error, I had to set a system variable for JAVA_HOME via System Properties -> Advanced Tab -> Environment Variables. The JAVA_HOME variable should be pointing to the built in JDK, normally the path is C:\Program Files\SC\CommonReporting3\javasdk but this will need to suit your environment.

Once the variable has been set, you will need the install media to run the biconfig.bat file.
The file is located in the directory Disk1\cabi\biconfig on the install media.

Once you have changed into that directory, run this command replacing the parameters with one suited to your environment.
biconfig.bat -h “BOXI hostname" -u "Administrator" -p “admin password" -f “CABI install media directory\Disk1\cabi\content\cabi_default_groups.xml" -if “CABI install media directory\Disk1\cabi\content\ CABI_DefaultGroups.biar”

After this has been run, the integration should now work.

Share
Jul 312012
 

I was having some issues trying to integrate CA Spectrum with CA Business Intelligence after I removed it and re-installed it onto my server.
I was getting an issue similar to this –

Error importing SRM Content: Unable to find servers with kind fileserver

Error importing SRM Content: Unable to find servers with kind fileserver

After having a look around, it seemed that after I reinstalled CA Business Intelligence, the servers within Business Objects were not enabled.
The server responsible for the Integration was the Input File Repository Server. When that was disabled, the Integration did not work. After that was enabled, I was able to integrate Spectrum with Business Objects.

To enable the servers, you need to access the BusinessObjects Central Management Console (CMC), click on Servers under the Organize heading, and make sure the servers are enabled there.

Share