cancel
Showing results for 
Search instead for 
Did you mean: 

Oneview scripting $vendor variable

Oneview scripting $vendor variable

Rahman_Duran1
New Contributor III
Hi,

I want to create custom Oneview script based on official XOS ones. On XOS script it controls $vendor variable to see if it is a supported device with this:

IF (![string equal $vendor "Extreme"]) THEN error "This script is only supported for Extreme switches."
ENDIF

So if I want to control for EOS and Cisco or other vendors we have, what should be the vendor string? Where can I find it?

Thanks,

Rahman
3 REPLIES 3

Zdeněk_Pala
Extreme Employee
I believe it does take some OID for the vendor through SNMP. in my case following works:

IF (![string equal $vendor "Cisco"]) THEN error "This script is only supported for Cisco switches. This device is $vendor."
ENDIF

Regards Zdeněk Pala

Hi Rahman,

the script from the post above will show the contents of the vendor variable if it is different from Cisco. Thus you can use that to find out what $vendor value to use for EOS devices.

Thanks,
Erik

But what about EOS? should I use "Enterasys"
GTM-P2G8KFN