seek - Locates a Model

Use the seek command to locate a model. The seek command finds the model(s) in the landscape that is specified by landscape_handle that possess the specified value for the attribute that is specified by attribute_id. If landscape_handle is not specified, the command finds the model(s) in the current landscape that possess a value for the attribute with the specified attribute_id. You can also use a wildcard (*) with seek to find instances of models that contain a specified substring. If you enter a null value, you can find all models that have no name (for example, attr=0x1006e).
csp
Use the seek command to locate a model. The seek command finds the model(s) in the landscape that is specified by landscape_handle that possess the specified value for the attribute that is specified by attribute_id. If landscape_handle is not specified, the command finds the model(s) in the current landscape that possess a value for the attribute with the specified attribute_id. You can also use a wildcard (*) with seek to find instances of models that contain a specified substring. If you enter a null value, you can find all models that have no name (for example, attr=0x1006e).
You cannot search for a one-character attribute value using the seek command. Attempting such a search returns an error.
The command has the following format:
seek [-i] [-s] attr=attribute_id,val=value [lh=landscape_handle]
The options can be used in any order, for example, -i -s, or -s -i.
  • -i
    If the -i (ignore case sensitivity) option is specified with the seek command, then the model information that is specified with the val parameter is returned without regard to case.
  • -s
    If the -s (substrings allowed) option is specified with the seek command, the model information that is specified with the val parameter is returned with substrings, if applicable.
    If seek is entered with a valid attribute_id and a valid value, all matching models are displayed in the following format:
    MHandle MName MTypeHnd MTypeName modelhandle name modeltypehandle name
    If no matching models are found, the following message is displayed:
    seek: no models found
By default, the seek command displays a maximum of 16 characters for the model name. However, with the environment variable CLIMNAMEWIDTH, you can specify a different number of characters (up to 1024) to be displayed for model names.
Examples: seek
$ seek attr=0x1006e,val=<sp> MHandle MName MTypeHnd MTypeName 0xb100018 spectrum 0x1004 User 0xb10008d spectrum 0x820000 ScmConfig $ seek attr=0x1006e,val=<sp> MHandle MName MTypeHnd MTypeName 0xb100018 spectrum 0x820000 ScmConfig $ seek attr=0x1006e,val=SPE seek: no models found $ seek attr=0x1006e,val=spe lh=0xb100000 seek: no models found $ seek -i attr=0x1006e,val=<sp> MHandle MName MTypeHnd MTypeName 0xb10018 spectrum 0x10004 User 0xb1008c spectrum 0x820000 ScmConfig 0xb1008d spectrum 0x820000 ScmConfig $ seek -i -s attr=0x1006e,val=<sp> MHandle MName MTypeHnd MTypeName 0xb10018 spectrum 0x10004 User 0xb10089 spectrum 0x820000 ScmConfig 0xb1008c spectrum 0x820000 ScmConfig 0xb1008d spectrum 0x820000 ScmConfig $ seek -i -s attr=0x1006e,val=<sp> lh=0xb100000 MHandle MName MTypeHnd MTypeName 0xb10018 spectrum 0x10004 User 0xb10089 spectrum 0x820000 ScmConfig 0xb1008c spectrum 0x820000 ScmConfig 0xb1008d spectrum 0x820000 ScmConfig $ seek -s attr=0x1006e,val=<sp> MHandle MName MTypeHnd MTypeName 0xb10008c spectrum 0x820000 ScmConfig $ seek attr=0x110df,val=0.0.C.18 seek: no models found $ seek -s attr=0x110df,val=0.0.C.18 MHandle MName MTypeHnd MTypeName 0xb100070 frog10 0x210022 Rtr_CiscoIGS 0xb100072 frog10_1 0x220011 Gen_IF_Port 0xb10005b cisco rtr 0x210022 Rtr_CiscoIGS 0xb100070 frog10_2 0x220011 Gen_IF_Port 0xb100070 cisco rtr_1 0x220011 Gen_IF_Port 0xb100070 cisco rtr_2 0x220011 Gen_IF_Port $ seek attr=0x1006e,val=spe* MHandle MName MTypeHnd MTypeName 0xb10018 spectrum 0x10004 User 0xb10089 spectrum 0x820000 ScmConfig 0xb1008d spectrum 0x820000 ScmConfig $ seek attr=0x1006e,val= MHandle MName MTypeHnd MTypeName 0xd00258 0x102c8 Physical_Addr 0xd002f8 0x102c8 Physical_Addr 0xd00368 0x820000 ScmConfig 0xd00259 0x102c8 Physical_Addr 0xd002f9 0x102c8 Physical_Addr 0xd00301 0x102c8 Physical_Addr $ seek attr=0x12d7f,val=192.168.93.* MHandle MName MTypeHnd MTypeName 0x28000190 192.168.93.14 0xd0004 HubCSIEMME 0x28000190 192.168.93.14 0xd0004 HubCSIEMME 0x280001a0 192.168.93.14_Sy 0x23001c System2_App 0x28000198 192.168.93.14_St 0x590006 RMONApp 0x28000191 192.168.93.14_A 0xd000a CSIIfPort 0x280001a1 192.168.93.14_IC 0x230012 ICMP_App 0x28000199 192.168.93.14_E 0x590013 RMONEthProbe 0x280001a2 192.168.93.14_UD 0x230019 UDP2_App 0x280001c2 DLM App 0x830001 DLM_Agent 0x2800019a 192.168.93.14_E 0x590013 RMONEthProbe 0x28000192 192.168.93.14_B 0xd000a CSIIfPort 0x2800019b 192.168.93.14_E 0x590013 RMONEthProbe