PowerAruba / PowerArubaCX

PowerShell module to manage ArubaCX switches
Apache License 2.0
14 stars 5 forks source link

Setting up System-Location / SNMP-Location #55

Closed fre4ki closed 2 years ago

fre4ki commented 2 years ago

Hi Alexis,

can you tell me how to change the system-location / snmp-location?

It is defined in >> ArubaCXSystem/other_config

But i found no options so far.

Thank you!

Andy

alagoutte commented 2 years ago

Hi Andy,

Yes, it is not (yet) supported but you can use -use_pipeline parameter (and add info because not available by default)

$system = (Get-ArubaCXSystem -selector writable) 
$system.other_config |  Add-member -name "system_contact" -membertype NoteProperty -Value "PowerArubaCX"
$system | Set-ArubaCXSystem -use_pipeline

i can look for add on next release, do you need some other stuff ?

fre4ki commented 2 years ago

It have to be system_location, but it works:

$system = (Get-ArubaCXSystem -selector writable) 
$system.other_config |  Add-member -name "**system_location**" -membertype NoteProperty -Value "PowerArubaCX"
$system | Set-ArubaCXSystem -use_pipeline

Really thanks for your support.

Andy

alagoutte commented 2 years ago

Thanks for quick return and it is work with system_location and system_description, i will look to add to have directly option on Set-ArubaCXSystem