search cancel

Seek command is not giving model handle

book

Article ID: 257036

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Seek command ending with "Seek:no models found" error when trying to fetch existing model.

 

Environment

Spectrum 21.X

Resolution

Seek command has following format:

seek [-i] [-s]  attr=attribute_id,val=value [lh=landscape_handle]

-i : ignore case sensitivity

-s : substrings allowed

1. From OC - Access the model - Attributes tab - and get the "model_name" and "modeltype_name" attribute values.

example from attributes tab:

 

2. Issue was because at client end, device model_name has more number of characters.
by default seek would display only 16 chars, and that can be increased by setting CLIMNAMEWIDTH (max 1024) environment variable.

3. Run below command to increase CLIMNAMEWIDTH:

  1.  ./connect
  2.  CLIMNAMEWIDTH=64
  3.  export CLIMNAMEWIDTH

Now run Seek command again, it will successfully fetch details.

4. Below are further examples of seek:

Attachments